/* --- Variables (Identiques à votre site) --- */
:root {
    --bg: linear-gradient(180deg, rgba(12, 22, 38, 0.96), rgba(12, 22, 38, 0.96)) padding-box,
          linear-gradient(140deg, rgba(45, 160, 255, .35), rgba(255, 255, 255, .06)) border-box;
    --ink: #0b1220;
    --brand: #2da0ff;
    --card: #0c1626;
}

/* --- Base --- */
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: #e8eef9;
    margin: 0;
    overflow: hidden;
}

/* Effet de grain */
body::after {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" opacity="0.04" filter="url(%23n)"/></svg>');
    mix-blend-mode: multiply;
}

/* --- Wrapper et Glow --- */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    filter: blur(40px);
    opacity: .35;
    z-index: -1;
    background: radial-gradient(400px 280px at 15% 0%, rgba(45,160,255,.55), transparent 60%),
                radial-gradient(420px 260px at 85% 20%, rgba(14,95,198,.55), transparent 65%);
}

/* --- Carte de Connexion --- */
.login-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    padding: clamp(24px, 5vw, 40px);
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.logo-admin {
    width: 60px; height: 60px; border-radius: 14px; background: #0b1220;
    outline: 1px solid rgba(255, 255, 255, .12);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35);
    margin: 0 auto 16px; overflow: hidden;
}
.logo-admin img { width: 100%; }

.login-card h1 {
    font-size: clamp(24px, 5vw, 32px); margin: 0 0 4px;
    background: linear-gradient(90deg, #cfe6ff, #6fb8ff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    font-weight: 800;
}
.login-card .subtitle { color: #bcd2ff; margin: 0 0 28px; font-size: 15px; }

/* --- Formulaire --- */
#login-form { text-align: left; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: #cfe0ff; margin-bottom: 8px; }

.form-group input {
    width: -webkit-fill-available; 
    width: -moz-available;
    width: stretch;
    padding: 12px 14px;
    border-radius: 12px; border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .05); color: #fff;
    font-size: 15px; font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}
.form-group input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(45, 160, 255, .2); }

/* --- Bouton --- */
.btn.primary {
    width: 100%; justify-content: center; appearance: none;
    border: 0; padding: 14px 18px; border-radius: 14px;
    font-weight: 600; cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 16px; color: #08101e;
    background: linear-gradient(180deg, #2da0ff, #0e86f0);
    box-shadow: 0 10px 24px rgba(45, 160, 255, .28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(45, 160, 255, .4); }
.btn.primary:disabled { opacity: 0.7; transform: none; box-shadow: none; cursor: wait; }

/* --- Messages d'Erreur --- */
.error-message {
    color: #ff8a8a; background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 10px; padding: 12px;
    margin-bottom: 20px; font-size: 14px; font-weight: 500;
    text-align: center; display: none; 
}