/* ZeroBot auth layout: login, register, forgot, resend, reset, status pages.
   Form panel on the left, interactive "kill the bots" panel on the right.
   Brand colors follow the previous login page (#5b2be0 / #7c52f2 / #f7b731 / #0f0a1e). */
:root {
  --violet: #7c52f2; --violet-2: #5b2be0; --violet-3: #4920b8; --amber: #f7b731; --human: #5fd9a8; --bot: #ff5d7a;
  --bg: #f8f9fc; --surface: #ffffff; --ink: #0f0a1e; --ink-2: #4a5068; --ink-3: #8892a4;
  --line: #e0e3ee; --field: #f1f2f8; --field-focus: #ffffff; --ok: #12a36b; --err: #e5365a;
  --pad: clamp(9px, 1.55vh, 17px); --fh: clamp(40px, 5.3vh, 50px);
}
:root[data-theme="dark"] {
  --bg: #0f0a1e; --surface: #1a1730; --ink: #f0f0f5; --ink-2: #b4b0d0; --ink-3: #8892a4;
  --line: rgba(255, 255, 255, .12); --field: #12101f; --field-focus: #181530;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.auth-body { font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
.auth-body a { color: var(--violet-2); text-decoration: none; font-weight: 600; }
:root[data-theme="dark"] .auth-body a { color: var(--amber); }
.auth-body a:hover { text-decoration: underline; }
.auth-body button { font-family: inherit; }
.auth-body :focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

.shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
@media (min-width: 992px) {
  html.auth-html, .auth-body { height: 100%; overflow: hidden; }
  .shell { height: 100vh; height: 100dvh; min-height: 0; }
  .panel, .art { min-height: 0; }
}

/* ---------- Form panel (left) ---------- */
.panel { display: flex; flex-direction: column; min-width: 0; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: clamp(14px, 2.6vh, 24px); }
.bar .right { display: flex; align-items: center; gap: 14px; }
.bar .back { font-size: .8rem; color: var(--ink-2) !important; font-weight: 500 !important; }
.bar .back:hover { color: var(--violet-2) !important; text-decoration: none !important; }
.mbrand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink) !important; }
.mbrand:hover { text-decoration: none !important; }
.mbrand img { width: 36px; height: 36px; display: block; }
.mbrand span { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.mbrand b { color: #e64268; font-weight: 700; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s, color .15s; }
.icon-btn:hover { border-color: var(--violet-2); color: var(--violet-2); }
.moon { display: block; } .sun { display: none; }
:root[data-theme="dark"] .moon { display: none; } :root[data-theme="dark"] .sun { display: block; }

.center { flex: 1; min-height: 0; overflow-y: auto; display: grid; place-items: center; padding: 14px 0; }
.card { width: min(100%, 432px); }
.auth-h1 { margin: 0 0 4px; font-size: clamp(1.45rem, 3.4vh, 1.75rem); font-weight: 700; letter-spacing: -.025em; color: var(--ink); }
.auth-sub { margin: 0 0 clamp(12px, 2.4vh, 22px); color: var(--ink-2); font-size: .88rem; line-height: 1.5; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding: 14px 0 clamp(14px, 2.6vh, 24px); border-top: 1px solid var(--line); font-size: .74rem; color: var(--ink-3); }
.foot-copy { letter-spacing: .01em; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.foot-links a { position: relative; padding: 5px 10px; border-radius: 8px; color: var(--ink-2) !important; font-weight: 500 !important; transition: background .15s, color .15s; }
.foot-links a:hover { background: var(--field); color: var(--violet-2) !important; text-decoration: none !important; }
:root[data-theme="dark"] .foot-links a:hover { color: var(--amber) !important; }
@media (max-width: 560px) { .foot { justify-content: center; text-align: center; } .foot-links { justify-content: center; } }

/* ---------- Form controls (also restyle elements built by login.js / register-validation.js) ---------- */
.auth-form .mb-3, .auth-form .mb-4 { margin-bottom: var(--pad); }
.auth-form .d-grid { display: grid; }
.position-relative { position: relative; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row2 > .mb-3 { min-width: 0; }
.lab-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.lab-row a { font-size: .76rem; }
.form-label { display: block; margin: 0 0 6px; font-size: .78rem; font-weight: 500; color: var(--ink-2) !important; }
.lab-row .form-label { margin: 0; }
.form-control {
  width: 100%; height: var(--fh); padding: 0 16px; border-radius: 12px; border: 1.5px solid transparent; background: var(--field); color: var(--ink);
  font: inherit; font-size: .9rem; outline: none; transition: border-color .15s, background .15s, box-shadow .15s;
}
.form-control::placeholder { color: var(--ink-3); }
.form-control:focus { background: var(--field-focus); border-color: var(--violet-2); box-shadow: 0 0 0 4px rgba(91, 43, 224, .16); }
.form-control.is-invalid { border-color: var(--err); }
.form-control.is-valid { border-color: var(--ok); }
.toggle-password { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--ink-3); line-height: 0; transition: color .2s; }
.toggle-password:hover { color: var(--ink); }
.input-group { display: flex; }
.input-group-text { display: grid; place-items: center; flex: 0 0 40px; border-radius: 12px 0 0 12px; background: var(--line); color: var(--ink-2); font-weight: 600; }
.input-group .form-control { border-radius: 0 12px 12px 0; padding: 0 12px; }
.form-text { display: block; margin-top: 5px; font-size: .68rem; line-height: 1.45; color: var(--ink-3); }
.form-text code { font-size: .68rem; }
.text-muted { color: var(--ink-3) !important; }
.text-success { color: var(--ok) !important; }
.text-danger { color: var(--err) !important; }
.mt-2 { margin-top: .5rem; }
.invalid-feedback { display: none; }
.validation-icon { position: absolute; font-style: normal; font-weight: 700; font-size: .95rem; }
.validation-icon.fa-check-circle::before { content: '\2713'; }
.validation-icon.fa-times-circle::before { content: '\2715'; }
.form-check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: .78rem; line-height: 1.5; }
.form-check-input { width: 16px; height: 16px; margin: 3px 0 0; flex: 0 0 16px; accent-color: var(--violet-2); }
.form-check-label { color: var(--ink-2); }
.btn {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: clamp(46px, 6vh, 52px); border: 0; border-radius: 13px; overflow: hidden;
  background: linear-gradient(135deg, var(--violet-2), var(--violet)); color: #fff; font-size: .95rem; font-weight: 600; cursor: pointer;
  box-shadow: 0 12px 28px rgba(91, 43, 224, .35); transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent); transform: skewX(-20deg); }
.btn:hover { transform: translateY(-1px); background: linear-gradient(135deg, var(--violet-3), var(--violet-2)); box-shadow: 0 16px 34px rgba(91, 43, 224, .45); color: #fff; text-decoration: none; }
.btn:hover::after { left: 130%; transition: left .7s; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn:disabled::after { display: none; }
.or { display: flex; align-items: center; gap: 12px; margin: clamp(12px, 2.2vh, 18px) 0; color: var(--ink-3); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.ghost { display: flex; align-items: center; justify-content: center; height: clamp(44px, 5.8vh, 50px); border-radius: 13px; border: 1.5px solid var(--violet-2); color: var(--violet-2) !important; font-size: .92rem; font-weight: 600; transition: background .15s, color .15s, transform .15s; }
:root[data-theme="dark"] .ghost { border-color: var(--amber); color: var(--amber) !important; }
.ghost:hover { background: var(--violet-2); color: #fff !important; text-decoration: none !important; transform: translateY(-1px); }
:root[data-theme="dark"] .ghost:hover { background: var(--amber); color: #0f0a1e !important; }
.alt { margin-top: clamp(12px, 2.2vh, 20px); text-align: center; color: var(--ink-2); font-size: .85rem; display: grid; gap: 6px; }
.alt .small { font-size: .78rem; color: var(--ink-3); }
.turnstile-box { min-height: 65px; }

/* alerts: server messages and the inline box login.js / register.js write into */
.alert { margin: 0 0 var(--pad); padding: 11px 14px; border-radius: 12px; border: 1px solid transparent; font-size: .82rem; line-height: 1.5; }
.alert:empty { display: none; }
.alert-warning { background: rgba(247, 183, 49, .12); border-color: rgba(247, 183, 49, .35); color: #9a6a00; }
:root[data-theme="dark"] .alert-warning { color: var(--amber); }
.alert-danger, .alert.err { background: rgba(229, 54, 90, .09); border-color: rgba(229, 54, 90, .28); color: var(--err); }
.alert-success, .alert.ok { background: rgba(18, 163, 107, .1); border-color: rgba(18, 163, 107, .3); color: var(--ok); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* status screens (activation result, check your inbox, password updated) */
.status { text-align: center; }
.status .auth-h1 { text-align: center; }
.status .auth-sub { max-width: 340px; margin-left: auto; margin-right: auto; }
.status-ic { width: 68px; height: 68px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; }
.status-ic.mail { background: rgba(91, 43, 224, .12); color: var(--violet-2); }
:root[data-theme="dark"] .status-ic.mail { background: rgba(124, 82, 242, .2); color: #b9a3ff; }
.status-ic.ok { background: rgba(18, 163, 107, .14); color: var(--ok); }
.status-ic.bad { background: rgba(229, 54, 90, .13); color: var(--err); }
.btn.link { text-decoration: none; }

/* ---------- Interactive panel (right) ---------- */
.art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(18px, 3.2vh, 34px) 44px clamp(18px, 3.4vh, 38px); color: #fff; isolation: isolate; background: linear-gradient(135deg, #0f0a1e 0%, #4920b8 52%, #5b2be0 100%); cursor: crosshair; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
#sim { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.art::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(620px 420px at 82% 14%, rgba(124, 82, 242, .45), transparent 70%), radial-gradient(520px 380px at 8% 92%, rgba(247, 183, 49, .16), transparent 70%), radial-gradient(ellipse at center, transparent 55%, rgba(15, 10, 30, .5) 100%); }
.art-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; position: relative; z-index: 3; pointer-events: none; }
.art-tag, .score { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .66rem; color: #d9d5f4; }
.art-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--human); box-shadow: 0 0 0 3px rgba(95, 217, 168, .2); }
.score b { color: var(--bot); font-weight: 600; font-size: .82rem; }
.score em { font-style: normal; color: var(--amber); } .score em b { color: var(--amber); }
.console-wrap { display: grid; place-items: center; padding: 24px 0; }
.console, .art-copy { cursor: default; }
.console { width: min(100%, 372px); border-radius: 20px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(16, 12, 44, .66); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08); overflow: hidden; }
.c-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .68rem; color: #a9a4d0; }
.c-head .live { width: 7px; height: 7px; border-radius: 50%; background: var(--human); box-shadow: 0 0 0 3px rgba(95, 217, 168, .2); animation: zbpulse 1.6s infinite; }
.c-head b { color: #fff; font-weight: 600; }
.c-head .tag { margin-left: auto; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); color: #cfcaee; }
@keyframes zbpulse { 50% { box-shadow: 0 0 0 6px rgba(95, 217, 168, 0); } }
.c-body { padding: 8px 16px 4px; }
.sig { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.sig.in { opacity: 1; transform: none; }
.sig:last-child { border-bottom: 0; }
.sig-ic { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .07); color: #cbbfff; }
.sig b { display: block; font-size: .8rem; font-weight: 600; line-height: 1.3; }
.sig small { display: block; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .66rem; color: #9b96c4; margin-top: 2px; }
.sig-st { margin-left: auto; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; }
.sig-st.ok { background: rgba(95, 217, 168, .18); color: var(--human); }
.sig-st.bad { background: rgba(255, 93, 122, .18); color: var(--bot); }
.verdict { display: flex; align-items: center; gap: 16px; margin: 6px 16px 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s, border-color .4s, background .4s; }
.verdict.in { opacity: 1; transform: none; }
.verdict.human { border-color: rgba(95, 217, 168, .4); background: rgba(95, 217, 168, .08); }
.verdict.bot { border-color: rgba(255, 93, 122, .45); background: rgba(255, 93, 122, .09); }
.ring { position: relative; width: 56px; height: 56px; flex: 0 0 56px; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring .trk { stroke: rgba(255, 255, 255, .1); }
.ring .val { stroke: var(--human); stroke-linecap: round; stroke-dasharray: 138.2; stroke-dashoffset: 138.2; transition: stroke-dashoffset .9s cubic-bezier(.3, .8, .3, 1), stroke .3s; }
.verdict.bot .ring .val { stroke: var(--bot); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .72rem; font-weight: 600; }
.v-t { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.verdict.human .v-t { color: var(--human); } .verdict.bot .v-t { color: var(--bot); }
.v-s { margin-top: 3px; font-size: .72rem; color: #a9a4d0; line-height: 1.45; }
.art-copy h2 { margin: 0 0 10px; font-size: 2rem; line-height: 1.16; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; max-width: 460px; color: #fff; }
.art-copy h2 em { font-style: normal; background: linear-gradient(90deg, var(--amber), #ffe08a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.art-copy p { margin: 0 0 18px; color: #aca7d1; font-size: .9rem; line-height: 1.7; max-width: 440px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); font-size: .72rem; font-weight: 500; color: #d9d5f4; }
.chips svg { color: var(--amber); }

@media (max-width: 1100px) { .art { padding-left: 32px; padding-right: 32px; } .art-copy h2 { font-size: 1.7rem; } }
@media (min-width: 992px) and (max-height: 820px) {
  .art-copy p { display: none; }
  .art-copy h2 { font-size: 1.6rem; margin-bottom: 12px; }
  .sig { padding: 9px 0; }
  .console-wrap { padding: 10px 0; }
}
@media (min-width: 992px) and (max-height: 700px) { .chips { display: none; } .sig-ic { width: 30px; height: 30px; flex-basis: 30px; } }
@media (max-width: 991px) {
  .shell { grid-template-columns: 1fr; }
  .art { display: none; }
  .panel { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .center { overflow: visible; }
}
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; gap: 0; } .bar .back { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Cookie banner (shared partial built for the Bootstrap-based pages) */
#zb-cookie-consent .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; max-width: 1180px; margin: 0 auto; }
#zb-cookie-consent p { margin: 0; }
#zb-cookie-consent .d-flex { display: flex; gap: 8px; flex-shrink: 0; }
#zb-cookie-consent a { color: #f7b731 !important; font-weight: 500; }

/* Registration: loading button + progress modal */
.btn.is-loading { pointer-events: none; opacity: .92; }
.btn.is-loading:disabled { opacity: .92; }
.spin { display: inline-block; width: 18px; height: 18px; margin-right: 10px; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: zbspin .7s linear infinite; }
@keyframes zbspin { to { transform: rotate(360deg); } }
.prog-overlay { position: fixed; inset: 0; z-index: 9990; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 10, 30, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.prog-overlay.on { display: flex; }
.prog-card { width: min(100%, 420px); padding: 30px 28px 24px; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.prog-card h3 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.prog-sub { margin: 0; color: var(--ink-2); font-size: .85rem; }
.prog-bar { height: 6px; margin: 18px 0 14px; border-radius: 99px; background: var(--field); overflow: hidden; }
.prog-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--violet-2), var(--amber)); transition: width .55s cubic-bezier(.3, .8, .3, 1); }
.prog-steps { list-style: none; margin: 0; padding: 0; }
.prog-steps li { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--ink-3); font-size: .88rem; transition: color .3s; }
.prog-steps .ic { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line); color: #fff; font-size: .7rem; font-weight: 700; }
.prog-steps li.active { color: var(--ink); font-weight: 500; }
.prog-steps li.active .ic { border-color: var(--violet-2); border-top-color: transparent; animation: zbspin .8s linear infinite; }
.prog-steps li.done { color: var(--ink-2); }
.prog-steps li.done .ic { background: var(--ok); border-color: var(--ok); }
.prog-steps li.done .ic::after { content: '\2713'; }

/* progress card -> success state */
.prog-card { transition: opacity .25s, transform .25s; }
.prog-card.swap { opacity: 0; transform: scale(.97); }
.prog-done { text-align: center; padding: 4px 0 2px; }
.prog-check { width: 64px; height: 64px; margin: 0 auto 16px; }
.prog-check .c { fill: rgba(18, 163, 107, .12); stroke: var(--ok); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: zbdraw .6s ease forwards; }
.prog-check .t { fill: none; stroke: var(--ok); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: zbdraw .4s .45s ease forwards; }
@keyframes zbdraw { to { stroke-dashoffset: 0; } }
.prog-done h3 { margin: 0 0 8px; font-size: 1.35rem; }
.prog-msg { margin: 0 0 22px; color: var(--ink-2); font-size: .92rem; line-height: 1.6; white-space: pre-line; }
.prog-done .btn.link { text-decoration: none; }

/* link-styled buttons must keep white text (the generic link color would otherwise win) */
.auth-body a.btn, .auth-body a.btn:hover, .auth-body a.btn:focus { color: #fff !important; text-decoration: none !important; }

/* progress card: failed step + error / warning / info result states */
.prog-steps li.fail { color: var(--err); font-weight: 500; }
.prog-steps li.fail .ic { background: var(--err); border-color: var(--err); animation: none; }
.prog-steps li.fail .ic::after { content: '\2715'; }
.prog-bar i.fail { background: var(--err); }
.prog-done.is-error .c { fill: rgba(229, 54, 90, .1); stroke: var(--err); }
.prog-done.is-error .t { stroke: var(--err); }
.prog-done.is-warning .c { fill: rgba(247, 183, 49, .14); stroke: #d99a00; }
.prog-done.is-warning .t { stroke: #d99a00; }
.prog-done.is-warning .d { fill: #d99a00; }
.prog-done.is-info .c { fill: rgba(91, 155, 213, .12); stroke: #5b9bd5; }
.prog-done.is-info .t { stroke: #5b9bd5; }
.prog-done.is-info .d { fill: #5b9bd5; }
.prog-done button.btn { border: 0; }

/* ================= Robot head (body.rb-on only; AUTH_ROBOT=off removes all of it) ================= */
.rb-on .rb-stage { position: relative; isolation: isolate; width: min(100%, 468px); margin: 0 auto; }
.rb-on .rb-svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.rb-on .rb-back { z-index: 1; } .rb-on .rb-front { z-index: 3; }
.rb-on .rb-card {
  position: relative; z-index: 2; width: 100%; padding: 26px 28px 22px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line); will-change: transform; transform-origin: 50% 50%;
  box-shadow: calc(var(--sx, 0) * 1px) calc(22px + var(--sy, 0) * 1px) 50px rgba(40, 20, 100, .13);
}
:root[data-theme="dark"] .rb-on .rb-card { box-shadow: calc(var(--sx, 0) * 1px) calc(22px + var(--sy, 0) * 1px) 50px rgba(0, 0, 0, .45); }
.rb-on .prog-overlay.prog-inline { position: absolute; inset: 0; z-index: 6; border-radius: inherit; background: var(--surface); display: none; align-items: center; justify-content: center; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.rb-on .prog-overlay.prog-inline.on { display: flex; }
.rb-on .prog-inline .prog-card { width: 100%; background: transparent; box-shadow: none; padding: 26px 26px 20px; }
@media (max-width: 480px) { .rb-on .rb-card { padding: 22px 18px 18px; border-radius: 20px; } }

/* robot mode: tighter vertical rhythm so the head + card still fit one screen */
.rb-on { --pad: clamp(8px, 1.3vh, 14px); --fh: clamp(38px, 4.9vh, 46px); }
.rb-on .rb-card { padding: 18px 26px 14px; }
.rb-on .auth-h1 { font-size: clamp(1.3rem, 3vh, 1.55rem); margin-bottom: 2px; }
.rb-on .auth-sub { margin-bottom: clamp(8px, 1.6vh, 14px); font-size: .84rem; }
.rb-on .or { margin: clamp(8px, 1.5vh, 14px) 0; }
.rb-on .alt { margin-top: 8px; }
.rb-on .btn { height: clamp(42px, 5.4vh, 48px); }
.rb-on .ghost { height: clamp(40px, 5.2vh, 46px); }
.rb-on #username + .form-text { display: none; }
.rb-on .turnstile-box { min-height: 65px; margin-bottom: 4px; }
@media (max-height: 860px) { .rb-on .auth-sub { display: none; } }
.rb-on .bar { padding-top: clamp(10px, 1.8vh, 18px); }
.rb-on .foot { padding: 8px 0 clamp(8px, 1.6vh, 16px); }
.rb-on .center { padding: 6px 0; }
@media (max-height: 800px) { .rb-on .or { display: none; } .rb-on .ghost { margin-top: 10px; } }
.d-block { display: block; }
