/* Pages de compte : inscription, connexion, mot de passe oublié */
.ah-auth-page {
    margin: var(--wp--preset--spacing--xl) auto;
    background-color: var(--wp--preset--color--white);
    border: 1px solid var(--wp--preset--color--light-grey);
    border-radius: var(--wp--custom--radius--large);
    box-shadow: var(--wp--preset--shadow--light);
    padding: var(--wp--preset--spacing--l);
}

.ah-auth-page p {
    margin-top: 0;
    color: var(--wp--preset--color--muted-text);
}

.ah-auth-page__field {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--xs);
    margin-bottom: var(--wp--preset--spacing--s);
}

.ah-auth-page__field label {
    font-weight: var(--wp--custom--font-weight--medium);
    font-size: var(--wp--preset--font-size--xs);
}

.ah-auth-page__field input {
    width: 100%;
    background: var(--wp--preset--color--bg)!important;
    border: 1px solid var(--wp--preset--color--light-grey);
    border-radius: var(--wp--custom--radius--medium);
    padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--s);
    font-family: var(--wp--preset--font-family--text);
    font-size: var(--wp--preset--font-size--s);
}

.ah-auth-page__field input:focus {
    outline: 2px solid var(--wp--preset--color--accent);
    outline-offset: 1px;
}

.ah-auth-page__submit {
    background-color: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--white);
    font-size: var(--wp--preset--font-size--s);
    font-weight: var(--wp--custom--font-weight--semibold);
    padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--m);
    border-radius: var(--wp--custom--radius--round);
    border: none;
    cursor: pointer;
    margin-top: var(--wp--preset--spacing--xs);
}

.ah-auth-page__submit:hover {
    opacity: 0.9;
}

.ah-auth-page__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ah-auth-page__link {
    display: block;
    margin-top: var(--wp--preset--spacing--s);
    font-size: var(--wp--preset--font-size--xs);
    text-align: center;
}

.ah-auth-page__feedback {
    font-size: var(--wp--preset--font-size--xs);
    margin-top: var(--wp--preset--spacing--xs);
}

.ah-auth-page__feedback--success {
    color: #2e7d32;
}

.ah-auth-page__feedback--error {
    color: #c62828;
}

/* Page "Mon compte" : carte élargie, divisée en deux colonnes */
.ah-mon-compte-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: var(--wp--preset--spacing--xl) !important;
    margin-top: var(--wp--preset--spacing--s) !important;
}

@media (max-width: 768px) {
    .ah-mon-compte-grid {
        grid-template-columns: 1fr !important;
    }
}

.ah-mon-compte-grid__col {
    display: flex !important;
    flex-direction: column !important;
}

.ah-mon-compte-grid__col h3 {
    margin-top: 0 !important;
}

.ah-mon-compte-grid__col .wp-block-button {
    margin-top: var(--wp--preset--spacing--s) !important;
    text-align: center !important;
}

/* bouton */
.ah-mon-compte-grid .wp-block-button.is-style-fill .wp-block-button__link {
    display: inline-block !important;
    background-color: var(--wp--preset--color--accent) !important;
    color: var(--wp--preset--color--white) !important;
    border: none !important;
    border-radius: var(--wp--custom--radius--round) !important;
    padding: var(--wp--preset--spacing--xs) 20px !important;
    font-size: var(--wp--preset--font-size--s) !important;
    font-weight: var(--wp--custom--font-weight--medium) !important;
    text-decoration: none !important;
}

.ah-mon-compte-grid .wp-block-button.is-style-outline .wp-block-button__link {
    display: inline-block !important;
    background-color: transparent !important;
    color: var(--wp--preset--color--accent) !important;
    border: 1px solid var(--wp--preset--color--accent) !important;
    border-radius: var(--wp--custom--radius--round) !important;
    padding: var(--wp--preset--spacing--xs) 20px !important;
    font-size: var(--wp--preset--font-size--s) !important;
    font-weight: var(--wp--custom--font-weight--medium) !important;
    text-decoration: none !important;
}

.ah-mon-compte-reservations {
    list-style: none;
    margin: 0 0 var(--wp--preset--spacing--s);
    padding: 0;
    max-height: 360px;
    overflow-y: auto;
}

.ah-mon-compte-reservations li {
    padding: var(--wp--preset--spacing--xs) 0;
    border-bottom: 1px solid var(--wp--preset--color--light-grey);
}

/* Checklist de robustesse du mot de passe */
.ah-password-rules {
    list-style: none;
    margin: var(--wp--preset--spacing--xs) 0 0;
    padding: 0;
    font-size: var(--wp--preset--font-size--micro);
}

.ah-password-rules li {
    display: flex;
    align-items: center;
    gap: 0.4em;
    color: var(--wp--preset--color--muted-text);
}

.ah-password-rules li::before {
    content: "○";
}

.ah-password-rules li.is-valid {
    color: #2a7a2a;
}

.ah-password-rules li.is-valid::before {
    content: "✓";
}