/* AgenticOS sign-in — Appropia
   No external dependencies. Fonts are served from the same origin.
   Tokens: dark by default; light via prefers-color-scheme: light or data-theme="light". */

/* ---------- Fonts (OFL, self-hosted) ---------- */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/outfit-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: 140ms; --dur: 240ms; --dur-slow: 420ms;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-pill: 999px;

  --bg: #020617; --fg-1: #FFFFFF; --fg-2: #E2E8F0; --fg-3: #94A3B8; --mark: #FFFFFF;
  --accent: #00BACE; --accent-hi: #2BD0E0; --accent-text: #00BACE;
  --card: rgba(6, 11, 28, .86); --card-line: rgba(0, 186, 206, .24); --well: rgba(148, 163, 184, .08);
  --field: rgba(2, 6, 23, .72); --field-line: rgba(148, 163, 184, .62); --field-line-hi: #B6C2D3;
  --hairline: rgba(226, 232, 240, .11); --tick: rgba(148, 163, 184, .36); --tick-major: rgba(148, 163, 184, .72);
  --error: #FB7185; --error-bg: rgba(251, 113, 133, .09); --error-line: rgba(251, 113, 133, .42);
  --warning: #FBBF24; --warning-bg: rgba(251, 191, 36, .07); --warning-line: rgba(251, 191, 36, .34);
  --btn-bg: #00BACE; --btn-fg: #020617; --btn-hover: #2BD0E0; --btn-busy: #0B8C9C; --focus: #2BD0E0;
  --glow: 0 0 0 1px rgba(0, 186, 206, .25), 0 0 28px rgba(0, 186, 206, .2);
  --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 30px 90px rgba(1, 4, 15, .75);
  --mark-bg: rgba(0, 186, 206, .08);
  --poster-desktop: url("../img/poster-desktop-dark.webp");
  --poster-mobile: url("../img/poster-mobile-dark.webp");
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F3F6FA; --fg-1: #0B1530; --fg-2: #334155; --fg-3: #52607A; --mark: #0E3377;
    --accent: #00A3B5; --accent-hi: #005F6E; --accent-text: #00788A;
    --card: rgba(255, 255, 255, .9); --card-line: rgba(14, 51, 119, .14); --well: rgba(14, 51, 119, .05);
    --field: #FFFFFF; --field-line: #7A879C; --field-line-hi: #3E4C63;
    --hairline: rgba(15, 23, 42, .1); --tick: rgba(51, 65, 85, .3); --tick-major: rgba(51, 65, 85, .62);
    --error: #BE123C; --error-bg: rgba(190, 18, 60, .06); --error-line: rgba(190, 18, 60, .35);
    --warning: #B45309; --warning-bg: rgba(180, 83, 9, .06); --warning-line: rgba(180, 83, 9, .3);
    --btn-bg: #0E3377; --btn-fg: #FFFFFF; --btn-hover: #143F92; --btn-busy: #3A5A93; --focus: #00788A;
    --glow: 0 0 0 1px rgba(14, 51, 119, .2), 0 8px 24px rgba(14, 51, 119, .18);
    --shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 30px 80px rgba(14, 51, 119, .14);
    --mark-bg: rgba(14, 51, 119, .06);
    --poster-desktop: url("../img/poster-desktop-light.webp");
    --poster-mobile: url("../img/poster-mobile-light.webp");
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F3F6FA; --fg-1: #0B1530; --fg-2: #334155; --fg-3: #52607A; --mark: #0E3377;
  --accent: #00A3B5; --accent-hi: #005F6E; --accent-text: #00788A;
  --card: rgba(255, 255, 255, .9); --card-line: rgba(14, 51, 119, .14); --well: rgba(14, 51, 119, .05);
  --field: #FFFFFF; --field-line: #7A879C; --field-line-hi: #3E4C63;
  --hairline: rgba(15, 23, 42, .1); --tick: rgba(51, 65, 85, .3); --tick-major: rgba(51, 65, 85, .62);
  --error: #BE123C; --error-bg: rgba(190, 18, 60, .06); --error-line: rgba(190, 18, 60, .35);
  --warning: #B45309; --warning-bg: rgba(180, 83, 9, .06); --warning-line: rgba(180, 83, 9, .3);
  --btn-bg: #0E3377; --btn-fg: #FFFFFF; --btn-hover: #143F92; --btn-busy: #3A5A93; --focus: #00788A;
  --glow: 0 0 0 1px rgba(14, 51, 119, .2), 0 8px 24px rgba(14, 51, 119, .18);
  --shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 30px 80px rgba(14, 51, 119, .14);
  --mark-bg: rgba(14, 51, 119, .06);
  --poster-desktop: url("../img/poster-desktop-light.webp");
  --poster-mobile: url("../img/poster-mobile-light.webp");
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--fg-2);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 14px; border-radius: var(--radius-md); background: var(--btn-bg); color: var(--btn-fg); font: 600 14px/1 var(--font-display); text-decoration: none; }
.skip-link:focus-visible { top: 16px; }

/* ---------- Background (aria-hidden) ---------- */
.background { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--bg) var(--poster-desktop) center / cover no-repeat; }
@media (max-aspect-ratio: 4/5) { .background { background-image: var(--poster-mobile); } }
.background > video, .background > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; opacity: 0; transition: opacity 600ms var(--ease-out); }
.background > .is-visible { opacity: 1; }

/* ---------- Page ---------- */
.page { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; gap: 20px; padding: clamp(16px, 3.2vw, 40px); }
.header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--mark); }
.brand-text { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.brand-name { font: 600 19px/1 var(--font-display); letter-spacing: -.02em; color: var(--fg-1); }
.brand-by { font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.domain-chip { margin: 0; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--hairline); background: var(--card); font: 500 12px/1 var(--font-mono); color: var(--fg-2); }
.main { display: grid; place-items: center; padding-block: 8px; }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.footer-note { margin: 0; font: 500 11px/1.6 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.footer-links { display: flex; gap: 20px; font-size: 13px; }
.footer-links a { color: var(--fg-2); text-decoration: none; border-radius: 4px; }
.footer-links a:hover { color: var(--fg-1); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Panel ---------- */
.panel { width: min(100%, 448px); background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius-lg); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(18px) saturate(120%); backdrop-filter: blur(18px) saturate(120%); overflow: hidden; }
.panel-body { padding: 26px 32px 24px; }
.tape { position: relative; height: 26px; overflow: hidden; border-bottom: 1px solid var(--hairline); -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.tape-ticks { position: absolute; left: -80px; right: -80px; bottom: 0; height: 12px; background-image: repeating-linear-gradient(90deg, var(--tick-major) 0 1px, transparent 1px 40px), repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 8px); background-size: 100% 12px, 100% 6px; background-position: 0 100%, 0 100%; background-repeat: no-repeat; }
.tape-needle { position: absolute; left: 50%; bottom: 0; width: 2px; height: 18px; margin-left: -1px; border-radius: 1px; background: var(--accent); transition: background var(--dur), box-shadow var(--dur-slow); }
.tape.is-seeking .tape-ticks { animation: tape-scroll 1.1s linear infinite; }
.tape.is-error .tape-needle { background: var(--error); }
.tape.is-locked .tape-needle { box-shadow: 0 0 0 3px rgba(0, 186, 206, .22), 0 0 18px var(--accent); }

.eyebrow { margin: 0 0 14px; font: 500 11px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.org { display: flex; align-items: center; gap: 14px; }
.org-mark { flex: none; width: 46px; height: 46px; border-radius: var(--radius-md); border: 1px solid var(--card-line); background: var(--mark-bg); display: grid; place-items: center; overflow: hidden; font: 600 16px/1 var(--font-display); letter-spacing: .02em; color: var(--fg-1); }
.org-mark img { width: 100%; height: 100%; object-fit: cover; }
.org-info { min-width: 0; }
.org-name { margin: 0; font: 600 26px/1.15 var(--font-display); letter-spacing: -.02em; color: var(--fg-1); overflow-wrap: anywhere; }
.org-domain { margin: 4px 0 0; font: 400 12.5px/1.3 var(--font-mono); color: var(--fg-3); overflow-wrap: anywhere; }
.intro { margin: 16px 0 0; font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.intro strong { font-weight: 600; color: var(--fg-1); }

.steps { list-style: none; margin: 20px 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.step { display: flex; flex-direction: column; gap: 2px; font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.step::before { content: ""; display: block; height: 2px; margin-bottom: 6px; border-radius: 2px; background: var(--hairline); }
.step-num { color: var(--accent-text); }
.step:not(.is-done):not([aria-current]) .step-num { color: var(--fg-3); }
.step.is-done { color: var(--fg-2); }
.step.is-done::before { background: var(--accent); }
.step[aria-current="step"] { color: var(--fg-1); }
.step[aria-current="step"]::before { background: linear-gradient(90deg, var(--accent) 0 40%, var(--hairline) 40% 100%); }
.step.is-complete::before { background: var(--accent); }
.step.is-failed::before { background: var(--error); }

/* ---------- Notices ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 18px; border-radius: var(--radius-md); }
.notice .icon { margin-top: 2px; }
.notice-title { margin: 0; font: 600 14.5px/1.4 var(--font-body); color: var(--fg-1); }
.notice-text { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--fg-2); }
.notice--error { background: var(--error-bg); border: 1px solid var(--error-line); }
.notice--error .icon { color: var(--error); }
.notice--warning { background: var(--warning-bg); border: 1px solid var(--warning-line); }
.notice--warning .icon { color: var(--warning); }
.hint { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-md); background: var(--well); }
.hint .icon { margin-top: 3px; color: var(--accent-text); }
.hint p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg-2); }
.hint strong { display: inline-block; max-width: 100%; font-weight: 600; color: var(--fg-1); overflow-wrap: anywhere; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.label { display: block; margin: 0 0 8px; font: 500 11.5px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }
.input { display: block; width: 100%; height: 48px; padding: 0 14px; border-radius: var(--radius-md); border: 1px solid var(--field-line); background: var(--field); color: var(--fg-1); font: 400 16px/1.2 var(--font-body); transition: border-color var(--dur-fast) var(--ease-out), opacity var(--dur-fast); }
.input::placeholder { color: var(--fg-3); opacity: 1; }
.input:hover { border-color: var(--field-line-hi); }
.input:focus-visible { border-color: var(--accent); outline: 2px solid var(--focus); outline-offset: 1px; border-radius: var(--radius-md); }
.input[aria-invalid="true"] { border-color: var(--error); }
.input[readonly] { opacity: .62; }
.password-field { position: relative; }
.password-field .input { padding-right: 54px; }
.password-field .btn-icon { position: absolute; top: 2px; right: 2px; }
.field-error { margin: 8px 0 0; display: flex; gap: 6px; align-items: center; font-size: 13.5px; line-height: 1.4; color: var(--error); }

.btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; margin-top: 4px; border: 0; border-radius: var(--radius-md); background: var(--btn-bg); color: var(--btn-fg); font: 600 16px/1 var(--font-display); cursor: pointer; transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.btn:hover { background: var(--btn-hover); box-shadow: var(--glow); }
.btn:active { transform: scale(.98); }
.btn:disabled { cursor: progress; background: var(--btn-busy); box-shadow: none; transform: none; }
.btn:focus-visible { outline-offset: 3px; border-radius: var(--radius-md); }
.btn-secondary { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; margin-top: 6px; border: 1px solid var(--field-line); border-radius: var(--radius-md); background: transparent; color: var(--fg-1); font: 600 15px/1 var(--font-display); cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast); }
.btn-secondary:hover { border-color: var(--field-line-hi); background: var(--well); }
.btn-link { appearance: none; background: none; border: 0; padding: 8px 2px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent-text); font: 500 14px/1.2 var(--font-body); cursor: pointer; border-radius: var(--radius-sm); }
.btn-link:hover { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; }
.btn-link--neutral { color: var(--fg-2); }
.btn-link--neutral:hover { color: var(--fg-1); }
.btn-link:disabled { color: var(--fg-3); cursor: default; text-decoration: none; }
.btn-icon { appearance: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--fg-3); cursor: pointer; }
.btn-icon:hover { color: var(--fg-1); background: var(--well); }
.btn-icon .eye-closed { display: none; }
.btn-icon[aria-pressed="true"] .eye-open { display: none; }
.btn-icon[aria-pressed="true"] .eye-closed { display: block; }
.code-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-top: -6px; }

/* 6-digit code: one real input layered over six visual cells */
.otp { position: relative; display: flex; gap: 8px; }
.otp-cell { flex: 1 1 0; min-width: 0; height: 56px; border-radius: var(--radius-md); border: 1px solid var(--field-line); background: var(--field); display: grid; place-items: center; font: 500 22px/1 var(--font-mono); color: var(--fg-1); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.otp-cell.is-filled { border-color: var(--field-line-hi); }
.otp:hover .otp-cell { border-color: var(--field-line-hi); }
.otp:focus-within .otp-cell.is-current { border-color: var(--accent); box-shadow: 0 0 0 2px var(--focus); }
.otp:focus-within .otp-cell.is-current:empty::after { content: ""; width: 2px; height: 24px; background: var(--accent); animation: caret-blink 1s steps(1) infinite; }
.otp.is-invalid .otp-cell { border-color: var(--error); }
.otp-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent; font-size: 16px; letter-spacing: 1em; cursor: text; }
.otp-input:focus-visible { outline: none; }
.otp-input::selection { background: transparent; }

/* ---------- Results ---------- */
.result { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.result h2 { margin: 0; font: 600 21px/1.25 var(--font-display); letter-spacing: -.015em; color: var(--fg-1); }
.result--success h2 { font-size: 24px; letter-spacing: -.02em; }
.result p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--fg-2); }
.result .result-sub { margin-top: -4px; font-size: 15px; }
.error-badge { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--error-line); background: var(--error-bg); display: grid; place-items: center; color: var(--error); }
.role-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 4px 12px; border-radius: 14px; border: 1px solid var(--card-line); background: var(--mark-bg); font: 500 11px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-1); }
.role-chip::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.progress { width: 100%; height: 2px; margin-top: 6px; border-radius: 2px; background: var(--hairline); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.is-active .progress > span { animation: progress-fill 2.6s var(--ease-in-out) 300ms forwards; }
.seal { color: var(--mark); }
.seal-ring { stroke: var(--accent); stroke-dasharray: 6.41; stroke-dashoffset: 6.41; }
.is-active .seal-ring { animation: ring-draw 900ms var(--ease-out) 200ms forwards; }

.audit { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--hairline); font-size: 12.5px; line-height: 1.5; color: var(--fg-3); }
.audit .icon { margin-top: 1px; color: var(--accent-text); }
.audit p { margin: 0; }
.noscript-msg { margin: 0 0 18px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--warning-bg); border: 1px solid var(--warning-line); font-size: 14px; color: var(--fg-1); }

/* ---------- Compass ---------- */
.compass .compass-star, .spinner .compass-star { transform-origin: 0 0; }
.compass .compass-star { animation: compass-settle 900ms var(--ease-out) both; }
.compass.is-seeking .compass-star { animation: compass-seek 2.4s var(--ease-in-out) infinite; }
.spinner .compass-star { animation: spin 1.2s linear infinite; }
.reveal { animation: reveal var(--dur-slow) var(--ease-out) both; }

@keyframes tape-scroll { to { transform: translateX(-40px); } }
@keyframes compass-settle { from { transform: rotate(-34deg); } to { transform: rotate(0); } }
@keyframes compass-seek { 0% { transform: rotate(0); } 20%, 25% { transform: rotate(90deg); } 45%, 50% { transform: rotate(180deg); } 70%, 75% { transform: rotate(270deg); } 95%, 100% { transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ring-draw { to { stroke-dashoffset: 0; } }
@keyframes progress-fill { to { transform: scaleX(1); } }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes caret-blink { 50% { opacity: 0; } }

/* ---------- Responsive & motion ---------- */
@media (max-width: 520px) {
  .panel-body { padding: 22px 20px 20px; }
  .domain-chip { display: none; }
  .org-name { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
}
@media (forced-colors: active) {
  .panel, .input, .otp-cell, .btn, .btn-secondary { border: 1px solid CanvasText; }
  .otp:focus-within .otp-cell.is-current { outline: 2px solid Highlight; }
}
