/* Orbit Monitor — auth pages (sign in, forgot / reset password) and system pages (404, 500, no access).
   Tokens only. Split layout: an inset brand panel on the left, the form on the right. Both themes use the same structure. */

.au-body { min-height: 100vh; background: var(--bg); }
.au { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); gap: 12px; min-height: 100vh; padding: 12px; }

/* ---------- brand panel ---------- */
.au-side { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: var(--sp-6); padding: 36px 44px 40px; border: 1px solid var(--border); border-radius: 24px; background: var(--nav-bg); }
.au-glow { position: absolute; z-index: -1; border-radius: 50%; background: var(--accent); filter: blur(110px); pointer-events: none; }
.au-glow--a { width: 460px; height: 460px; right: -140px; top: -120px; opacity: 0.2; }
.au-glow--b { width: 380px; height: 380px; left: -140px; bottom: 80px; background: var(--chart-series-3); opacity: 0.1; }
[data-theme="light"] .au-glow--a { opacity: 0.26; } [data-theme="light"] .au-glow--b { opacity: 0.14; }
.au-brand { display: inline-flex; align-items: center; gap: var(--sp-3); color: var(--text); }
.au-side > .au-brand { align-self: flex-start; } .au-brand:hover { text-decoration: none; }

.au-stage { position: relative; flex: 1; min-height: 340px; }
.au-orbit { position: absolute; left: 50%; top: 50%; height: 106%; width: auto; max-width: none; aspect-ratio: 1; transform: translate(-50%, -50%); overflow: visible; }
.au-ring { fill: none; stroke: var(--border-strong); stroke-width: 1; opacity: 0.7; }
.au-ring--2 { stroke-dasharray: 2 7; opacity: 0.9; } .au-ring--e { stroke: var(--accent-soft-border); opacity: 0.9; }
.au-core { fill: var(--accent); } .au-core-halo { fill: var(--accent-soft); opacity: 0.8; stroke: var(--accent-soft-border); }
.au-sat--accent { fill: var(--accent); } .au-sat--ok { fill: var(--ok); } .au-sat--warn { fill: var(--warn-dot); } .au-sat--info { fill: var(--chart-series-2); }
.au-spin { transform-origin: 320px 320px; animation: au-turn 90s linear infinite; } .au-spin--b { animation-duration: 140s; animation-direction: reverse; } .au-spin--c { animation-duration: 60s; }
@keyframes au-turn { to { transform: rotate(360deg); } }

.au-chips { position: absolute; top: 0; right: 0; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.au-float { position: absolute; width: 270px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-md); font-size: var(--fs-sm); }
.au-float--1 { top: 46px; left: 0; } .au-float--2 { top: 136px; right: 0; width: 262px; } .au-float--3 { top: 204px; left: 28px; width: 296px; } .au-float--4 { top: 282px; right: 12px; width: 232px; }
.au-float__row { display: flex; align-items: center; gap: 10px; }
.au-float__ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--surface-3); color: var(--text-2); flex: none; } .au-float__ic--ai { background: var(--accent-soft); color: var(--accent-text); }
.au-float__main { min-width: 0; flex: 1; line-height: 1.3; } .au-float__title { font-weight: 600; color: var(--text); } .au-float__sub { font-size: var(--fs-xs); color: var(--text-3); }
.au-float__label { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-3); font-weight: 550; }
.au-float__big { margin-top: 4px; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.au-float__text { margin-top: 8px; color: var(--text-2); line-height: 1.45; } .au-float__foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; } .au-float__note { font-size: var(--fs-xs); color: var(--text-3); }
.au-float .strip { margin-top: 10px; height: 22px; gap: 2px; }
.au-bar { height: 6px; margin-top: 12px; border-radius: 3px; background: var(--meter-track); overflow: hidden; } .au-bar__f { display: block; height: 100%; width: 91%; border-radius: 3px; background: var(--warn-dot); }
.au-spark { display: block; width: 100%; height: 44px; margin-top: 6px; overflow: visible; } .au-spark__line { fill: none; stroke: var(--chart-series); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .au-spark__area { fill: var(--chart-series); opacity: 0.12; }

.au-hero { max-width: 560px; }
.au-hero__text { font-size: clamp(28px, 2.7vw, 40px); line-height: 1.14; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.au-hl { color: var(--accent-text); }
.au-hero__sub { margin-top: var(--sp-4); max-width: 52ch; color: var(--text-3); font-size: var(--fs-md); line-height: 1.55; }
.au-facts { display: flex; flex-wrap: wrap; gap: 8px var(--sp-5); margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text-2); font-weight: 500; }
.au-facts li { display: inline-flex; align-items: center; gap: 8px; } .au-facts .icon { color: var(--accent-text); }

/* ---------- form side ---------- */
.au-main { display: flex; flex-direction: column; min-width: 0; padding: 12px 20px 8px; }
.au-top { display: flex; align-items: center; gap: var(--sp-2); min-height: 44px; }
.au-top .au-mbrand { display: none; margin-right: auto; }
.au-top__end { display: flex; align-items: center; gap: var(--sp-1); margin-left: auto; }
.au-theme__sun { display: none; } [data-theme="dark"] .au-theme__sun { display: block; } [data-theme="dark"] .au-theme__moon { display: none; }
.au-center { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; justify-items: center; padding: var(--sp-6) 0; min-width: 0; }
.au-card { width: 100%; max-width: 420px; min-width: 0; }
.au-step { animation: au-in 320ms var(--ease) both; }
@keyframes au-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.au-badge { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--sp-5); border-radius: 16px; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-soft-border); } .au-badge .icon { width: 24px; height: 24px; }
.au-badge--ok { background: var(--ok-soft); color: var(--ok-text); border-color: color-mix(in srgb, var(--ok) 30%, var(--border)); } .au-badge--danger { background: var(--danger-soft); color: var(--danger-text); border-color: color-mix(in srgb, var(--danger-dot) 30%, var(--border)); } .au-badge--warn { background: var(--warn-soft); color: var(--warn-text); border-color: color-mix(in srgb, var(--warn-dot) 30%, var(--border)); }
.au-title { font-size: 30px; font-weight: 650; letter-spacing: -0.035em; line-height: 1.15; }
.au-sub { margin-top: var(--sp-2); color: var(--text-3); font-size: var(--fs-md); line-height: 1.5; } .au-sub strong { color: var(--text); font-weight: 600; }
.au-form { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-6); }
.au .input { height: 44px; font-size: var(--fs-base); border-radius: 10px; }
.au .input-wrap > .input { padding-left: 40px; } .au .input-wrap > .icon { left: 14px; }
.au .btn.au-submit { width: 100%; height: 46px; font-size: var(--fs-base); border-radius: 10px; }
.au .btn.au-submit .icon { width: 17px; height: 17px; }
.au-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.au-row .check { font-size: var(--fs-sm); color: var(--text-2); } .au-link { font-size: var(--fs-sm); font-weight: 550; }
.au-alert { margin-top: var(--sp-5); } .au-alert .callout__text { color: var(--text); }
.au-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: var(--sp-5); color: var(--text-3); font-size: var(--fs-sm); font-weight: 550; } .au-back:hover { color: var(--text); text-decoration: none; } .au-back .icon { width: 15px; height: 15px; }
.au-spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor; animation: au-rot 700ms linear infinite; }
.is-loading .au-spinner { display: inline-block; } .is-loading .au-submit__icon { display: none; } .btn.is-loading { pointer-events: none; opacity: 0.85; }
@keyframes au-rot { to { transform: rotate(360deg); } }
.au-demo { margin-top: 28px; padding: var(--sp-4); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.au-demo__head { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: 10px; font-size: var(--fs-sm); font-weight: 600; }
.au-demo .seg { display: flex; } .au-demo .seg__opt { flex: 1; justify-content: center; } .au-demo .help { margin-top: 10px; }
.au-legal { margin-top: var(--sp-6); font-size: var(--fs-xs); color: var(--text-3); text-align: center; line-height: 1.5; }
.au-foot { display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; padding: var(--sp-3) 0 var(--sp-1); font-size: var(--fs-xs); color: var(--text-3); }

/* verification code */
.au-otp { display: flex; gap: 10px; margin-top: var(--sp-6); }
.au-otp__box { flex: 1 1 0; min-width: 0; height: 58px; padding: 0; text-align: center; font: 600 24px var(--font-mono); color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; caret-color: var(--accent); transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast); }
.au-otp__box:hover { border-color: var(--text-3); } .au-otp__box:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft-border); }
.au-otp__box.is-filled { background: var(--accent-soft); border-color: var(--accent-soft-border); }
.au-otp.is-error .au-otp__box { border-color: var(--danger-dot); background: var(--danger-soft); animation: au-shake 360ms var(--ease); }
.au-otp.is-busy .au-otp__box { opacity: 0.6; pointer-events: none; }
@keyframes au-shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.au-code-error { margin-top: var(--sp-3); } .au-resend { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-5); font-size: var(--fs-sm); color: var(--text-3); flex-wrap: wrap; }
.au-resend .num { color: var(--text-2); font-weight: 600; }
.au-linkbtn { color: var(--accent-text); font-size: var(--fs-sm); font-weight: 550; } .au-linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; } .au-linkbtn[disabled] { color: var(--text-3); pointer-events: none; }
.au-backup { margin-top: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); } .au-backup .input { font-family: var(--font-mono); font-size: 16px; letter-spacing: 0.08em; text-align: center; }
.au-progress { height: 4px; margin-top: var(--sp-6); border-radius: 2px; background: var(--meter-track); overflow: hidden; } .au-progress span { display: block; height: 100%; width: 100%; border-radius: 2px; background: var(--accent); transform-origin: left; animation: au-fill 1.3s linear both; }
@keyframes au-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.au-sent { margin-top: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); }
.au-tips { margin-top: var(--sp-5); display: flex; flex-direction: column; gap: 10px; font-size: var(--fs-sm); color: var(--text-2); } .au-tips li { display: flex; gap: 10px; align-items: flex-start; } .au-tips .icon { margin-top: 2px; color: var(--text-3); }

/* ---------- system pages: 404, 500, no access ---------- */
.sys { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 100vh; }
.sys-glow { position: absolute; z-index: -1; left: 50%; top: 16%; width: 560px; height: 560px; margin-left: -280px; border-radius: 50%; background: var(--accent); filter: blur(130px); opacity: 0.14; pointer-events: none; } [data-theme="light"] .sys-glow { opacity: 0.2; }
.sys-top { display: flex; align-items: center; gap: var(--sp-3); height: var(--topbar-h); padding: 0 var(--sp-6); }
.sys-top .au-brand { margin-right: auto; }
.sys-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--sp-6) var(--sp-5) 56px; }
.sys-code { display: flex; align-items: center; justify-content: center; gap: 0.06em; font: 600 clamp(88px, 14vw, 148px)/1 var(--font-mono); letter-spacing: -0.05em; color: var(--text); user-select: none; }
.sys-code__orbit { width: 0.86em; height: 0.86em; overflow: visible; }
.sys-code__orbit .au-ring { opacity: 1; stroke-width: 1.4; }
.sys-badge { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: var(--sp-2); border-radius: 26px; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-soft-border); box-shadow: var(--shadow-md); } .sys-badge .icon { width: 36px; height: 36px; }
.sys-badge--warn { background: var(--warn-soft); color: var(--warn-text); border-color: color-mix(in srgb, var(--warn-dot) 30%, var(--border)); } .sys-badge--danger { background: var(--danger-soft); color: var(--danger-text); border-color: color-mix(in srgb, var(--danger-dot) 30%, var(--border)); }
.sys-title { margin-top: var(--sp-5); font-size: clamp(26px, 3vw, 36px); font-weight: 650; letter-spacing: -0.035em; line-height: 1.15; max-width: 22ch; }
.sys-text { margin-top: var(--sp-3); max-width: 54ch; color: var(--text-3); font-size: var(--fs-md); line-height: 1.55; } .sys-text strong { color: var(--text); font-weight: 600; }
.sys-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; justify-content: center; margin-top: var(--sp-6); } .sys-actions .btn { height: 42px; padding: 0 18px; border-radius: 10px; font-size: var(--fs-base); }
.sys-links { width: min(640px, 100%); margin-top: 44px; padding-top: var(--sp-5); border-top: 1px solid var(--border); text-align: left; }
.sys-links__label { font-size: var(--fs-xs); font-weight: 600; color: var(--text-3); margin-bottom: 10px; }
.sys-links__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-2); }
.sys-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font-size: var(--fs-sm); font-weight: 550; transition: border-color var(--dur-fast), background var(--dur-fast); } .sys-link:hover { border-color: var(--accent-soft-border); background: var(--accent-soft); color: var(--accent-text); text-decoration: none; } .sys-link .icon { color: var(--text-3); } .sys-link:hover .icon { color: var(--accent-text); }
.sys-ref { display: inline-flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-5); padding: 6px 6px 6px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: var(--fs-sm); color: var(--text-3); }
.sys-ref code { color: var(--text); font-weight: 600; font-size: 13px; }
.sys-card { width: min(560px, 100%); margin-top: var(--sp-6); padding: var(--sp-5); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); text-align: left; box-shadow: var(--shadow-sm); }
.sys-card__row { display: flex; align-items: center; gap: var(--sp-3); } .sys-card__main { flex: 1; min-width: 0; } .sys-card__title { font-weight: 600; } .sys-card__sub { font-size: var(--fs-sm); color: var(--text-3); }
.sys-foot { padding: var(--sp-4) var(--sp-6); text-align: center; font-size: var(--fs-xs); color: var(--text-3); }
.sys-role[hidden] { display: none; }

/* ---------- responsive ---------- */
@media (max-height: 800px) { .au-float--4, .au-chips { display: none; } .au-stage { min-height: 300px; } }
@media (max-width: 1320px) {
  .au-side { padding: 30px 32px 32px; } .au-float { width: 232px; } .au-float--2 { width: 226px; top: 150px; } .au-float--3 { left: 14px; width: 250px; top: 214px; } .au-float--4 { display: none; }
}
@media (max-width: 1080px) { .au-float--3 { display: none; } .au-float--2 { top: 140px; } }
@media (max-width: 960px) {
  .au { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
  .au-side { display: none; }
  .au-main { padding: 12px 20px 8px; } .au-top .au-mbrand { display: inline-flex; }
  .au-center { align-items: start; padding-top: var(--sp-6); }
}
@media (max-width: 480px) { .au-title { font-size: 26px; } .au-otp { gap: 6px; } .au-otp__box { height: 52px; font-size: 20px; } .sys-top { padding: 0 var(--sp-4); } }

/* system pages: orbit glyph used as a digit, client-only helpers */
.sys-code__orbit .au-spin { transform-origin: 50px 50px; } .sys-code__orbit .au-ring--e { stroke: var(--accent); opacity: 0.55; }
.sys-client { display: none; } html[data-role="customer"] .sys-client { display: flex; }
.sys-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--sp-4); padding: 5px 12px 5px 5px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: var(--fs-sm); color: var(--text-2); }
.sys-chip .avatar { width: 26px; height: 26px; font-size: 11px; }

.au-sample { position: absolute; left: 0; bottom: -4px; margin: 0; font-size: 11.5px; color: var(--text-3); }
