/* assets/auth.css v0.1.004 — S134 (#5): .auth-back and its 400 px rule removed (the Back to izikey.nl link is gone from signup, login and set-password; the logo is the way home). Prev v0.1.003 — S129: laptop signup condensed so the whole form fits without a scrollbar from an 820 px viewport height (heading 30 px, field gap 8, label margin 3, language toggle ≈ 40 px, consent ticks 4 apart, "At least 8 characters." inline next to the Password label, pane padding 20/24); touch targets, 16 px input text, 22 px checkboxes and the 44 px pw-toggle kept; the pane-only scroll now starts below 820 px (was 860). Phone unchanged. Prev v0.1.002 — S128: laptop only — stronger 150 px white fade behind the top bar (drawn on the photo layer), compact form so signup fits an 855 px window, short screens (<= 860 px tall) fix the page and scroll the pane inside itself. Phone unchanged.
   v0.1.001 — S128 (L-25): the ONE shell for the four auth pages (login, signup, set-password, callback).
   Laptop (> 920 px): full-bleed black-and-white photo, frosted-glass form pane on the left.
   Phone (<= 920 px): a photo band at the top that fades into the paper at its bottom edge only; the form follows on paper.
   Page-specific rules stay in each page's inline <style>. Markup contract:
     body.auth [.auth-plain]  >  .auth-bg > img.auth-photo   (omitted on callback)
                              >  header.auth-head  >  main.auth-main > .auth-pane  >  footer.auth-foot */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --paper: #FAFAF8; --ink: #0F1312; --jade: #0B7A6E; --jade-dark: #095E55; --mist: #E4F1EE;
  --slate: #5E6866; --line: #D8DDDB; --coral: #c81532; --photo-bg: #2b2f2e;
  --head-h: 64px; --band-h: 260px;
}
html { min-height: 100%; }
body.auth { background: var(--paper); color: var(--ink); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; position: relative; }
.auth :focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; border-radius: 4px; }

/* ── photo ── */
.auth-bg { position: fixed; inset: 0; z-index: 0; background: var(--photo-bg); overflow: hidden; }
.auth-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; display: block; }

/* ── header (64 px) ── */
.auth-head { position: relative; z-index: 2; height: var(--head-h); flex: 0 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(180deg, rgba(250,250,248,.88) 0%, rgba(250,250,248,.55) 60%, rgba(250,250,248,0) 100%); }
.auth-plain .auth-head { background: none; }
.auth-logo { display: inline-flex; align-items: baseline; text-decoration: none; min-height: 44px; align-items: center; }
.auth-logo .izi { font-size: 22px; font-weight: 300; letter-spacing: -0.02em; color: var(--ink); }
.auth-logo .key { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--jade); }
.auth-head-r { display: flex; align-items: center; gap: 18px; }
.auth-lang { display: inline-flex; gap: 2px; }
.auth-lang button { font-family: inherit; font-size: 12px; font-weight: 600; color: var(--slate); background: none; border: none; cursor: pointer; padding: 4px 8px; min-height: 44px; min-width: 36px; }
.auth-lang button.active { color: var(--ink); text-decoration: underline; text-decoration-color: var(--jade); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ── main + glass pane ── */
.auth-main { position: relative; z-index: 1; flex: 1 0 auto; display: flex; align-items: center; justify-content: flex-start; padding: 12px 40px 12px 36px; }
.auth-pane { width: 100%; max-width: 440px; padding: 32px; border-radius: 24px;
  background: rgba(250,250,248,.72); -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1);
  border: 1px solid rgba(255,255,255,.6); box-shadow: 0 24px 60px -24px rgba(15,19,18,.45); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .auth-pane { background: rgba(250,250,248,.92); } }
.auth-plain .auth-main { justify-content: center; }
.auth-plain .auth-pane { background: none; border: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; text-align: center; max-width: 380px; }

/* ── footer ── */
.auth-foot { position: relative; z-index: 2; flex: 0 0 auto; padding: 16px 40px 24px 36px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.auth-foot a { color: #fff; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }
.auth-plain .auth-foot { color: var(--slate); text-shadow: none; }
.auth-plain .auth-foot a { color: var(--slate); }

/* ── type + controls ── */
.auth h1 { font-size: clamp(36px, 3.6vw, 48px); font-weight: 300; letter-spacing: -0.04em; line-height: 1.04; margin-bottom: 22px; }
.auth h1 b { font-weight: 700; }
.auth-tag { display: none; font-size: 14px; font-weight: 600; color: var(--coral); margin-bottom: 8px; }
.fld { margin-bottom: 16px; }
.fld > label, .fld-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.auth input[type=text], .auth input[type=email], .auth input[type=password], .auth input[type=tel], .auth select {
  width: 100%; font-family: inherit; font-size: 16px; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
  outline: none; transition: border-color .15s, box-shadow .15s; min-height: 48px; }
.auth input:focus, .auth select:focus { border-color: var(--jade); box-shadow: 0 0 0 4px rgba(11,122,110,.12); }
.auth input.err, .auth input.error, .auth select.err { border-color: var(--coral); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: none; border: none; cursor: pointer; color: var(--slate); font-size: 19px; display: flex; align-items: center; justify-content: center; }
.pw-toggle:hover { color: var(--ink); }
.ferr { display: none; font-size: 13px; color: var(--coral); margin-top: 6px; }
.ferr.show { display: block; }
.fhint { font-size: 13px; color: var(--slate); margin-top: 6px; }
.btn-jade { display: block; width: 100%; font-family: inherit; font-size: 16px; font-weight: 600; color: #fff; background: var(--jade); border: none; border-radius: 999px; padding: 15px; min-height: 48px; cursor: pointer; margin-top: 8px; transition: background .15s; text-align: center; text-decoration: none; }
.btn-jade:hover { background: var(--jade-dark); }
.btn-jade:disabled { opacity: .6; cursor: default; }
.check { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; min-height: 44px; }
.check input[type=checkbox] { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--jade); cursor: pointer; }
.check label { font-size: 14px; line-height: 1.5; cursor: pointer; }
.check label a { color: var(--jade); font-weight: 600; }
.check.error-highlight label { color: var(--coral); }
.auth-link { color: var(--jade); font-weight: 600; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-sub { font-size: 15px; color: var(--slate); }

@media (max-width: 920px) {
  :root { --band-h: 260px; }
  .auth-bg { position: absolute; inset: 0 0 auto 0; height: var(--band-h); }
  .auth-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--paper) 0%, rgba(250,250,248,0) 45%); }   /* bottom edge only: no side fade */
  .auth-head { padding: 0 20px; }
  .auth-main { align-items: flex-start; padding: calc(var(--band-h) - var(--head-h) - 40px) 20px 8px; }
  .auth-pane { max-width: none; padding: 0; background: none; border: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; }
  .auth-foot { padding: 16px 20px 28px; color: var(--slate); text-shadow: none; }
  .auth-foot a { color: var(--slate); }
  .auth h1 { font-size: 40px; }
  .auth-plain .auth-main { align-items: center; padding-top: 12px; }
}
@media (max-width: 400px) { .auth-head { gap: 8px; } .auth-head-r { gap: 6px; } }
@media (prefers-reduced-motion: reduce) { .auth * { animation: none !important; transition: none !important; } }
.vstamp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* version stamp: text stays in the DOM for the deploy check, out of sight (same rule as site.css; callback.html does not load site.css) */

/* ── v0.1.002 · laptop only ── */
@media (min-width: 921px) {
  /* 1 · stronger, taller white fade behind the top bar, drawn on the photo layer (callback has no .auth-bg, so no fade there) */
  .auth-head { background: none; }
  .auth-bg::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 150px; z-index: 1;
    background: linear-gradient(180deg, rgba(250,250,248,.97) 0%, rgba(250,250,248,.85) 40%, rgba(250,250,248,0) 100%); }

  /* 2 · compact form so it fits (checkbox 22 px, inputs >= 44 px, 16 px input text and the 44 px pw-toggle are kept) */
  .auth-main { padding: 0 40px 0 36px; }
  .auth-pane { padding: 20px 24px; }
  .auth h1 { font-size: 30px; line-height: 1.1; margin-bottom: 10px; }
  .fld { margin-bottom: 8px; }
  .fld > label, .fld-label { margin-bottom: 3px; font-size: 13px; }
  .auth input[type=text], .auth input[type=email], .auth input[type=password], .auth input[type=tel], .auth select { min-height: 44px; padding: 10px 14px; }
  .fhint { margin-top: 4px; font-size: 12px; }
  .check { margin-bottom: 4px; min-height: 0; }
  .check label { font-size: 13px; line-height: 1.45; }
  .btn-jade { margin-top: 6px; padding: 12px; min-height: 46px; }
  .auth-foot { padding: 10px 40px 14px 36px; }

  /* 3 · v0.1.003 — signup: the pieces that made the form taller than a 820–978 px window */
  .auth .consents { margin: 10px 0 6px; }
  .auth .have { margin-top: 12px; }
  .auth .seg { padding: 3px; gap: 4px; }                                    /* language toggle: ≈ 40 px high (was ≈ 56) */
  .auth .seg button { min-height: 34px; padding: 6px 10px; font-size: 14px; }
  .row2 .fld { position: relative; }                                        /* "At least 8 characters." sits on the Password label's line, not under the fields */
  .row2 .fld > .fhint { position: absolute; top: 1px; right: 0; margin: 0; font-size: 12px; color: #3A4442; white-space: nowrap; }   /* darker than slate: ≥ 4.5:1 on the glass pane */
}
/* 4 · short laptop screens (< 820 px tall): the page never scrolls; only the pane scrolls inside itself (as before, threshold was 860 px) */
@media (min-width: 921px) and (max-height: 819px) {
  body.auth { height: 100vh; height: 100dvh; overflow: hidden; }
  .auth-main { min-height: 0; flex: 1 1 auto; }
  .auth-pane { max-height: calc(100dvh - var(--head-h) - 48px); overflow-y: auto; overscroll-behavior: contain; }
  .auth h1 { font-size: 30px; margin-bottom: 10px; }
}
