/* Sign-in pages (/login, /admin/login) in the Ceylon Ember identity. Their markup and behaviour stay as they are;
   this sheet loads after their own styles and moves the tokens, fonts and the backdrop to the new identity. */
@font-face { font-family: "iVishwa Display"; src: url(/assets/fonts/ivishwa-display.woff2?v=9dd9e25931) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "iVishwa Accent"; src: url(/assets/fonts/ivishwa-accent.woff2?v=b077c742f5) format("woff2"); font-style: italic; font-weight: 500; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url(/assets/fonts/atkinson-next-vf.woff2?v=9c867cf7af) format("woff2"); font-weight: 400 700; font-display: swap; }
/* Fallbacks tuned to the brand fonts' size (tools/font-fallbacks.mjs), so nothing moves when the brand fonts arrive */
@font-face { font-family: "iVishwa Display Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Roboto Bold"), local("Roboto-Bold"); font-weight: 600; font-style: normal; size-adjust: 103.6%; ascent-override: 105.21%; descent-override: 37.65%; line-gap-override: 0%; }
@font-face { font-family: "Atkinson Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Roboto"), local("Roboto-Regular"); font-weight: 400; font-style: normal; size-adjust: 98.09%; ascent-override: 99.91%; descent-override: 32.62%; line-gap-override: 0%; }
@font-face { font-family: "Atkinson Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Roboto Bold"), local("Roboto-Bold"); font-weight: 700; font-style: normal; size-adjust: 98.61%; ascent-override: 99.38%; descent-override: 32.45%; line-gap-override: 0%; }
@font-face { font-family: "iVishwa Accent Fallback"; src: local("Georgia Italic"), local("Georgia-Italic"), local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Noto Serif Italic"); font-weight: 500; font-style: italic; size-adjust: 79.71%; ascent-override: 111.65%; descent-override: 38.89%; line-gap-override: 0%; }

:root {
  --void: #13110e; --void-2: #1b1814; --void-3: #231f1a; --line: #2c2721; --line-2: #423a31;
  --ink: #f2ece2; --ink-dim: #cfc6b8; --ink-faint: #9e9486;
  --uv: #ff5b2e; --uv-soft: #ff8a5c; --cyan: #ffb547; --cyan-soft: #ff8a5c; --flare: #ffb547; --ok: #45e39a; --bad: #ff8fa3;
  --font-display: "iVishwa Display", "iVishwa Display Fallback", "Arial Narrow", Arial, sans-serif;
  --font-body: "Atkinson Next", "Atkinson Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "iVishwa Accent", "iVishwa Accent Fallback", Georgia, serif;
}
html[data-theme="light"] {
  --void: #f2ece2; --void-2: #fbf8f2; --void-3: #e9e1d4; --line: #ded5c6; --line-2: #c9bdaa;
  --ink: #17130f; --ink-dim: #4a4239; --ink-faint: #6b6155;
  --uv: #f04e22; --uv-soft: #b23a12; --cyan: #b23a12; --cyan-soft: #b23a12; --flare: #b23a12; --ok: #047857; --bad: #be123c;
}
/* no starfield: one low ember light, still */
body::before { background: none; }
body::after { background: radial-gradient(40% 32% at 18% 8%, rgb(255 91 46 / .22), transparent 70%), radial-gradient(30% 26% at 88% 92%, rgb(255 181 71 / .10), transparent 70%); animation: none; opacity: 1; }
html[data-theme="light"] body::after { background: radial-gradient(40% 32% at 18% 8%, rgb(240 78 34 / .10), transparent 70%); }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
h1 em, h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--uv); }
.btn-solid { background: var(--uv); color: #1a0802; border-color: var(--uv); box-shadow: none; }
html[data-theme="light"] .btn-solid { background: #13110e; color: #f2ece2; border-color: #13110e; }
::selection { background: #ff5b2e; color: #1a0802; }
html[data-theme="light"] ::selection { background: #f04e22; color: #fff; }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }

/* No jump when the card turns from "One moment" into the sign-in form: while it loads, the form already takes its
   place, invisible, underneath the loading line. */
.card:has(#st-loading:not([hidden])) { display: grid; }
.card:has(#st-loading:not([hidden])) > #st-loading, .card:has(#st-loading:not([hidden])) > #st-signin { grid-area: 1 / 1; }
.card:has(#st-loading:not([hidden])) > #st-signin[hidden] { display: block !important; visibility: hidden; }
