/* ── Pages d'authentification ──────────────────────────────── */

body.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    padding: 20px;
}

.auth-card {
    background: var(--color-white);
    border-radius: 16px;
    border: 1px solid var(--color-border);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.auth-logo-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.auth-logo-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-blue-cobalt);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.auth-logo-subtitle {
    font-size: 13px;
    color: #a0a0a0;
    margin-top: 4px;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0 0 6px;
}

.auth-desc {
    font-size: 14px;
    color: #a0a0a0;
    margin: 0 0 28px;
    line-height: 1.5;
}

/* Champ mot de passe avec toggle */
.input-password-wrap {
    position: relative;
}

.input-password-wrap .form-control {
    padding-right: 44px;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0a0a0;
    cursor: pointer;
    padding: 4px;
    font-size: 15px;
    transition: color 0.2s;
}

.btn-toggle-password:hover { color: var(--color-text-dark); }

/* Indicateur de force du mot de passe */
.password-strength {
    margin-top: 8px;
    display: none;
}

.password-strength.visible { display: block; }

.strength-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--color-border);
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
    width: 0;
}

.strength-fill.faible { width: 33%;  background: #ef4444; }
.strength-fill.moyen  { width: 66%;  background: #f59e0b; }
.strength-fill.fort   { width: 100%; background: #10bb82; }

.strength-label {
    font-size: 12px;
    font-weight: 600;
}

.strength-label.faible { color: #ef4444; }
.strength-label.moyen  { color: #f59e0b; }
.strength-label.fort   { color: #10bb82; }

/* Règles du mot de passe */
.password-rules {
    margin-top: 10px;
    display: none;
}

.password-rules.visible { display: block; }

.password-rule {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #a0a0a0;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.password-rule.ok { color: #10bb82; }
.password-rule .rule-icon { width: 14px; text-align: center; font-size: 11px; }

/* Lien retour */
.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #a0a0a0;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.auth-back:hover { color: var(--color-text-dark); }

@media (max-width: 480px) {
    .auth-card { padding: 28px 20px; }
}
