<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" type="image/png" href="<?php echo e(asset('assets/logo_kemenpkp.png')); ?>">
    <title>Login Admin - Sebaran RTLH</title>
    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
    <style>
        :root {
            --bs-primary: #295F98; /* Blue */
            --bs-secondary: #CDC2A5; /* Gold */
            --bs-body-bg: #EAE4DD; /* Off White */
        }
        body {
            background-color: var(--bs-body-bg) !important;
            font-family: system-ui, -apple-system, sans-serif;
        }
        .text-primary { color: var(--bs-primary) !important; }
        .btn-primary {
            background-color: var(--bs-primary) !important;
            border-color: var(--bs-primary) !important;
        }
        .btn-primary:hover {
            background-color: #1e4b7a !important;
        }
        .card-login {
            border: none;
            border-top: 5px solid var(--bs-secondary);
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        }
    </style>
</head>
<body class="d-flex align-items-center justify-content-center" style="height: 100vh;">

    <div class="card card-login bg-white" style="width: 400px;">
        <div class="card-body p-4">
            <div class="text-center mb-4">
                <img src="<?php echo e(asset('assets/logo_kemenpkp.png')); ?>" alt="Logo" height="70" class="mb-3">
                <h4 class="fw-bold text-primary mb-1">Login Admin</h4>
                <p class="text-muted small">Sistem Informasi Sebaran RTLH</p>
            </div>

            <?php if(session('error')): ?>
                <div class="alert alert-danger small border-0 shadow-sm rounded-3">
                    <i class="bi bi-exclamation-circle-fill me-1"></i> <?php echo e(session('error')); ?>

                </div>
            <?php endif; ?>

            <form action="<?php echo e(route('login.process')); ?>" method="POST">
                <?php echo csrf_field(); ?>
                <div class="mb-3">
                    <label for="email" class="form-label small fw-bold text-secondary text-uppercase">Email Address</label>
                    <input type="email" class="form-control form-control-lg fs-6" id="email" name="email" required placeholder="admin@example.com">
                </div>
                <div class="mb-4">
                    <label for="password" class="form-label small fw-bold text-secondary text-uppercase">Password</label>
                    <input type="password" class="form-control form-control-lg fs-6" id="password" name="password" required placeholder="********">
                </div>
                <div class="d-grid">
                    <button type="submit" class="btn btn-primary btn-lg fw-bold fs-6 shadow-sm">
                        Masuk & Kirim OTP <i class="bi bi-arrow-right ms-1"></i>
                    </button>
                </div>
            </form>
            
            <div class="text-center mt-4">
                <a href="<?php echo e(url('/')); ?>" class="text-decoration-none small text-muted fw-bold">
                    <i class="bi bi-arrow-left me-1"></i> Kembali ke Dashboard Utama
                </a>
            </div>
        </div>
    </div>

</body>
</html>
<?php /**PATH E:\sebaran RTLH Jateng dan DIY\resources\views/auth/login.blade.php ENDPATH**/ ?>