body {
    background: #f4f6fb;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.login-shell {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Logo centré */
.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.login-brand-icon {
    width: 60px;
    height: 60px;
    background: #eef2ff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.login-brand-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #6366f1;
}
.login-brand-sub {
    font-size: 12px;
    font-weight: 500;
    color: #8492b0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Carte de connexion */
.login-card {
    background: #fff;
    border: 1.5px solid #e4e8f0;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(99,102,241,.10), 0 1px 4px rgba(0,0,0,.06);
}
.login-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a2035;
    margin-bottom: 6px;
}
.login-card p {
    font-size: 13px;
    color: #8492b0;
    font-weight: 500;
    margin-bottom: 28px;
}

/* Champs */
.login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.login-field label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    color: #8492b0;
    text-transform: uppercase;
}
.login-field input {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 11px 14px;
    background: #f4f6fb;
    border: 1.5px solid #e4e8f0;
    border-radius: 10px;
    color: #1a2035;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
    width: 100%;
}
.login-field input:focus {
    background: #fff;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px #e0e7ff;
}
.login-field input::placeholder { color: #c8d0e0; }

/* Lien mot de passe oublié */
.login-forgot {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 8px;
}
.login-forgot a {
    font-size: 12px;
    color: #6366f1;
    font-weight: 500;
    text-decoration: none;
}
.login-forgot a:hover { text-decoration: underline; }

/* Bouton connexion */
.login-btn {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    transition: background .15s, transform .1s;
}
.login-btn:hover   { background: #4f46e5; }
.login-btn:active  { transform: scale(.98); }
.login-btn:disabled {
    background: #c7d2fe;
    cursor: not-allowed;
}

/* Message d'erreur */
.login-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #dc2626;
    margin-bottom: 20px;
}
.login-error-icon { font-size: 16px; flex-shrink: 0; }

.login-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e6ffed;
    border: 1.5px solid #a7f3d0;
    color: #15803d;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.login-info-icon { font-size: 16px; flex-shrink: 0; }

/* Pied de page */
.login-footer {
    text-align: center;
    font-size: 12px;
    color: #b0bbcc;
    font-weight: 500;
}

/* Séparateur avec rails décoratifs */
.rail-deco {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e4e8f0;
    font-size: 11px;
    letter-spacing: 2px;
    color: #c8d0e0;
    font-weight: 500;
}
.rail-deco::before,
.rail-deco::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e4e8f0;
}

a.no-underline-center {
    text-decoration: none;
    display: block;
    text-align: center;
}

.parent-flex {
    display: flex;
    justify-content: center;
    align-items: center;
}