<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login Admin - PPNI DPK BaliMéd</title>
    <script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="min-h-screen bg-gradient-to-r from-blue-950 via-blue-900 to-blue-700 flex items-center justify-center px-4">

    <div class="w-full max-w-md bg-white rounded-3xl shadow-2xl p-8">
        <h1 class="text-3xl font-bold text-blue-900 mb-2">Login Admin</h1>
        <p class="text-slate-500 mb-6">PPNI DPK Rumah Sakit BaliMéd Denpasar</p>

        @if(session('success'))
            <div class="mb-4 bg-green-100 text-green-800 px-4 py-3 rounded-lg">
                {{ session('success') }}
            </div>
        @endif

        @if($errors->any())
            <div class="mb-4 bg-red-100 text-red-800 px-4 py-3 rounded-lg">
                {{ $errors->first() }}
            </div>
        @endif

        <form action="{{ route('login.submit') }}" method="POST" class="space-y-5">
            @csrf

            <div>
                <label class="block mb-2 font-medium">Email</label>
                <input type="email" name="email" value="{{ old('email') }}"
                    class="w-full border border-slate-300 rounded-xl px-4 py-3 focus:outline-none focus:ring-2 focus:ring-blue-600">
            </div>

            <div>
                <label class="block mb-2 font-medium">Password</label>
                <input type="password" name="password"
                    class="w-full border border-slate-300 rounded-xl px-4 py-3 focus:outline-none focus:ring-2 focus:ring-blue-600">
            </div>

            <div class="flex items-center gap-2">
                <input type="checkbox" name="remember" value="1">
                <label>Ingat saya</label>
            </div>

            <button type="submit"
                class="w-full bg-blue-900 hover:bg-blue-800 text-white py-3 rounded-xl font-semibold">
                Masuk
            </button>
        </form>
    </div>

</body>
</html>