/* ================================
   Page: Password Reset
   ================================ */

/* Wrapper général */
.reset-container {
    max-width: 480px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

/* Titre principal */
.reset-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

/* Sous-texte descriptif */
.reset-subtitle {
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 1rem;
}

/* Formulaire */
.reset-form {
    margin-top: 10px;
}

.reset-form label {
    margin-bottom: 6px;
    font-weight: 600;
}

.reset-form input {
    margin-bottom: 18px;
}

/* Espacement uniformisé pour form.as_p */
.reset-form p {
    margin-bottom: 22px;
}

/* --- SUPPRESSION des styles automatiques des help_text et erreurs --- */
/* (Supprimé : .helptext, .helptext ul, .helptext li, .errorlist etc.) */

/* Style UNIQUEMENT pour les 3 phrases personnalisées */
.password-rules p {
    font-size: 0.75rem;
    font-style: italic;
    margin: 2px 0;
    color: var(--text-light);
    padding: 0;
}

/* Bouton "Mettre à jour le mot de passe" */
.update-password-btn {
    width: 100%;
    padding: .9rem 1.6rem;
    border: none;
    border-radius: var(--radius);
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, box-shadow .2s, transform .05s;
    margin-top: 16px;
}

.update-password-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 18px rgba(27,94,32,.25);
}

/* Message de validation après envoi */
.reset-success {
    padding: 18px;
    background: var(--bg-grey);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    color: var(--text);
    margin-bottom: 25px;
}

/* Section des liens */
.reset-links {
    margin-top: 22px;
}

/* Bouton "Se connecter" */
.reset-login-btn {
    display: inline-block;
    padding: .9rem 1.6rem;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, box-shadow .2s, transform .05s;
    margin-top: 10px;
}

.reset-login-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
}

/* Responsive */
@media (max-width: 480px) {
    .reset-container {
        margin-top: 40px;
    }

    .reset-title {
        font-size: 1.6rem;
    }
}

.password-rules {
    margin-bottom: 18px; /* espace propre avant le champ suivant */
}

/* Bouton "Envoyer le lien" */
.reset-form .btn-primary {
    width: 100%;
    margin-top: 10px;
    background: var(--primary);        /* couleur normale */
    color: var(--white);
}

.reset-form .btn-primary:hover {
    background: var(--primary-dark);   /* couleur survol */
}
