<?php include 'db.php'; ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Admin Login</title>
    <script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-[#010409] text-white flex items-center justify-center h-screen p-6">
    <div class="w-full max-w-sm bg-[#0d1117] p-8 rounded-3xl border border-gray-800 shadow-2xl">
        <h2 class="text-2xl font-bold mb-6 text-center text-cyan-500 italic">ADMIN LOGIN</h2>
        <form action="actions.php" method="POST" class="space-y-4">
            <input type="email" name="email" placeholder="Email" required class="w-full bg-black border border-gray-700 rounded-xl p-3 outline-none focus:border-cyan-500">
            <input type="password" name="password" placeholder="Password" required class="w-full bg-black border border-gray-700 rounded-xl p-3 outline-none focus:border-cyan-500">
            <button type="submit" name="login" class="w-full bg-cyan-600 hover:bg-cyan-500 text-black font-bold py-3 rounded-xl transition">ACCESS DASHBOARD</button>
        </form>
        <?php if(isset($_GET['error'])) echo "<p class='text-red-500 text-center mt-4 text-xs font-bold uppercase'>Invalid Login!</p>"; ?>
    </div>
</body>
</html>