<!doctype html>
<html lang="ms">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Login Officer – Rekod Surat</title>
    <link rel="preconnect" href="https://fonts.bunny.net">
    <link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" />
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>
        body{
            margin:0;
            min-height:100vh;
            font-family:Figtree,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
            background:radial-gradient(circle at top,#1d4ed8,#020617);
            color:#f8fafc;
            display:flex;
            align-items:center;
            justify-content:center;
            padding:24px 16px;
        }
        .card-glass{
            width:100%;
            max-width:420px;
            background:linear-gradient(155deg, rgba(15,23,42,.98), rgba(15,23,42,.96));
            border-radius:18px;
            border:1px solid rgba(148,163,184,.4);
            box-shadow:0 24px 80px rgba(0,0,0,.55);
            color:#f8fafc;
        }
        .card-glass h1,.card-glass .h4{color:#f9fafb;}
        .form-label{color:#e5e7eb;}
        .form-control{
            background:rgba(30,41,59,.9);
            border-color:rgba(148,163,184,.6);
            color:#f8fafc;
        }
        .form-control::placeholder{color:#94a3b8;opacity:1;}
        .form-control:focus{
            background:rgba(15,23,42,1);
            border-color:rgba(56,189,248,.8);
            box-shadow:0 0 0 .25rem rgba(56,189,248,.2);
            color:#f8fafc;
        }
        .btn-gradient{
            border:none;
            background:linear-gradient(135deg,#38bdf8,#0ea5e9);
            color:#0f172a;
            font-weight:700;
        }
        .muted{
            color:#cbd5e1;
            font-size:.9rem;
        }
    </style>
</head>
<body>
<div class="card card-glass">
    <div class="card-body p-4">
        <div class="mb-3 text-center">
            <div class="mb-2">
                <span class="badge text-bg-primary rounded-pill px-3 py-2">Zon Officer</span>
            </div>
            <h1 class="h4 mb-1">Login Officer Surat</h1>
            <div class="muted">Hanya pegawai yang diberi akaun dibenarkan mengemaskini rekod surat masuk & keluar.</div>
        </div>

        <?php if($errors->any()): ?>
            <div class="alert alert-danger">
                <div class="fw-semibold mb-1">Tidak dapat login</div>
                <ul class="mb-0">
                    <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <li><?php echo e($error); ?></li>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </ul>
            </div>
        <?php endif; ?>

        <form method="post" action="<?php echo e(url('/officer/login')); ?>" class="mt-2">
            <?php echo csrf_field(); ?>
            <div class="mb-3">
                <label for="email" class="form-label">Emel Officer</label>
                <input type="email"
                       id="email"
                       name="email"
                       value="<?php echo e(old('email')); ?>"
                       class="form-control <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                       required
                       autocomplete="email"
                       autofocus>
                <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                <div class="invalid-feedback"><?php echo e($message); ?></div>
                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
            </div>

            <div class="mb-1">
                <label for="password" class="form-label">Kata Laluan</label>
                <input type="password"
                       id="password"
                       name="password"
                       class="form-control <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                       required
                       autocomplete="current-password">
                <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                <div class="invalid-feedback"><?php echo e($message); ?></div>
                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
            </div>

            <div class="d-flex justify-content-between align-items-center mt-3">
                <div class="muted">Direka khas untuk kemaskini rekod surat.</div>
            </div>

            <button type="submit" class="btn btn-gradient w-100 mt-3">
                Login
            </button>
        </form>
    </div>
</div>
</body>
</html>

<?php /**PATH C:\xampp\htdocs\dash\resources\views/officer/login.blade.php ENDPATH**/ ?>