/* ================================================
   PAGES CONNEXION / INSCRIPTION
   Bandeau « offre choisie », encarts (limite d'appareils,
   vérification de l'adresse email), critères du mot de passe
   ================================================ */

/* Largeur limitée : un texte long ne doit pas élargir la carte de connexion */
.auth-plan-banner,
.auth-notice {
    width: 100%;
    max-width: 30rem;
    margin: 0 auto 1.25rem;
    border-radius: 12px;
    text-align: left;
}

/* root.css fixe la taille de police de chaque élément (« * { font-size } ») :
   on rétablit l'héritage dans les encarts (strong, span, li…) */
.auth-plan-banner *,
.auth-notice * {
    font-size: inherit;
}

/* ***** Bandeau : offre choisie avant connexion / inscription ***** */
.auth-plan-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: var(--background-success);
    border: 1px solid var(--alert-success);
}

.auth-plan-banner > i {
    flex-shrink: 0;
    margin-top: 0.15rem;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--success-color);
}

.auth-plan-banner p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.45;
}

.auth-plan-banner .auth-plan-banner-title {
    margin-bottom: 0.25rem;
    font-size: 0.98rem;
    font-weight: 700;
}

.auth-plan-banner .auth-plan-banner-note {
    margin-top: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

/* Offre à vie : pas d'essai, mise en avant différente */
.auth-plan-banner-lifetime {
    background: var(--background-warning);
    border-color: var(--alert-warning);
}

.auth-plan-banner-lifetime > i {
    color: var(--warning-color);
}

/* ***** Encarts d'information ***** */
.auth-notice {
    padding: 1rem 1.1rem;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-left-width: 4px;
}

.auth-notice p {
    margin: 0 0 0.6rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-notice .auth-notice-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.auth-notice .auth-notice-title i {
    flex-shrink: 0;
    font-size: 1.15rem;
    line-height: 1;
}

.auth-notice .auth-notice-steps {
    margin: 0 0 0.6rem;
    padding-left: 1.2rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-notice .auth-notice-steps li {
    margin-bottom: 0.3rem;
    list-style: disc outside;
}

/* Limite d'appareils atteinte */
.auth-notice-devices {
    background: var(--background-warning);
    border-color: var(--alert-warning);
}

.auth-notice-devices .auth-notice-title i {
    color: var(--warning-color);
}

.auth-notice-offer {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--alert-warning);
}

.auth-notice .auth-notice-cta {
    width: 100%;
    margin: 0.2rem 0 0.6rem;
    font-size: 1.05rem;
    text-align: center;
    white-space: normal;
    color: #fff;
}

.auth-notice .auth-notice-cta:hover {
    text-decoration: none;
}

.auth-notice .auth-notice-small {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Adresse email à vérifier */
.auth-notice-verification {
    background: var(--background-info);
    border-color: var(--alert-info);
}

.auth-notice-verification .auth-notice-title i {
    color: var(--info-color);
}

.auth-notice-form {
    margin: 0;
}

.auth-notice-form button {
    width: 100%;
    font-size: 1rem;
    white-space: normal;
}

/* ***** Critères du mot de passe (inscription) ***** */
.password-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.9rem;
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.password-rules li {
    font-size: 0.8rem;
}

.password-rules li::before {
    content: '\25CB';
    margin-right: 0.3rem;
}

.password-rules li.is-valid {
    color: var(--success-color);
}

.password-rules li.is-valid::before {
    content: '\2713';
}

@media (max-width: 480px) {
    .auth-plan-banner,
    .auth-notice {
        padding: 0.85rem 0.9rem;
    }
}
