/* Connexion à l'Administration d'avdconseils.ch : même présentation que la connexion de ComptaAVD (assets/auth.css de la plateforme). */
body:has(.auth-shell){margin:0;background:#f4f6f8}
.auth-shell{--navy:#293f57;--navy-2:#3e5b75;--ink:#1d2733;--muted:#6d7b89;--line:#dce3e9;--accent:#c6a463;--danger:#a53b3b;min-height:100vh;display:grid;grid-template-columns:minmax(320px,42%) 1fr;color:var(--ink);font-family:CenturyGothic,"Century Gothic","Avenir Next",Avenir,Arial,sans-serif}
.auth-shell *{box-sizing:border-box}
.auth-shell .brand-panel{background:linear-gradient(145deg,#293f57,#1f3144);color:#fff;padding:54px;display:flex;flex-direction:column;justify-content:space-between}
.auth-shell .brand-panel img{width:min(300px,78%);height:auto;filter:brightness(0) invert(1);opacity:.96}
.auth-shell .brand-copy{max-width:470px}
.auth-shell .brand-copy h1{font-size:clamp(32px,4vw,58px);line-height:1.08;margin:24px 0;color:#fff;letter-spacing:0}
.auth-shell .brand-copy p{color:#d7e0e8;line-height:1.7;margin:0}
.auth-shell .eyebrow{margin:0;text-transform:uppercase;letter-spacing:.18em;font-size:11px;color:var(--accent);font-weight:700}
.auth-shell .brand-copy .eyebrow{color:#fff}
.auth-shell .secure-note{display:flex;gap:12px;align-items:center;color:#d7e0e8;font-size:14px}
.auth-shell .secure-note span{width:9px;height:9px;border-radius:50%;background:#8dc6a2;box-shadow:0 0 0 5px rgba(141,198,162,.13)}
.auth-shell .form-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:44px}
.auth-shell .card{width:min(480px,100%);background:#fff;border:1px solid var(--line);border-radius:18px;padding:42px;box-shadow:0 24px 70px rgba(41,63,87,.10)}
.auth-shell .card h2{font-size:30px;margin:12px 0 10px;color:var(--ink)}
.auth-shell .lead{color:var(--muted);line-height:1.55;margin:0 0 28px;font-size:1rem}
.auth-shell .field{margin:0 0 19px}
.auth-shell .field label{display:block;font-size:13px;font-weight:700;margin:0 0 8px}
.auth-shell .field input{width:100%;font:inherit;font-size:16px;padding:14px 15px;border:1px solid #cbd5dd;border-radius:9px;color:var(--ink);background:#fff}
.auth-shell .field input:focus{outline:3px solid rgba(41,71,98,.13);border-color:var(--navy-2)}
.auth-shell .auth-button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;border:0;border-radius:9px;background:var(--navy);color:#fff;padding:15px 18px;font:700 15px CenturyGothic,"Century Gothic","Avenir Next",Avenir,Arial,sans-serif;cursor:pointer}
.auth-shell .auth-button:hover{background:var(--navy-2)}
.auth-shell .auth-button.secondary{background:#fff;color:var(--navy);border:1px solid var(--line);margin-top:12px}
.auth-shell .auth-button.secondary:hover{background:#f6f8fa}
.auth-shell .auth-button.secondary::before{content:"";width:20px;height:20px;background:currentColor;-webkit-mask:url("/assets/touchid.svg") center/contain no-repeat;mask:url("/assets/touchid.svg") center/contain no-repeat}
.auth-shell .auth-button[hidden]{display:none}
.auth-shell .auth-button:disabled{opacity:.6;cursor:default}
.auth-shell .error{padding:13px 15px;border-radius:8px;margin:0 0 20px;font-size:14px;line-height:1.5;background:#fff0f0;color:var(--danger);border:1px solid #efd0d0}
.auth-shell .error[hidden]{display:none}
.auth-shell .error.passkey{margin:12px 0 0}
.auth-shell .footer{margin-top:30px;padding-top:20px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);line-height:1.55}
.auth-shell .back{font-size:13px}.auth-shell .back a{color:var(--navy);text-decoration:none}.auth-shell .back a:hover{text-decoration:underline}
@media(max-width:820px){.auth-shell{grid-template-columns:1fr}.auth-shell .brand-panel{min-height:340px;padding:34px}.auth-shell .brand-panel img{width:210px}.auth-shell .brand-copy h1{font-size:34px}.auth-shell .form-panel{padding:25px}.auth-shell .card{padding:30px 24px}}
.auth-shell .qr{display:flex;justify-content:center;margin:0 0 14px}.auth-shell .hint{font-size:12px;line-height:1.5;color:var(--muted);margin:0 0 18px}.auth-shell .hint code{font:700 13px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.06em}.auth-shell a.auth-button{text-decoration:none}
/* Boutons comme sur ComptaAVD : texte simple sur une ligne ; bouton Touch ID secondaire sans pictogramme. */
.auth-shell .auth-button{font-weight:500;font-size:14px}
.auth-shell .auth-button.secondary{font-weight:400;font-size:13.5px}
.auth-shell .auth-button.secondary::before{display:none}
/* Mesures identiques à ComptaAVD (20.11.2026) : interlignage « normal » (le site imposait 1.6), marges du surtitre,
   boutons au texte système 13,3 px, lien « Retour au site » hors du centrage pour que la carte soit à la même hauteur. */
.auth-shell .card,.auth-shell .card *{line-height:normal}
.auth-shell .card .lead{line-height:1.55}.auth-shell .card .footer{line-height:1.55}
.auth-shell .card .eyebrow{margin:11px 0}
.auth-shell .auth-button,.auth-shell .auth-button.secondary{font:400 13.3333px Arial,sans-serif;padding:15px 18px}
.auth-shell .form-panel{position:relative}
.auth-shell .back{position:absolute;left:0;right:0;bottom:28px;margin:0;text-align:center}
/* Derniers écarts mesurés avec ComptaAVD : espacement des lettres du titre, couleur du surtitre bleu, interlignage du panneau. */
.auth-shell .card h2{letter-spacing:normal}
.auth-shell .brand-copy .eyebrow{color:#d7e0e8}
.auth-shell .brand-panel,.auth-shell .secure-note{line-height:normal}
/* Couleurs et police des boutons exactement comme ComptaAVD (valeurs relevées sur compta.avdconseils.ch le 20.11.2026) :
   le texte des boutons y est la police système du navigateur (Safari : San Francisco), d'où « font: revert ». */
.auth-shell{--navy:#20374e;--navy-2:#294762;--ink:#203247}
.auth-shell .brand-panel{background:linear-gradient(145deg,#1d3348,#294861)}
.auth-shell .card .eyebrow{color:#c6a463}
.auth-shell .auth-button,.auth-shell .auth-button.secondary{font:revert;font-size:13.3333px;font-weight:400}
.auth-shell .field input:focus{border-color:#294762}
/* Police : même déclaration que ComptaAVD (CenturyGothic = Century Gothic installée sur l'appareil, sinon Avenir Next). */
@font-face{font-family:CenturyGothic;src:local("Century Gothic"),local("CenturyGothic")}
.auth-shell{font-family:CenturyGothic,"Avenir Next",Avenir,Arial,sans-serif}
