/* Pages hors application (phase 7) : Connexion, Nouveau mot de passe, 404, Paiement terminé, login.html.
   Reprend le squelette `.au` de f.css (logo, boîte de 440 px) ; ne contient que ce qui est propre à ces pages. */

.au [hidden], .au .hidden { display: none !important; }

/* Le board n'a pas d'interligne global : on évite celui du corps de page de l'application. */
.au { line-height: normal; }

/* Les pages statiques (login.html, paiement-termine.html) défilent : f.css fixe `overflow: hidden` pour la grille de l'application. */
body.au-page { overflow: auto; height: auto; min-height: 100%; }

/* La page de connexion et la 404 vivent dans la scène du shell, qui ne défile pas : elles défilent elles-mêmes. */
#connexion-page.active, #notfound-page.active { height: 100vh; overflow: auto; }
#connexion-page .au, #notfound-page .au { box-sizing: border-box; padding: 32px 16px; }
.au .box { max-width: calc(100vw - 32px); box-sizing: border-box; }

/* Onglets Se connecter / Créer un compte : boutons réels, même apparence que `.tabs > span` du board. */
.au .tabs.au-tabs { align-self: stretch; }
.au .tabs > button { flex: 1; text-align: center; padding: 7px 14px; border: 0; border-radius: 9px; background: none; font: 500 14px Inter, sans-serif; color: var(--f-muted); cursor: pointer; }
.au .tabs > button.on { background: var(--f-text); color: var(--f-bg); }
.au .tabs > button:focus-visible { outline: 2px solid var(--f-accent); outline-offset: 2px; }

.au .au-h { font-size: 22px; }
.au .au-form { display: flex; flex-direction: column; gap: 14px; }
.au .btn { font: 600 13px Inter, sans-serif; border: 0; }
.au .au-cta { height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; }
.au .au-pill { display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; margin-top: 8px; text-decoration: none; }
.au .fl > label { font-size: 12px; color: var(--f-text-2); }

/* Champ : un vrai <input> habillé comme `.in` du board ; le champ à bouton (Afficher, « fort ») est un `.in` qui contient l'input. */
.au input.in { width: 100%; box-sizing: border-box; font: 400 13px Inter, sans-serif; }
.au .in::placeholder, .au .au-wrap input::placeholder { color: var(--f-dim); }
.au .au-wrap { gap: 10px; }
.au .au-wrap:focus-within { border-color: var(--f-accent); }
.au .au-wrap.er { border-color: var(--f-error); }
.au .au-wrap input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--f-text-body); font: 400 13px Inter, sans-serif; outline: none; padding: 0; }
.au .au-wrap input[type="password"]:not(:placeholder-shown) { letter-spacing: .2em; }
.au .au-show { border: 0; background: none; padding: 0; color: var(--f-muted); font: 400 13px Inter, sans-serif; cursor: pointer; }
.au .au-show:hover, .au .au-show:focus-visible { color: var(--f-text); }
.au .au-str { font-size: 13px; flex: none; }
.au .au-str.strong { color: var(--f-accent); }
.au .au-str.medium { color: var(--f-warn); }
.au .au-str.short { color: var(--f-error); }

/* Messages : texte de 12 px sous le champ (erreur) ou en tête de la boîte. */
.au .au-msg { font-size: 12px; line-height: 17px; }
.au .au-msg.er, .au .au-fe { color: var(--f-error); }
.au .au-msg.ok { color: var(--f-accent); }
.au .au-fe { font-size: 12px; }

/* Interrupteur de consentement : une case réelle (clavier, lecteur d'écran) dessinée comme le `.sw` du board. */
.au .au-sw { align-items: flex-start; cursor: pointer; position: relative; }
.au .au-sw > input { position: absolute; z-index: 1; opacity: 0; width: 36px; height: 20px; margin: 2px 0 0; cursor: pointer; }
.au .au-sw > .sw { margin-top: 2px; }
.au .au-sw > input:checked + .sw { background: var(--f-accent); }
.au .au-sw > input:checked + .sw::after { left: 18px; }
.au .au-sw > input:focus-visible + .sw { outline: 2px solid var(--f-accent); outline-offset: 2px; }
.au .au-sw .sub { margin: 0; }
.au .sub a, .au .au-links a { color: inherit; }
.au .sub a { text-decoration: underline; text-underline-offset: 2px; }
.au .au-consent { display: flex; flex-direction: column; gap: 14px; }
.au .au-consent .au-credits { margin: 0; }

/* Lien sous le bouton : « Mot de passe oublié ? » (le compte est obligatoire : pas de « Continuer sans compte »). */
.au .au-links { color: var(--f-muted); }
.au .au-links a { color: var(--f-muted); text-decoration: none; cursor: pointer; }
.au .au-links a:hover, .au .au-links a:focus-visible { color: var(--f-text); }
.au .au-foot { margin: 0; }

/* 404 et paiement : bloc centré, un titre, une phrase, un bouton vert. */
.au .au-center { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.au .au-center .sub { margin: 0; max-width: 380px; text-wrap: balance; }
.au .au-404 { font-size: 64px; color: var(--f-accent); letter-spacing: .1em; }
.au .au-center a:not(.btn) { color: var(--f-muted); text-decoration: none; }
.au .au-center a:not(.btn):hover { color: var(--f-text); }
.au .au-center .au-dim { color: var(--f-dim); }

/* login.html : résultat des contrôles (identité, projets, workflows, usage, refus sans jeton). */
.au .au-checks { list-style: none; margin: 0; padding: 0; }
.au .au-checks li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--f-line); font-size: 13px; }
.au .au-checks li span:last-child { font-family: 'Geist Mono', monospace; font-size: 12px; }
.au .ok { color: var(--f-accent); }
.au .ko { color: var(--f-error); }
.au .wait { color: var(--f-muted); }
.au .au-user { color: var(--f-muted); font-size: 13px; word-break: break-all; margin-top: 4px; }
.au .btn:disabled { cursor: wait; }
.au a.btn { text-decoration: none; }
