/* Presentation only. Also supports the frozen, fast PIN entry markup. */
html body .pin-screen.pin-autumn {
  --pin-bg:#081523; --pin-glow:#203c57; --pin-glow-y:20%; --pin-card-bg:#101f30;
  --pin-text:#f6f8fb; --pin-muted:#aec6d8; --pin-accent:#aee7ff; --pin-key-bg:#172a40; --pin-line:#35536b;
  box-sizing:border-box; min-height:100vh; min-height:100dvh; display:grid;
  justify-items:center; align-content:center; align-content:safe center;
  padding:max(28px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background:radial-gradient(ellipse at 50% var(--pin-glow-y),var(--pin-glow) 0%,transparent 62%),var(--pin-bg);
  color:var(--pin-text); font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
}
html[data-theme='light'] body .pin-screen.pin-autumn {
  --pin-bg:#e7f0f8; --pin-glow:#fff; --pin-glow-y:10%; --pin-card-bg:#fbfdff;
  --pin-text:#13252e; --pin-muted:#465e72; --pin-accent:#185c83; --pin-key-bg:#edf4fb; --pin-line:#bdcfdf;
}
html body .pin-screen.pin-autumn .pin-card {
  width:min(100%,320px); box-sizing:border-box; display:grid; grid-template-columns:1fr 1fr;
  padding:22px 21px 17px; background:var(--pin-card-bg); border:1px solid var(--pin-line);
  position:relative; border-radius:20px; box-shadow:inset 0 1px #e0f5ff55,0 16px 40px #060f242e;
  text-align:center;
}
html body .pin-screen.pin-autumn .pin-card::before,
html body .pin-screen.pin-autumn .pin-card::after {
  content:''; position:absolute; width:20px; height:20px; inset:12px auto auto 12px;
  pointer-events:none; background-color:var(--pin-accent); opacity:.7;
  -webkit-mask:url('/images/login/november-snowflake-20261111-r1.svg') center / contain no-repeat;
  mask:url('/images/login/november-snowflake-20261111-r1.svg') center / contain no-repeat;
}
html body .pin-screen.pin-autumn .pin-card::after {
  width:14px; height:14px; inset:28px 12px auto auto; opacity:.55;
}
.pin-screen.pin-autumn .pin-card > * { grid-column:1/-1; min-width:0; }
html body .pin-screen.pin-autumn .pin-wordmark {
  display:block; width:144px; max-width:100%; height:auto; margin:0 auto; object-fit:contain;
}
html body .pin-screen.pin-autumn .pin-brand-caption { margin:3px 0 16px; font-size:11px; line-height:1.4; }
html body .pin-screen.pin-autumn .pin-card h1 { margin:0; font-size:23px; line-height:1.2; letter-spacing:-.4px; }
html body .pin-screen.pin-autumn .pin-description { margin:6px 0 0; font-size:13px; line-height:1.45; }
html body .pin-screen.pin-autumn .pin-card form { margin:0; }
html body .pin-screen.pin-autumn .pin-dots { width:120px; max-width:100%; margin:17px auto 0; padding:0; gap:13px; }
html body .pin-screen.pin-autumn .pin-dots > span:not(.pin-sr-only) { width:12px; height:12px; border-width:1px; }
html body .pin-screen.pin-autumn .pin-feedback { min-height:12px; margin:0; line-height:1.4; font-size:12px; }
html body .pin-screen.pin-autumn .pin-feedback:not(:empty) { padding:4px 0 6px; }
/* Keep the empty live region exposed to assistive technology. */
html body .pin-screen.pin-autumn .pin-keypad { gap:7px; }
html body .pin-screen.pin-autumn .pin-keypad button,
html body .pin-screen.pin-autumn .pin-keypad-spacer {
  height:48px; min-height:48px; font-size:20px; font-weight:650; border-radius:10px;
  font-variant-numeric:tabular-nums; touch-action:manipulation;
}
html body .pin-screen.pin-autumn .pin-keypad button:active { background:var(--pin-card-bg); }
html body .pin-screen.pin-autumn .pin-keypad button { box-shadow:inset 0 1px #e3f5ff20; }
html body .pin-screen.pin-autumn .pin-keypad button svg { width:21px; height:21px; }
html body .pin-screen.pin-autumn .pin-keypad-spacer { visibility:hidden; }
html body .pin-screen.pin-autumn form::after {
  content:''; display:block; height:1px; margin:13px 0 4px; background:var(--pin-line);
}
html body .pin-screen.pin-autumn .pin-text-button,
html body .pin-screen.pin-autumn .pin-other-button {
  min-height:44px; width:100%; margin:0; padding:5px 0; font-size:12px; line-height:1.35;
  background:transparent; border:0; box-shadow:none; white-space:normal;
}
html body .pin-screen.pin-autumn .pin-text-button:has(+ .pin-other-button:not(.pin-biometric-manage)) {
  grid-column:1; text-align:start; padding-inline-end:4px;
}
html body .pin-screen.pin-autumn .pin-text-button + .pin-other-button:not(.pin-biometric-manage) {
  grid-column:2; text-align:end; padding-inline-start:4px;
}
html body .pin-screen.pin-autumn .pin-other-button { font-weight:500; color:var(--pin-muted); }
html body .pin-screen.pin-autumn .pin-footnote { margin:0; font-size:11px; line-height:1.5; }
html body .pin-screen.pin-autumn .pin-biometric-button { min-height:44px; margin:10px 0 0; font-size:14px; }
html body .pin-screen.pin-autumn button:focus-visible { outline-color:var(--pin-accent); }
/* Keep the PIN decorations static and separate from the password screen. */
html body .pin-screen.pin-autumn .pin-autumn-leaf,
html body .pin-screen.pin-autumn .november-ground,
html body .pin-screen.pin-autumn .november-snow,
html body .pin-screen.pin-autumn .november-motion-toggle { display:none; }
html body .pin-screen.pin-autumn .pin-keypad button::before,
html body .pin-screen.pin-autumn .pin-biometric-button::before { content:none; background:none; }
/* Phone layout: keep the desktop composition, but make the touch UI easier to read. */
@media(max-width:600px) {
  html body .pin-screen.pin-autumn { padding:max(14px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); }
  html body .pin-screen.pin-autumn .pin-card {
    width:min(100%,440px); padding-inline:clamp(14px,4vw,20px);
    background:transparent; border-color:transparent; box-shadow:none;
  }
  html body .pin-screen.pin-autumn .pin-wordmark { width:168px; }
  html body .pin-screen.pin-autumn .pin-brand-caption { font-size:13px; }
  html body .pin-screen.pin-autumn .pin-card h1 {
    font-size:clamp(24px,6.7vw,28px); overflow-wrap:anywhere;
  }
  html body .pin-screen.pin-autumn .pin-description { font-size:16px; }
  html body .pin-screen.pin-autumn .pin-dots { width:144px; gap:15px; }
  html body .pin-screen.pin-autumn .pin-dots > span:not(.pin-sr-only) { width:15px; height:15px; }
  html body .pin-screen.pin-autumn .pin-feedback { font-size:14px; }
  html body .pin-screen.pin-autumn .pin-keypad { gap:8px; }
  html body .pin-screen.pin-autumn .pin-keypad button,
  html body .pin-screen.pin-autumn .pin-keypad-spacer {
    height:60px; min-height:60px; font-size:26px; border-radius:12px;
  }
  html body .pin-screen.pin-autumn .pin-keypad button svg { width:25px; height:25px; }
  html body .pin-screen.pin-autumn .pin-text-button,
  html body .pin-screen.pin-autumn .pin-other-button,
  html body .pin-screen.pin-autumn .pin-biometric-button { min-height:48px; font-size:15px; }
  html body .pin-screen.pin-autumn .pin-footnote { font-size:13px; }
}
