/* ─────────────────────────────────────────────────────────────────────────────
   auth.css — login.html + verify.html only
   Loaded alongside fionda.css (which supplies every :root token, plus the
   .fh-logo/.fh-logo-mark classes reused below for the slim signed-out nav).
   Classes here are ported verbatim from dev/adhoc/magic_link_auth_mockup.html
   (screens 01–05) — same names, same rules — deduped against what fionda.css
   already provides (no token redeclaration, no color literals: everything
   routes through the shared :root custom properties).
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Slim signed-out nav — logo only, no tabs, no meta cluster ──
   Not <fionda-nav> (that custom element is defined by nav.js, which these
   pages deliberately don't load — see the build brief §5). This is a plain
   div styled to match the real nav bar's chrome so the auth pages read as
   the same product, not a separate system. */
.fh-auth-nav {
  background: var(--nav-bg);
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 48px;
  border-bottom: 1px solid var(--nav-border);
}
@media (max-width: 480px) {
  .fh-auth-nav { padding: 0 16px; }
}

/* Centered card body — the page area below the slim nav. */
.auth-main {
  min-height: calc(100vh - 52px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 20px;
  background: var(--bg);
}
.auth-stack { width: 100%; max-width: 400px; margin: 0 auto; }

.auth-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 36px 34px;
  box-shadow: 0 1px 3px rgba(var(--shadow-rgb), 0.10);
}
.auth-eyebrow { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.auth-h1 { font: 600 24px/1.28 var(--display); color: var(--text); letter-spacing: -0.01em; margin-bottom: 16px; }
.auth-body { font-family: var(--prose); font-size: 13.5px; line-height: 1.65; color: var(--text-mid); margin-bottom: 8px; text-align: left; }
.auth-note { font-family: var(--prose); font-size: 12px; line-height: 1.55; color: var(--subdued); margin-top: 16px; text-align: left; }

.auth-notice {
  max-width: 400px; margin: 0 auto 16px; text-align: left;
  font-family: var(--prose); font-size: 12.5px; color: var(--text-mid);
  background: var(--surface-inset); border: 1px solid var(--border); border-left: 3px solid var(--accent2);
  border-radius: 6px; padding: 10px 14px;
}

.auth-field { margin: 22px 0 20px; text-align: left; }
.auth-label {
  display: block; font: 500 10.5px var(--fig); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--subdued); margin-bottom: 7px;
}
.auth-input {
  display: block; width: 100%; padding: 11px 12px; border: 1px solid var(--border-2);
  border-radius: 6px; background: var(--surface-inset); color: var(--text);
  font: 400 14px var(--fig); text-align: left;
}
.auth-input::placeholder { color: var(--muted); }
.auth-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

.auth-btn-primary {
  display: block; width: 100%; text-align: center;
  background: var(--accent); color: var(--on-accent); border: none; border-radius: 6px;
  padding: 12px; font: 600 14px var(--fig); cursor: pointer; transition: background 0.15s;
}
.auth-btn-primary:hover { background: var(--accent-hover); }
.auth-btn-primary:disabled { cursor: default; opacity: 0.65; }

.auth-resend-row {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 9px; text-align: left;
}
.auth-link {
  background: none; border: none; padding: 0; cursor: pointer;
  font: 400 12.5px var(--fig); color: var(--subdued); text-decoration: none;
}
.auth-link:hover { color: var(--text-mid); text-decoration: underline; }
.auth-link.disabled, .auth-link:disabled { color: var(--muted); cursor: default; pointer-events: none; }
.auth-link.disabled:hover, .auth-link:disabled:hover { text-decoration: none; }

.auth-footer-links { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.auth-footer-links a { font: 400 12.5px var(--fig); color: var(--subdued); text-decoration: none; }
.auth-footer-links a:hover { color: var(--text-mid); text-decoration: underline; }

.auth-tiny-note { margin-top: 18px; font: 400 11.5px var(--fig); color: var(--muted); text-align: center; }
.auth-tiny-note button.auth-link { font-size: 11.5px; }

/* Echo-mode dev convenience — the send route's dev_link, rendered only when
   FIONDA_AUTH_DEV_ECHO=1 put one in the JSON response (see login.html). */
.auth-dev-link {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border-2);
  font: 400 11.5px var(--fig); color: var(--subdued); text-align: left; word-break: break-all;
}
.auth-dev-link a { color: var(--accent); }

/* ── Error template (sibling of site/Fionda POC/404.html .notfound) ── */
.err-wrap { max-width: 440px; margin: 0 auto; padding: 0 24px; text-align: center; }
.err-kicker { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subdued); margin-bottom: 16px; font-weight: 500; }
.err-h1 { font: 600 30px/1.25 var(--display); color: var(--text); margin-bottom: 16px; }
.err-body { font-family: var(--prose); font-size: 14px; color: var(--subdued); line-height: 1.7; margin-bottom: 28px; }
.err-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.err-actions .auth-btn-primary { max-width: 240px; }
.err-actions .auth-link { font-size: 13px; }
