/* Connexion autonome, sans dépendance distante, utilisable au clavier et sur
   petits écrans. Les erreurs restent du texte annoncé par le navigateur. */
:root{color-scheme:light;--ink:#193d42;--muted:#607a78;--line:#dce7e1;--accent:#327c70}*{box-sizing:border-box}body{margin:0;background:#f1f5f1;color:var(--ink);font:16px/1.6 'Segoe UI',system-ui,sans-serif}a{color:inherit}.login-layout{max-width:1280px;min-height:calc(100vh - 78px);margin:auto;padding:64px 60px;display:grid;grid-template-columns:1.15fr 1fr;gap:85px;align-items:center}.brand{text-decoration:none;letter-spacing:2px;font-size:15px;font-weight:800}.brand span{color:var(--accent)}.eyebrow{font-size:11px;letter-spacing:2.4px;margin-top:64px;font-weight:700;color:var(--muted)}h1{font-size:clamp(34px,4vw,54px);line-height:1.15;letter-spacing:-2px;font-weight:650;margin:20px 0}h1 em{font-style:normal;color:var(--accent)}.lead{max-width:430px;color:var(--muted)}.principles{border-top:1px solid var(--line);margin-top:42px;padding-top:22px;display:grid;gap:10px;font-size:12px;color:var(--muted)}.login-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:42px;box-shadow:0 20px 60px #193d4209}.step{color:var(--accent);font-size:10px;font-weight:750;letter-spacing:1.6px;display:flex;align-items:center;gap:9px}.step-dot{width:7px;height:7px;border-radius:50%;background:var(--accent)}h2{font-size:29px;line-height:1.2;letter-spacing:-1px;margin-bottom:12px}.muted{color:var(--muted);font-size:14px;margin-bottom:30px}label{display:block;font-size:13px;font-weight:650;margin:20px 0 7px}input{width:100%;border:1px solid #c5d5cd;border-radius:10px;min-height:50px;background:#fcfdfc;padding:12px 14px;font:inherit;color:var(--ink)}button{display:flex;justify-content:space-between;align-items:center;gap:20px;width:100%;border:0;border-radius:10px;padding:15px 18px;font:600 14px 'Segoe UI',sans-serif;color:white;background:var(--ink);cursor:pointer;margin-top:26px;min-height:50px}button:hover{background:#28645f}:focus-visible{outline:3px solid #c09452;outline-offset:4px}.access-note{border-top:1px solid var(--line);margin-top:28px;padding-top:22px;font-size:12px}.access-note p{color:var(--muted);margin:7px 0}.small{font-size:11px;color:var(--muted);margin-top:26px}.error{background:#fff2ef;border-left:3px solid #ac4537;padding:12px;color:#8b352b;font-size:14px}.verification{max-width:650px;margin:12vh auto;padding:24px}.verification h1{font-size:34px}.verification p{font-size:14px}footer{max-width:1160px;margin:auto;border-top:1px solid var(--line);padding:20px 0;display:flex;justify-content:space-between;font-size:10px;letter-spacing:1px;color:var(--muted)}
/* Les champs conservent une taille tactile et aucun panneau n'impose de
   largeur fixe ; le formulaire passe avant le texte secondaire sur mobile. */
@media(max-width:850px){.login-layout{padding:32px 24px;gap:30px;grid-template-columns:1fr;max-width:580px}.welcome h1{font-size:36px}.eyebrow{margin-top:24px}.lead,.principles{display:none}.login-card{padding:28px}.welcome h1 br{display:none}.welcome h1{font-size:25px;letter-spacing:-.7px}.brand{font-size:13px}footer{margin:0 24px;gap:16px;flex-wrap:wrap}.verification{margin:6vh auto}}
/* L'installation reste une action secondaire distincte de la connexion.
   Les aides et confirmations sont du texte accessible, sans script requis. */
.secondary-action{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:48px;margin-top:16px;padding:12px 16px;border:1px solid var(--line);border-radius:10px;text-decoration:none;font-size:13px;font-weight:650;overflow-wrap:anywhere}.secondary-action:hover{background:#f1f5f1}.field-help{font-size:12px;line-height:1.5;color:var(--muted);margin:7px 0}.back-link{display:inline-block;min-height:44px;padding-top:12px}.success{background:#edf7ef;border-left:3px solid var(--accent);padding:12px;font-size:14px}
/* Jauge compacte sans animation : quatre segments et un texte qui reste
   lisible en mode couleurs forcées. Aucun déplacement de la saisie au clavier. */
.password-strength:not([hidden]){display:flex;align-items:center;gap:10px;margin:8px 0 0;min-height:18px;font-size:11px;line-height:1.4;color:var(--muted);flex-wrap:wrap}.strength-bars{display:flex;gap:3px;flex:0 0 70px;height:4px}.strength-bars span{flex:1;background:var(--line);border-radius:2px}.password-strength[data-level="1"]{--strength:#a74438}.password-strength[data-level="2"]{--strength:#946323}.password-strength[data-level="3"]{--strength:#397e77}.password-strength[data-level="4"]{--strength:#216047}.password-strength .is-filled{background:var(--strength)}@media(forced-colors:active){.strength-bars span{border:1px solid GrayText}.strength-bars .is-filled{background:Highlight}}
/* Afficher/masquer reste dans le champ sans ajouter de hauteur au formulaire.
   L'espace réservé protège le texte saisi et la cible mesure au moins 44 px. */
.password-field{position:relative}.password-field input{padding-right:88px}.password-toggle:not([hidden]){display:flex;position:absolute;right:4px;top:3px;width:78px;min-height:44px;margin:0;padding:8px;justify-content:center;gap:0;background:transparent;color:var(--accent);font-size:12px;border-radius:7px}.password-toggle:hover{background:#edf4ef;color:var(--ink)}
/* Une cérémonie en attente ou sans autorisation privée reste visiblement
   indisponible ; le texte d'état conserve la place des confirmations/erreurs. */
#fido2 button:disabled{opacity:.55;cursor:wait}#fido-status{min-height:1.6em;overflow-wrap:anywhere}
/* Codes privés lisibles sans débordement ; confirmation explicite avec cible tactile. */
.recovery-codes{padding-left:24px}.recovery-codes li{margin:12px 0}.recovery-codes code{font-size:13px;overflow-wrap:anywhere}.check-row{display:flex;align-items:flex-start;gap:12px;min-height:44px}.check-row input{width:22px;min-height:22px;margin:2px 0;flex:0 0 22px}.check-row span{font-size:13px;font-weight:400}
