/* Écrans hors connexion (templates/login.php : connexion, bienvenue, mot de passe oublié, lien plus valable). */
.auth .login-left__tagline { text-wrap: balance; }
.auth-dot { color: var(--nk-rose); }
.auth .login-card h1 { margin-bottom: 20px; }
.auth-lead { margin: -8px 0 20px; color: var(--nk-text-2); }
.auth .login-card p.auth-lead { margin-bottom: 20px; }
.auth-note { margin: 0 0 20px; font-size: var(--nk-fs-sm); line-height: 20px; color: var(--nk-text-2); }
.auth .login-card p.auth-note { margin-bottom: 20px; color: var(--nk-text-2); }
/* DA du site (25/10) : un seul grand titre (le slogan), « Connexion » en sur-titre ; champs de 52 px, un seul anneau au focus */
.auth .login-card h1.auth-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-family: var(--nk-font-text); font-size: 13px; line-height: 18px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--nk-text-2); }
.auth .form-input { height: 52px; border-radius: 12px; border: 1px solid var(--nk-field); }
.auth .form-input:focus { outline: 0; border-color: var(--nk-ink); box-shadow: inset 0 0 0 1px var(--nk-ink); }
.auth .form-check input[type="checkbox"] { width: 20px; height: 20px; border-radius: 6px; }
@media (max-width: 767px) {
  .auth .login-left__logo, .auth .login-left__logo svg { width: 108px; }
  .auth .login-left__tagline { font-size: 28px; line-height: 32px; letter-spacing: -.025em; }
}
.auth-links { margin: 18px 0 0; text-align: center; font-size: var(--nk-fs-sm); }
.auth .login-card p.auth-links { margin: 18px 0 0; }
.auth-links a { color: var(--nk-ink); text-decoration: underline; text-decoration-color: var(--nk-rose); text-underline-offset: 3px; }
.auth-id[readonly] { background: var(--nk-paper); color: var(--nk-ink); font-weight: 500; }
/* Champ mot de passe avec l'œil (même rendu que les comptes, screens/accounts.css) */
.auth .pw-field { position: relative; }
.auth .pw-field .form-input { padding-right: 56px; }
.auth .pw-field .form-input::-ms-reveal { display: none; }
.auth .pw-field .form-input[type="text"] { font-family: var(--nk-font-mono); font-weight: 500; letter-spacing: .02em; }
.auth .pw-field__toggle { position: absolute; top: 0; bottom: 0; right: 2px; margin: auto 0; width: 44px; height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--nk-text-2); }
.auth .pw-field__toggle:hover { background: var(--nk-paper-2); color: var(--nk-ink); }
.auth .pw-field__toggle svg { width: 20px; height: 20px; flex-shrink: 0; }
.auth .pw-field__toggle[aria-pressed="true"] .pw-field__show,
.auth .pw-field__toggle:not([aria-pressed="true"]) .pw-field__hide { display: none; }
/* Arrivée après la démo (?fin=demo) : la page repart de la dernière image de la démo (logo au centre, « Place à votre
   espace. ») ; auth-intro.js renvoie le logo à sa place, puis la phrase et la carte arrivent. Sans script : 2,6 s. */
.auth-intro { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; pointer-events: none; }
.auth-intro__inner { display: grid; justify-items: center; gap: 18px; padding: 0 24px; text-align: center; }
.auth-intro__inner svg { display: block; width: 170px; height: auto; overflow: visible; }
.auth-intro__text { margin: 0; font-family: var(--nk-font-title); font-weight: 600; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; color: var(--nk-ink); }
.auth-intro__text span { color: var(--nk-rose); }
.auth--intro .login-left__logo, .auth--intro .login-left__tagline, .auth--intro .login-card { opacity: 0; }
.auth--intro:not(.is-js) .login-left__logo, .auth--intro:not(.is-js) .login-left__tagline, .auth--intro:not(.is-js) .login-card { animation: auth-show .4s 2.6s forwards; }
.auth-intro:not(.is-js) { animation: auth-hide .4s 2.6s forwards; }
@keyframes auth-show { to { opacity: 1; } }
@keyframes auth-hide { to { opacity: 0; visibility: hidden; } }
.auth--intro.is-landed .login-left__logo { opacity: 1; }
.auth--intro.is-tag-in .login-left__tagline { animation: auth-tag-in .8s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes auth-tag-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.auth--intro.is-card-in .login-card { animation: auth-rise .75s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes auth-rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .auth-intro { display: none; }
  .auth--intro .login-left__logo, .auth--intro .login-left__tagline, .auth--intro .login-card { opacity: 1; animation: none; }
}
/* Face ID / Touch ID (assets/js/screens/passkey.js) : bouton au-dessus du formulaire sur un appareil déjà utilisé */
.auth-pk { margin: 0 0 4px; }
.auth-pk .btn { gap: 10px; }
.auth-pk .btn svg { width: 22px; height: 22px; }
.auth-pk__msg { margin: 10px 0 0; font-size: var(--nk-fs-sm); color: var(--nk-text-2); text-align: center; }
.auth-pk__msg:empty { display: none; }
.auth .login-card p.auth-pk__or { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 13px; color: var(--nk-text-2); }
.auth-pk__or::before, .auth-pk__or::after { content: ""; flex: 1; height: 1px; background: var(--nk-line); }
/* Contact de Nickel sous la carte (25/10, FL : « mon num de tel et mail en bas au cas où ») */
.auth .login-right { flex-direction: column; }
.auth-contact { width: 100%; max-width: 460px; margin: 16px 0 0; text-align: center; font-size: 13px; line-height: 20px; color: var(--nk-text-2); }
.auth p.auth-contact a { color: var(--nk-ink); font-weight: 500; white-space: nowrap; text-decoration-line: underline; text-decoration-color: rgba(17, 17, 20, .28);
  text-decoration-thickness: 1px; text-underline-offset: 3px; }
.auth p.auth-contact a:hover { text-decoration-color: var(--nk-rose); }
.auth--intro .auth-contact { opacity: 0; }
.auth--intro:not(.is-js) .auth-contact { animation: auth-show .4s 2.6s forwards; }
.auth--intro.is-card-in .auth-contact { animation: auth-show .4s .5s forwards; }
@media (prefers-reduced-motion: reduce) { .auth--intro .auth-contact { opacity: 1; animation: none; } }
@media (max-width: 767px) { .auth-contact { max-width: 560px; margin-top: 14px; } }
/* Proposition de Face ID après la connexion (#pk-offer, templates/layout-end.php) : petite fenêtre centrée, en bas sur téléphone */
.pk-offer .modal { max-width: 400px; text-align: center; }
.pk-offer__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 4px auto 14px; border-radius: 50%; background: var(--nk-paper); color: var(--nk-ink); }
.pk-offer__icon svg { width: 28px; height: 28px; }
.pk-offer .modal__title { margin-bottom: 8px; padding-right: 0; }
.pk-offer__text { margin: 0; color: var(--nk-text-2); text-wrap: balance; }
.pk-offer__note { margin: 8px 0 0; font-size: 13px; line-height: 18px; color: var(--nk-text-2); }
.pk-offer__msg { margin: 12px 0 0; font-size: var(--nk-fs-sm); color: var(--nk-ink); }
.pk-offer__msg:empty { display: none; }
.pk-offer .modal__actions { justify-content: center; margin-top: 20px; }

/* Activation (27/10) : « Copier » à côté de l'identifiant */
.auth-id-row { display: flex; gap: 8px; align-items: stretch; }
.auth-id-row .auth-id { flex: 1; min-width: 0; }
.auth-id-copy { flex: none; min-height: 0; padding-left: 14px; padding-right: 14px; }
.auth-id-copy[hidden] { display: none; }
/* Invitation sur téléphone, hors de l'app : « Ajoutez l'app » (27/10) */
.auth-install { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: ai; display: grid; gap: 12px; }
.auth-install li { counter-increment: ai; display: grid; grid-template-columns: 26px 30px 1fr; gap: 10px; align-items: center; line-height: 1.45; color: var(--nk-text-2); }
.auth-install li .nk-ico { margin: 0; vertical-align: 0; }
.auth-install li::before { content: counter(ai); width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--nk-ink); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--nk-ink); }
.auth-install b, .auth-install__text b, .auth-install__then b { color: var(--nk-ink); font-weight: 600; }
.auth .login-card .auth-install__text, .auth .login-card .auth-install__then { margin: 0 0 16px; color: var(--nk-text-2); }
.auth-install__arrow { position: fixed; z-index: 5; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; pointer-events: none;
  background: var(--nk-ink); color: var(--nk-white); box-shadow: 0 6px 18px rgba(17, 17, 20, .22); animation: ai-nudge .9s ease-in-out 4; }
.auth-install__arrow svg { display: block; width: 28px; height: 28px; }
.auth-install__arrow--bottom-left { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); left: calc(26% - 28px); } /* ≡ d'iOS 26 */
.auth-install__arrow--bottom { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); left: calc(50% - 28px); }
.auth-install__arrow--top-right { top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; animation-name: ai-nudge-up; }
.auth-install__arrow--top-right svg { transform: rotate(180deg); }
@keyframes ai-nudge { 50% { transform: translateY(6px); } }
@keyframes ai-nudge-up { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .auth-install__arrow { animation: none; } }
