﻿/* =====================================================================
   Pages de compte (connexion, inscription, validation, mot de passe oublié)
   Même univers que la page de connexion : carte sombre, champs translucides, accent vert #a4d316, turquoise #417487
   ===================================================================== */
.login-wrap { min-height: 830px; }           /* inscription : plus de champs */
.login-wrap.cpt-carte { min-height: 640px; }
/* Connexion / inscription : la partie verte prend la hauteur du formulaire affiché (plus grande pour l'inscription) */
.login-wrap.cpt-auto { min-height: 0; }
.cpt-auto .login-html { position: relative; height: auto; }
.cpt-auto .login-form { min-height: 0; position: relative; overflow: hidden; }
.cpt-auto .login-html .sign-in-htm, .cpt-auto .login-html .sign-up-htm { bottom: auto; }
/* pendant l'animation : le fond vert suit exactement la hauteur de la carte, le formulaire qui pivote n'est plus coupé */
.login-wrap.cpt-auto.cpt-anim { overflow: hidden; border-radius: 10px; }
.cpt-auto.cpt-anim .login-html { height: 100%; min-height: 100%; }
.cpt-auto.cpt-anim .login-form { overflow: visible; }
.cpt-auto .login-html .sign-in:checked + .tab + .sign-up + .tab + .login-form .sign-in-htm,
.cpt-auto .login-html .sign-up:checked + .tab + .login-form .sign-up-htm { position: relative; }

/* Champ sélectionné : pas de contour (ni blanc ni turquoise), seulement un léger éclaircissement */
.login-form .group .input:focus, .login-form .group .inputa:focus, .login-form .group .input:focus-visible,
.login-form .group select:focus, .login-form .group textarea:focus {
    outline: none !important; box-shadow: none !important; background: rgba(255,255,255,.15); transition: background .15s; }
.login-form .group .lj-bouton:focus { outline: none; }
.login-form .group .lj-bouton:focus-visible { outline: none; box-shadow: none; filter: brightness(1.15); }
.cpt-choix-btn:focus { outline: none; }
.cpt-choix-btn:focus-visible { box-shadow: none; }

/* Messages */
.cpt-erreur, .cpt-succes { margin: 8px 0 4px; padding: 10px 14px; border-radius: 8px; font-size: 14px; line-height: 1.45; font-weight: 400; }
.cpt-erreur { background: rgba(229,72,77,.16); color: #ffb4b6; border: 1px solid rgba(229,72,77,.35); }
.cpt-succes { background: rgba(164,211,22,.14); color: #c8ec5c; border: 1px solid rgba(164,211,22,.35); }
.cpt-texte { color: #c9dfe1; font-weight: 400; font-size: 14.5px; line-height: 1.55; margin: 6px 0 16px; }
.cpt-texte small { color: #8fb3b8; }
.cpt-note { color: #8fb3b8; font-weight: 400; font-size: 13px; line-height: 1.5; margin-top: 8px; }
.cpt-lien { color: #a4d316; font-weight: 500; cursor: pointer; }
.cpt-lien:hover { text-decoration: underline; }
.cpt-lien.inactif { opacity: .45; pointer-events: none; }
.btn.cpt-btn { width: 100%; height: 48px; margin: 14px 0 6px; border-radius: 8px; font-family: inherit; letter-spacing: .5px; }
.btn.cpt-btn:hover { background-color: #4f8aa0; }

/* Inscription : choix téléphone / email */
.cpt-choix { display: flex; gap: 8px; padding: 4px; background: rgba(255,255,255,.08); border-radius: 10px; }
.cpt-choix-btn { flex: 1; height: 38px; border: 0; border-radius: 8px; background: transparent; color: #a9c4c7; font: inherit; font-size: 14px; font-weight: 500;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: background .15s, color .15s; }
.cpt-choix-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cpt-choix-btn:hover { color: #fff; }
.cpt-choix-btn.actif { background: #417487; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.cpt-tel-ligne { display: flex; gap: 8px; }
.login-form .group .cpt-indicatif { flex: 0 0 auto; width: 104px; height: auto; padding: 0 8px; color: #fff; font: inherit; font-size: 14px; border-radius: 8px; cursor: pointer; }
.login-form .group .cpt-indicatif option { color: #17343f; background: #fff; }
.cpt-tel-ligne .input { flex: 1; min-width: 0; }
.cpt-tel-ligne .lj-indicatif { flex: 0 0 auto; width: 118px; padding: 0 10px 0 12px; gap: 8px; }
.login-form .group .lj-bouton { min-height: 0; }
.login-form .group table { table-layout: fixed; }   /* sexe et date de naissance : deux colonnes égales */
.group[hidden] { display: none !important; }

/* Étapes du mot de passe oublié */
.cpt-etapes { list-style: none; display: flex; align-items: center; justify-content: center; gap: 0; margin: 14px 0 18px; padding: 0; }
.cpt-etapes li { display: flex; align-items: center; }
.cpt-etapes li + li::before { content: ""; width: 46px; height: 2px; background: rgba(255,255,255,.18); margin: 0 6px; }
.cpt-etapes li.fait + li::before, .cpt-etapes li.actif::before { background: #a4d316; }
.cpt-etapes span { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
    background: rgba(255,255,255,.1); color: #a9c4c7; }
.cpt-etapes .actif span { background: #a4d316; color: #0e2a2d; font-weight: 700; box-shadow: 0 0 0 4px rgba(164,211,22,.2); }
.cpt-etapes .fait span { background: #417487; color: #fff; }

/* Code à 6 chiffres */
.cpt-code { display: flex; justify-content: center; gap: 8px; margin: 6px 0 4px; }
.cpt-code input { width: 46px; height: 56px; border: 1.5px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.08);
    color: #fff; font: 600 24px/1 "Poppins", sans-serif; text-align: center; outline: none; padding: 0; transition: border-color .15s, background .15s; }
.cpt-code input:focus { border-color: #a4d316; background: rgba(255,255,255,.14); }
.cpt-renvoi { text-align: center; font-size: 13.5px; font-weight: 400; color: #8fb3b8; margin-top: 6px; }
.cpt-compte { color: #8fb3b8; margin-left: 4px; }

/* Mot de passe : œil, jauge */
.cpt-mdp { position: relative; }
.cpt-mdp .input { padding-right: 48px !important; }
.cpt-oeil { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent; color: #8fb3b8;
    display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; }
.cpt-oeil svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cpt-oeil.actif, .cpt-oeil:hover { color: #a4d316; }
.cpt-force { display: flex; align-items: center; gap: 10px; margin: -6px 0 14px; height: 18px; }
.cpt-force i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; }
.cpt-force i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; transition: width .2s, background .2s; }
.cpt-force span { font-size: 12px; font-weight: 400; color: #8fb3b8; min-width: 60px; text-align: right; }
.cpt-force.niv1 i::after { width: 20%; background: #e5484d; }
.cpt-force.niv2 i::after { width: 45%; background: #f0a33a; }
.cpt-force.niv3 i::after { width: 72%; background: #6fb3c7; }
.cpt-force.niv4 i::after { width: 100%; background: #a4d316; }
.cpt-form { min-height: 0 !important; }

@media (max-width: 480px) {
    .cpt-code input { width: 40px; height: 50px; font-size: 21px; }
    .cpt-code { gap: 6px; }
    .login-form .group .cpt-indicatif { width: 96px; }
}

/* Logo + WETU : toujours sur une ligne, taille adaptée à l'écran */
.cpt-marque { display: flex; align-items: center; gap: 12px; margin: 4px 0 22px; line-height: 1; white-space: nowrap; }
.cpt-marque a { display: inline-flex; flex-shrink: 0; }
.cpt-marque .logo { width: clamp(46px, 13vw, 70px); height: auto; display: block; }
.cpt-marque b { font-size: clamp(42px, 15vw, 75px); line-height: 1; font-weight: 800; letter-spacing: 1px; }
