/* ============================================
   CSS — PAGES D'AUTHENTIFICATION
   ============================================ */

/* Formulaire de connexion */
.input-password {
    position: relative;
    display: flex;
    align-items: center;
}

.input-password .form-control { padding-right: 44px; }

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #888;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

.toggle-password:hover { color: var(--primary); }

/* Lien mot de passe oublié */
.forgot-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--primary);
    font-size: 0.88rem;
    text-decoration: none;
}

.forgot-link:hover { text-decoration: underline; }

/* Liens auth */
.auth-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.auth-links a {
    color: #666;
    font-size: 0.85rem;
    text-decoration: none;
}

.auth-links a:hover { color: var(--primary); }

/* Illustration succès */
.success-illustration {
    text-align: center;
    padding: 20px 0;
    color: var(--secondary);
}

.success-illustration p { margin-top: 10px; }

/* ===== FORCE DU MOT DE PASSE ===== */
.password-strength {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease, background 0.4s ease;
    width: 0%;
}

.strength-label {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Règles du mot de passe */
.password-rules {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rule {
    font-size: 0.82rem;
    color: #888;
    transition: color 0.2s;
}

.rule.valid { color: var(--success); }
.rule.valid::first-letter { content: '✅'; }

/* Label correspondance */
.match-label {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Centrage carte auth */
.auth-card-centered {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}
