<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Connexion admin — Pirras</title>
    <link href="https://fonts.googleapis.com/css2?family=Syne:wght@700&family=DM+Sans:wght@400;500&display=swap" rel="stylesheet">
    <style>
        :root { --orange:#f05a1a; --line:#e7eaee; --text:#101418; }
        * { box-sizing:border-box; margin:0; padding:0; }
        body { min-height:100vh; display:flex; align-items:center; justify-content:center; font-family:"DM Sans",sans-serif; background:linear-gradient(165deg,#f6f2ed,#efe5dc); color:var(--text); padding:24px; }
        .card { background:#fff; border:1px solid rgba(240,90,26,.15); border-radius:16px; padding:32px; width:100%; max-width:400px; box-shadow:0 16px 40px rgba(16,24,40,.08); }
        h1 { font-family:"Syne",sans-serif; font-size:24px; margin-bottom:6px; }
        p { color:#5f6b76; font-size:14px; margin-bottom:22px; }
        label { display:block; font-size:13px; font-weight:600; margin-bottom:6px; }
        input { width:100%; padding:11px 12px; border:1px solid var(--line); border-radius:10px; font:inherit; margin-bottom:14px; }
        .err { color:#b91c1c; font-size:13px; margin-bottom:10px; }
        .check { display:flex; align-items:center; gap:8px; font-size:14px; margin-bottom:18px; }
        .check input { width:auto; margin:0; }
        button { width:100%; padding:12px; border:0; border-radius:10px; font-family:"Syne",sans-serif; font-weight:700; background:linear-gradient(135deg,var(--orange),#ff7a3d); color:#fff; cursor:pointer; }
    </style>
</head>
<body>
    <div class="card">
        <h1>Administration</h1>
        <p>Acces reserve aux comptes administrateur.</p>

        <?php if($errors->any()): ?>
            <div class="err"><?php echo e($errors->first()); ?></div>
        <?php endif; ?>

        <form method="post" action="<?php echo e(route('admin.login.submit')); ?>">
            <?php echo csrf_field(); ?>
            <label for="email">Email</label>
            <input id="email" type="email" name="email" value="<?php echo e(old('email')); ?>" required autocomplete="username">

            <label for="password">Mot de passe</label>
            <input id="password" type="password" name="password" required autocomplete="current-password">

            <label class="check">
                <input type="checkbox" name="remember" value="1">
                Rester connecte
            </label>

            <button type="submit">Se connecter</button>
        </form>
    </div>
</body>
</html>
<?php /**PATH C:\Softsys\new_pirras\resources\views/admin/login.blade.php ENDPATH**/ ?>