PNG IHDR x sBIT|d pHYs + tEXtSoftware www.inkscape.org< ,tEXtComment
<?php
session_start();
// If already logged in, go straight to dashboard
if (isset($_SESSION['admin_logged_in']) && $_SESSION['admin_logged_in'] === true) {
header('Location: dashboard.php');
exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Login - Global Relief Bridge</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
:root {
--primary-green: #8ac926;
--primary-purple: #9b5de5;
--dark-green: #070767;
--bg-light: #f4f7f6;
}
body {
background-color: var(--bg-light);
font-family: 'Segoe UI', sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.login-card {
background: white;
padding: 40px;
border-radius: 25px;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
width: 100%;
max-width: 400px;
text-align: center;
}
.logo h2 { color: var(--primary-purple); margin-bottom: 5px; }
.logo span { color: var(--primary-green); }
.form-group { margin-bottom: 20px; text-align: left; }
label { display: block; margin-bottom: 8px; color: #555; font-weight: 600; }
input {
width: 100%; padding: 12px; border: 1px solid #ddd;
border-radius: 30px; box-sizing: border-box; outline: none;
transition: 0.3s;
}
input:focus { border-color: var(--primary-purple); }
.btn-login {
width: 100%; padding: 12px; border-radius: 30px;
background: var(--primary-green); color: white; border: none;
font-weight: bold; cursor: pointer; transition: 0.3s;
}
.btn-login:hover { background: var(--dark-green); }
</style>
</head>
<body>
<div class="login-card">
<div class="logo">
<h2>Global <span>Relief</span></h2>
<p style="color:#888; font-size:0.9rem; margin-bottom:30px;">Admin Portal</p>
</div>
<?php if(isset($_GET['error'])): ?>
<script>
// This triggers the browser alert box automatically on load
window.onload = function() {
alert("Login Failed: Incorrect Email or Password. Please try again.");
}
</script>
<div style="color: red; margin-bottom: 15px; font-size: 0.9rem;">Invalid Email or Password</div>
<?php endif; ?>
<form action="auth.php" method="POST">
<div class="form-group">
<label>Email Address</label>
<input type="email" name="email" required placeholder="admin@globalrelief.org">
</div>
<div class="form-group">
<label>Password</label>
<input type="password" name="password" required placeholder="••••••••">
</div>
<button type="submit" class="btn-login">Login <i class="fas fa-sign-in-alt"></i></button>
</form>
<p style="margin-top: 20px; font-size: 0.8rem; color: #aaa;">
© 2025 Global Relief Bridge
</p>
</div>
</body>
</html>
b IDATxytVսϓ22 A@IR:hCiZ[v*E:WũZA ^dQeQ @ !jZ'>gsV仿$|?g)&x-E