<?php session_start();
if (isset($_SESSION['admin_id'])) { header("Location: index.php"); exit; }
?>
<!DOCTYPE html>
<html>
<head>
    <title>Reckon Admin Login</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style>
        body{background:#000;color:#0f0;font-family:courier;display:flex;align-items:center;justify-content:center;height:100vh;margin:0}
        .box{background:#111;padding:40px;border:3px solid #0f0;border-radius:15px;width:380px;box-shadow:0 0 30px #0f03}
        input,button{width:100%;padding:12px;margin:10px 0;background:#000;border:2px solid #0f0;color:#0f0;font-size:18px}
        button{background:#0f0;color:#000;font-weight:bold;cursor:pointer}
        .error{color:#f00;background:#300;padding:10px;border-radius:5px;margin:10px 0}
    </style>
</head>
<body>
<div class="box">
    <h1 style="text-align:center;margin-bottom:30px">RECKON ADMIN</h1>
    <?php if(isset($_GET['e'])) echo '<div class="error">Wrong username or password!</div>'; ?>
    <form method="POST" action="auth.php">
        <input type="text" name="u" placeholder="Username" required autofocus>
        <input type="password" name="p" placeholder="Password" required>
        <button type="submit">LOGIN</button>
    </form>
    <div style="text-align:center;margin-top:20px">
        username: <b>admin</b><br>password: <b>reckon123</b>
    </div>
</div>
</body>
</html>