<!-- LOGIN ADMIN BOOKING ROOM -->
<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <title>Login Admin</title>
    <link rel="icon" type="image/x-icon" href="<?php echo e(asset('images/logo.png')); ?>">
    <script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-gradient-to-br from-green-100 to-emerald-200 min-h-screen flex items-center justify-center">

    <div class="w-full max-w-md bg-white rounded-2xl shadow-xl p-8">
        <!-- Logo -->
        <div class="text-center mb-4">
            <img src="<?php echo e(asset('images/logo.png')); ?>" alt="Logo" class="mx-auto w-20 h-20">
        </div>

        <!-- Header -->
        <h1 class="text-2xl font-bold text-center mb-6 text-green-700">
            Login Admin
        </h1>

        <!-- Error Message -->
        <?php if($errors->any()): ?>
            <div class="bg-red-100 text-red-700 p-3 rounded mb-4">
                <?php echo e($errors->first()); ?>

            </div>
        <?php endif; ?>

        <!-- Login Form -->
        <form action="<?php echo e(route('login')); ?>" method="POST" class="space-y-4">
            <?php echo csrf_field(); ?>

            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">Email</label>
                <input type="email" name="email" required autofocus
                       class="w-full border p-2 rounded focus:ring-green-500 focus:border-green-500">
            </div>

            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">Password</label>
                <input type="password" name="password" required
                       class="w-full border p-2 rounded focus:ring-green-500 focus:border-green-500">
            </div>

            <button type="submit"
                    class="w-full px-4 py-2 bg-green-600 text-white font-semibold rounded-lg hover:bg-green-700 transition duration-200">
                Login
            </button>
        </form>

        <!-- Tombol balik ke index -->
        <div class="text-center mt-6">
            <a href="<?php echo e(url('/calendar')); ?>"
               class="px-4 py-2 bg-gray-200 text-gray-700 rounded-lg hover:bg-gray-300 transition">
               ← Kembali ke Halaman Utama
            </a>
        </div>
    </div>

</body>
</html>
<?php /**PATH D:\Hafiiz\Project\Code Magang\Finall\Apps Asama Layer Security\booking-ruangan-tamu\resources\views/auth/login.blade.php ENDPATH**/ ?>