/* =====================================================================
   Pages d'authentification — habillage commun (connexion, mot de passe
   oublié, réinitialisation, vérification d'e-mail, confirmation).

   Portée limitée aux classes .tv-auth / .tv-hero : aucun impact sur le
   reste du site. Identité : bleu #203EA0 + turquoise #16B8A6, coins doux,
   ombres bleutées — cohérent avec l'application mobile.
   ===================================================================== */

.tv-auth {
    --tv-blue: #203EA0;
    --tv-blue-600: #1A3382;
    --tv-teal: #16B8A6;
    --tv-ink: #131A2E;
    --tv-muted: #6B7591;
    --tv-line: #E4E9F5;
    font-family: 'Manrope', 'Nunito', system-ui, -apple-system, sans-serif;
}

/* Pastille de marque */
.tv-auth__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .85rem;
    border-radius: 999px;
    background: #EEF2FF;
    color: var(--tv-blue);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .01em;
    margin-bottom: 1.1rem;
}

.tv-auth__title {
    font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
    color: var(--tv-ink);
    margin-bottom: .5rem;
}

.tv-auth__sub {
    color: var(--tv-muted);
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}
.tv-auth__sub a { color: var(--tv-blue); font-weight: 700; text-decoration: none; }
.tv-auth__sub a:hover { text-decoration: underline; }

/* Bouton social (Google) */
.tv-auth__social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    padding: .85rem 1rem;
    border-radius: 14px;
    border: 1.5px solid var(--tv-line);
    background: #fff;
    color: var(--tv-ink);
    font-weight: 700;
    font-size: .95rem;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.tv-auth__social:hover {
    border-color: #C3CEEA;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(32, 62, 160, .10);
}

/* Séparateur « Ou » */
.tv-auth__divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.tv-auth__divider::before,
.tv-auth__divider::after { content: ''; flex: 1; height: 1px; background: var(--tv-line); }
.tv-auth__divider span { color: var(--tv-muted); font-size: .82rem; font-weight: 600; }

/* Champs de saisie */
.tv-field { position: relative; margin-bottom: 1rem; }
.tv-field__icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-start: 1rem;
    color: #9AA5C0;
    pointer-events: none;
    line-height: 0;
}
.tv-auth .tv-field .form-control {
    height: 56px;
    border-radius: 14px;
    border: 1.5px solid var(--tv-line);
    background: #F8FAFF;
    padding-inline-start: 3rem;
    padding-inline-end: 3rem;
    font-size: .97rem;
    font-weight: 600;
    color: var(--tv-ink);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.tv-auth .tv-field .form-control::placeholder { color: #9AA5C0; font-weight: 500; }
.tv-auth .tv-field .form-control:focus {
    background: #fff;
    border-color: var(--tv-blue);
    box-shadow: 0 0 0 4px rgba(32, 62, 160, .12);
}
.tv-auth .tv-field .form-control.is-invalid { border-color: #E05B5B; background: #FEF6F6; }

/* Œil « afficher le mot de passe » (mécanique du thème conservée) */
.tv-auth .password-toggle { position: relative; }
.tv-auth .password-toggle-button { inset-inline-end: .9rem; color: #9AA5C0; }

/* Ligne « se souvenir » / « mot de passe oublié » */
.tv-auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: .35rem 0 1.5rem;
}
.tv-auth__row .form-check-label { font-size: .9rem; font-weight: 600; color: var(--tv-muted); }
.tv-auth__row .form-check-input:checked { background-color: var(--tv-blue); border-color: var(--tv-blue); }
.tv-auth__forgot {
    font-size: .9rem;
    font-weight: 700;
    color: var(--tv-blue);
    text-decoration: none;
    white-space: nowrap;
}
.tv-auth__forgot:hover { text-decoration: underline; }

/* Bouton principal */
.tv-auth__submit {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--tv-blue) 0%, #2E52C8 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: .01em;
    box-shadow: 0 10px 24px rgba(32, 62, 160, .28);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.tv-auth__submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 14px 30px rgba(32, 62, 160, .34);
}
.tv-auth__submit:active { transform: translateY(0); }

/* Lien de retour discret */
.tv-auth__back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--tv-muted);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 1.25rem;
}
.tv-auth__back:hover { color: var(--tv-blue); }

/* Encart d'information (vérification d'e-mail, consignes) */
.tv-auth__note {
    background: #EEF2FF;
    border: 1px solid #DCE3FA;
    border-radius: 14px;
    padding: 1rem 1.15rem;
    color: #2C3A63;
    font-size: .93rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Alertes (statut) harmonisées */
.tv-auth .alert { border-radius: 14px; font-weight: 600; font-size: .93rem; }

/* ---------------- Panneau de marque (colonne de droite) ---------------- */
.tv-hero {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    min-height: 640px;
    height: 100%;
    background: linear-gradient(150deg, #203EA0 0%, #2B4FC4 45%, #16B8A6 130%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 3rem 2.75rem;
    font-family: 'Manrope', 'Nunito', system-ui, sans-serif;
}
.tv-hero::before,
.tv-hero::after { content: ''; position: absolute; border-radius: 50%; filter: blur(2px); }
.tv-hero::before {
    width: 420px; height: 420px; top: -140px; inset-inline-end: -120px;
    background: rgba(255, 255, 255, .09);
}
.tv-hero::after {
    width: 300px; height: 300px; bottom: -110px; inset-inline-start: -90px;
    background: rgba(22, 184, 166, .22);
}
.tv-hero > * { position: relative; z-index: 1; }

.tv-hero__logo {
    background: #fff;
    border-radius: 18px;
    padding: .85rem 1.15rem;
    align-self: flex-start;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}
.tv-hero__logo img { height: 34px; width: auto; display: block; }

.tv-hero__title {
    color: #fff;
    font-size: clamp(1.6rem, 1rem + 1.6vw, 2.15rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
    margin: 2rem 0 .85rem;
}
.tv-hero__text {
    color: rgba(255, 255, 255, .86);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.65;
    max-width: 30rem;
}

.tv-hero__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .7rem; }
.tv-hero__list li {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    padding: .8rem 1rem;
    backdrop-filter: blur(6px);
}
.tv-hero__list svg { flex: 0 0 auto; }

.tv-hero__foot {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: rgba(255, 255, 255, .8);
    font-size: .85rem;
    font-weight: 600;
    margin-top: 2.25rem;
}
.tv-hero__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #7DF3E0;
    box-shadow: 0 0 0 4px rgba(125, 243, 224, .25);
}

@media (max-width: 991.98px) {
    .tv-hero { display: none; }
}
