/* The sign-in look, shared by /login and /get: the Windows app's sign-in screen, value for value
   (windows/app/src/pages/shell.rs login() and poster_wall(); design/SPEC.md 3.11).
   A wall of zunflix's posters turned -10°, its columns drifting up and down past each other, softly blurred; one flat
   dark card over it with folder tabs on its top edge. All Geist. Values the design tokens have come from tokens.css;
   the few below are the app's own (ui.rs, ds.rs, theme.rs), not tokens yet. */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/geist.woff2) format('woff2'); }
:root {
  --sign-card: rgb(24 24 24);              /* flatPanel: ui.rs FLAT_PANEL #181818, the card */
  --sign-tab-off: rgb(34 34 36);           /* tabOff #222224: the tab not chosen */
  --sign-tab-off-hover: rgb(44 44 47);     /* tabOffHover #2C2C2F: under the pointer */
  --sign-danger: rgb(229 72 77);           /* danger: theme.rs DANGER #E5484D */
  --sign-on-white: rgb(0 0 0 / 0.0784);    /* the Primary button's hover light #14000000 (ds.rs), and the pill on it */
  --sign-wall-tint: var(--c-wall-tint);    /* the blur over the wall (sigma 4) */
  --sign-wall-blur: 4px;
  --sign-shade-top: rgb(0 0 0 / var(--k-sign-in-wall-shade-top-share));     /* then black, top to bottom */
  --sign-shade-foot: rgb(0 0 0 / var(--k-sign-in-wall-shade-foot-share));
  --sign-hover-ms: 220ms;                  /* ds.rs HOVER_MS: a hover light easing in and out */
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--c-bg); color: var(--c-white); }
html { scrollbar-gutter: stable; }   /* (the bar where the home page has it, scrollbar or not) */
body { font-family: var(--font); font-weight: var(--fw-regular); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
p { margin: 0; }

/* ---------- the wall (shell.rs poster_wall): built by zsign.js at the window's size ---------- */
.wall { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.wall-turned { position: absolute; display: flex; gap: 12px; align-items: flex-start; transform: rotate(-10deg); transform-origin: center; }
.wall-col { position: relative; flex: none; display: flex; flex-direction: column; gap: 12px; will-change: transform; }
/* drawn by zsign.js already saturated and blurred (one picture per column, nothing to re-blur as it drifts); the
   tint and the shade stay over it, the backdrop-filter goes */
.wall-col canvas { position: absolute; display: block; }
.wall.baked + .wall-blur { -webkit-backdrop-filter: none; backdrop-filter: none; }
.wall-col i { display: block; flex: none; border-radius: var(--r-wall-poster); background: var(--c-card); overflow: hidden; }
.wall-col img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--d-picture) var(--ease); }
.wall-col img.in { opacity: 1; }
/* a soft blur over the moving posters (the card standing out from them), then the shade */
.wall-blur { position: fixed; inset: 0; pointer-events: none; background: var(--sign-wall-tint);
  -webkit-backdrop-filter: saturate(var(--glass-saturation)) blur(var(--sign-wall-blur)); backdrop-filter: saturate(var(--glass-saturation)) blur(var(--sign-wall-blur)); }
.wall-blur::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 62% at 50% 48%, rgb(5 5 5 / var(--k-sign-in-wall-edge-in-share)), rgb(5 5 5 / var(--k-sign-in-wall-edge-out-share)) 78%), linear-gradient(var(--sign-shade-top), var(--sign-shade-foot)); }

/* ---------- the panel: folder tabs over one card, in the middle ---------- */
.stage { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 24px var(--s-gutter); }
.sign-panel { width: min(420px, 100%); display: flex; flex-direction: column; align-items: flex-start; }

/* the tabs on the card's top edge, past its rounded corner: 58 tall, 16 of it tucked under the card */
.folder { display: flex; gap: 6px; margin-left: calc(var(--r-panel) - 4px); }
.folder-tab { position: relative; height: 58px; margin-bottom: -16px; padding: 0 18px 16px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; white-space: nowrap;
  background: var(--sign-tab-off); color: var(--w85); font-size: 14px; font-weight: var(--fw-medium); }
.folder-tab[aria-selected="true"] { background: var(--c-white); color: var(--c-black); font-weight: var(--fw-bold); cursor: default; }
@media (hover: hover) {
  .folder-tab:not([aria-selected="true"]):hover { background: var(--sign-tab-off-hover); color: var(--c-white); }
}

.sign-card { position: relative; z-index: 1; width: 100%; border-radius: var(--r-panel); background: var(--sign-card); overflow: hidden;
  padding: 30px 22px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }

/* "zunflix", centred, no version */
.wordmark { font-size: var(--t-login-wordmark); line-height: var(--t-login-wordmark-line); letter-spacing: var(--t-login-wordmark-spacing);
  font-weight: var(--fw-bold); color: var(--c-ink); white-space: nowrap; }
.wordmark span { color: var(--c-wordmark-grey); }

/* the line under the name: a new one fades in over the last fading out (zsign.js swapLine) */
.lede { position: relative; width: 100%; margin-top: 8px; }
.lede p { font-size: 14px; font-weight: var(--fw-medium); color: var(--w85); }
.lede p.leaving { position: absolute; top: 0; left: 0; right: 0; }

/* ---------- pressing: every control sinks on the press spring, and back on it ---------- */
.press { transition: transform var(--spring-press-ms) var(--spring-press); }
.press:active { transform: scale(var(--press-chip)); }
.press.round:active { transform: scale(var(--press-round)); }

/* ---------- a field (ui.rs glass_field): 50 high, w18 with a w20 rim (w40 typing), 16 medium white, the hint w60 ---------- */
.field { width: 100%; height: var(--s-field); display: flex; align-items: center; padding: 0 20px; border-radius: calc(var(--s-field) / 2);
  background: var(--w18); border: 1px solid var(--w20); overflow: hidden; cursor: text; }
.field:focus-within { border-color: var(--w40); }
.field.trailing { padding-right: 6px; }
.field input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent;
  font-size: 16px; font-weight: var(--fw-medium); color: var(--c-white); caret-color: var(--c-white); }
.field input::placeholder { color: var(--w60); opacity: 1; }
.field input::selection { background: var(--w30); }
.field input:-webkit-autofill, .field input:-webkit-autofill:hover, .field input:-webkit-autofill:focus { -webkit-text-fill-color: var(--c-white); caret-color: var(--c-white);
  -webkit-box-shadow: none; box-shadow: none; transition: background-color 9999999s ease-out 0s; }
.field input:autofill { background: transparent; }
.field input::-ms-reveal, .field input::-ms-clear { display: none; }
/* the eye: 40 round, the icon 19 in w80 */
.eye { flex: none; width: 40px; height: 40px; display: grid; place-items: center; color: var(--w80); border-radius: 50%; }
.eye svg { width: 19px; height: 19px; }

/* ---------- Button, Primary L (ds.rs): 46 high, white, bold 15 black, a light under the pointer, press 0.97 ---------- */
.primary { position: relative; width: 100%; height: 46px; padding: 0 22px; border-radius: 23px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--c-white); color: var(--c-black); font-size: var(--t-pill); font-weight: var(--fw-bold); text-decoration: none; isolation: isolate; }
.primary::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--sign-on-white); opacity: 0;
  transition: opacity var(--sign-hover-ms) var(--overlay); pointer-events: none; }
@media (hover: hover) { .primary:hover::before { opacity: 1; } }
.primary:disabled { cursor: default; }
.primary svg { width: 17px; height: 17px; flex: none; }

/* an error: danger 12.5, centred */
.error { width: 100%; margin-top: 12px; font-size: 12.5px; color: var(--sign-danger); }
.error:empty { display: none; }

/* keyboard focus only (the pointer never draws a ring); fields show theirs in the rim */
.folder-tab:focus-visible, .primary:focus-visible, .eye:focus-visible, .remember:focus-visible { outline: 2px solid var(--w85); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- the top bar, as the home page's: the name (back home) on the left, Log out on the right ---------- */
.zbar { position: fixed; inset: 0 0 auto; z-index: 30; }
.zbar .zwrap { width: min(1180px, 100% - 2 * var(--s-gutter)); margin: 0 auto; height: 68px; display: flex; align-items: center; gap: 12px; }
.zbar .zmark { margin-right: auto; font-size: 24px; font-weight: var(--fw-bold); color: var(--c-ink); text-decoration: none; letter-spacing: -0.04em; }
.zbar .zmark span { color: var(--c-wordmark-grey); }
.zbar .zpill { box-sizing: border-box; height: 40px; padding: 0 18px; border-radius: 20px; display: inline-flex; align-items: center;
  background: var(--w10); color: var(--c-white); border: 1px solid var(--w10); font: inherit; font-size: 14px; font-weight: var(--fw-bold);
  cursor: pointer; transition: background 160ms var(--ease), transform 120ms var(--ease); }
@media (hover: hover) { .zbar .zpill:hover { background: var(--w15); } }
.zbar .zpill:active { transform: scale(var(--press-chip)); }
.zbar [hidden] { display: none; }
