:root {
  --bg: #050505;
  --panel: rgba(8, 8, 8, 0.82);
  --panel-soft: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.76);
  --muted-strong: rgba(244, 241, 234, 0.88);
  --black: #030303;
  --white: #f5f3ee;
  --danger: #f7d6d6;
  --success: #dcefd8;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, "Avenir Next", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

a { color: inherit; }

button,
input { font: inherit; }

.auth-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 1px) 0 0 / 72px 72px,
    linear-gradient(rgba(255, 255, 255, 0.026), transparent 1px) 0 0 / 72px 72px,
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(180deg, #111 0%, #050505 48%, #020202 100%);
}

.auth-noise,
.auth-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-grid {
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(255,255,255,.055) 50%, transparent 50.2% 100%),
    linear-gradient(180deg, transparent 0 49.8%, rgba(255,255,255,.045) 50%, transparent 50.2% 100%);
  background-size: 180px 180px;
  opacity: .22;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}

.auth-noise {
  opacity: .055;
  background-image: radial-gradient(rgba(255,255,255,.9) .5px, transparent .8px);
  background-size: 9px 9px;
}

.auth-topbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 3, 3, 0.54);
  backdrop-filter: blur(18px);
}

.auth-top-brand,
.auth-top-nav,
.auth-top-action {
  display: inline-flex;
  align-items: center;
}

.auth-top-brand {
  gap: 10px;
  width: fit-content;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
}

.auth-top-mark {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  background: url("/assets/logo-light.svg") center / 16px 16px no-repeat;
}

.auth-top-nav {
  gap: 34px;
  justify-content: center;
  color: var(--muted);
  font: 700 11px/1 "JetBrains Mono", "Cascadia Code", monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.auth-top-nav a,
.auth-top-action,
.auth-footer-links a,
.auth-form-row a,
.auth-text-button,
.auth-agent-strip a {
  text-decoration: none;
}

.auth-top-action {
  justify-self: end;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.auth-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(390px, 480px);
  min-height: calc(100vh - 64px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.auth-hero,
.auth-card {
  position: relative;
}

.auth-hero {
  min-height: 620px;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
}

.auth-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(34px, 6vw, 84px);
  overflow: hidden;
}

.auth-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.92), rgba(0,0,0,.32) 42%, rgba(0,0,0,.92)),
    linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.88)),
    repeating-linear-gradient(90deg, transparent 0 76px, rgba(255,255,255,.045) 77px 78px),
    linear-gradient(118deg, transparent 0 37%, rgba(255,255,255,.08) 37.2%, transparent 37.8% 100%),
    linear-gradient(62deg, transparent 0 58%, rgba(255,255,255,.07) 58.2%, transparent 58.8% 100%);
  opacity: .92;
}

.auth-scene::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 48%;
  background:
    linear-gradient(170deg, transparent 0 44%, rgba(255,255,255,.12) 44.4%, transparent 45.4%),
    linear-gradient(10deg, transparent 0 44%, rgba(255,255,255,.1) 44.4%, transparent 45.4%),
    repeating-linear-gradient(180deg, rgba(255,255,255,.05) 0 1px, transparent 1px 34px);
  transform: perspective(520px) rotateX(58deg);
  transform-origin: bottom;
  filter: blur(.1px);
  opacity: .56;
}

.auth-scene-haze {
  position: absolute;
  inset: auto 10% 15% 10%;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.09), transparent 68%);
  filter: blur(18px);
}

.auth-scene-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 18%, rgba(255,255,255,.08) 18.2%, transparent 18.8% 81.2%, rgba(255,255,255,.08) 81.8%, transparent 82%),
    linear-gradient(180deg, rgba(255,255,255,.09), transparent 24%);
  opacity: .55;
}

.auth-hero-copy,
.auth-stat-grid,
.auth-system-row {
  position: relative;
  z-index: 1;
}

.auth-kicker,
.auth-eyebrow,
.auth-stat-card span,
.auth-system-row,
.auth-badge,
.auth-field span,
.auth-agent-strip,
.auth-footer-links {
  font-family: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.auth-kicker,
.auth-eyebrow,
.auth-stat-card span,
.auth-system-row {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.auth-hero-copy h1 {
  max-width: 520px;
  margin: 14px 0 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.auth-lead {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.9;
}

.auth-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  gap: 10px;
  margin-top: 34px;
}

.auth-stat-card {
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.34);
}

.auth-stat-card strong {
  display: block;
  margin-top: 12px;
  color: var(--white);
  font-size: 18px;
  line-height: 1.12;
  letter-spacing: 0;
}

.auth-system-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  font-size: 10px;
}

.auth-system-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.32);
}

.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 620px;
  padding: clamp(30px, 5vw, 70px);
  background: rgba(4,4,4,.72);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 1px solid rgba(255,255,255,.04);
  pointer-events: none;
}

.auth-card-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.auth-card h2 {
  margin: 10px 0 0;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: 0;
}

.auth-card-copy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.auth-badge {
  flex: 0 0 auto;
  align-self: flex-start;
  min-height: 30px;
  padding: 9px 10px 0;
  border: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 10px;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid var(--line);
}

.auth-mode-btn {
  min-height: 42px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.auth-mode-btn:last-child { border-right: 0; }

.auth-mode-btn.is-active {
  background: var(--white);
  color: var(--black);
}

.auth-login-choice {
  display: grid;
  gap: 12px;
}

.auth-login-choice-card {
  --auth-choice-bg: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon copy";
  align-items: center;
  column-gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.auth-login-choice-card::before {
  content: "";
  position: absolute;
  inset: -22px -10px -22px auto;
  z-index: 0;
  width: 148px;
  background: var(--auth-choice-bg) center / contain no-repeat;
  opacity: .16;
  transform: rotate(-8deg);
}

.auth-login-choice-card > * {
  position: relative;
  z-index: 1;
}

.auth-login-choice-card--email {
  --auth-choice-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='8' stroke-linecap='round' stroke-linejoin='round' opacity='.9'%3E%3Crect x='28' y='34' width='184' height='112' rx='18'/%3E%3Cpath d='M40 48l80 62 80-62'/%3E%3Cpath d='M42 132l58-45'/%3E%3Cpath d='M198 132l-58-45'/%3E%3C/g%3E%3C/svg%3E");
}

.auth-login-choice-card--wechat {
  --auth-choice-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='8' stroke-linecap='round' stroke-linejoin='round' opacity='.9'%3E%3Cpath d='M88 34c-36 0-64 22-64 50 0 16 9 30 24 39l-7 23 29-13c6 2 13 3 21 3 36 0 64-22 64-50S124 34 88 34Z'/%3E%3Cpath d='M132 70c32 0 58 20 58 45 0 14-8 27-22 35l6 20-27-12c-6 2-12 3-19 3-32 0-58-20-58-45 0-5 1-9 3-14'/%3E%3C/g%3E%3Cg fill='%23ffffff' opacity='.9'%3E%3Ccircle cx='66' cy='82' r='5'/%3E%3Ccircle cx='111' cy='82' r='5'/%3E%3Ccircle cx='113' cy='117' r='4'/%3E%3Ccircle cx='154' cy='117' r='4'/%3E%3C/g%3E%3C/svg%3E");
}

.auth-login-choice-card:hover,
.auth-login-choice-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.auth-login-choice-icon {
  grid-area: icon;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 16px;
  font-weight: 950;
}

.auth-login-choice-icon svg,
.auth-wechat-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-login-choice-icon circle,
.auth-wechat-icon circle {
  fill: currentColor;
  stroke: none;
}

.auth-login-choice-card strong {
  grid-area: title;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 950;
}

.auth-login-choice-card small {
  grid-area: copy;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.auth-back-button {
  width: fit-content;
  min-height: 30px;
  margin-bottom: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.auth-back-button::before {
  content: "<";
  margin-right: 7px;
}

.auth-form {
  display: grid;
  gap: 15px;
}

.auth-field {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 800;
}

.auth-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 0;
  outline: none;
  background: rgba(0,0,0,.56);
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.auth-field input::placeholder { color: rgba(244,241,234,.5); }

.auth-field input:focus {
  border-color: rgba(255,255,255,.34);
  background: rgba(0,0,0,.74);
  box-shadow: 0 0 0 3px rgba(255,255,255,.045);
}

.auth-password-wrap {
  position: relative;
  display: block;
}

.auth-password-wrap input { padding-right: 62px; }

.auth-code-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 8px;
}

.auth-code-button {
  min-height: 50px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.auth-code-button:disabled {
  cursor: not-allowed;
  opacity: .56;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  min-width: 42px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 12px;
}

.auth-password-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.auth-password-rules span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid rgba(244, 241, 234, 0.18);
  color: rgba(244, 241, 234, 0.64);
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  font-weight: 800;
}

.auth-password-rules span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(244, 241, 234, 0.42);
}

.auth-password-rules span.is-valid {
  border-color: rgba(111, 220, 159, 0.5);
  color: #bdf7cf;
  background: rgba(34, 197, 94, 0.11);
}

.auth-password-rules span.is-valid::before {
  background: #55d989;
}

.auth-password-rules span.is-invalid {
  border-color: rgba(248, 113, 113, 0.46);
  color: #ffc0c0;
  background: rgba(239, 68, 68, 0.12);
}

.auth-password-rules span.is-invalid::before {
  background: #f87171;
}

.auth-form-row,
.auth-check,
.auth-secondary-action,
.auth-agent-strip,
.auth-footer-links {
  display: flex;
  align-items: center;
}

.auth-form-row {
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.auth-check {
  gap: 8px;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
  font-family: inherit;
}

.auth-check input {
  width: 14px;
  height: 14px;
  accent-color: var(--white);
}

.auth-submit {
  min-height: 54px;
  margin-top: 4px;
  border: 0;
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .08em;
  transition: transform .18s ease, opacity .18s ease;
}

.auth-submit:hover { transform: translateY(-1px); }
.auth-submit:disabled { cursor: not-allowed; opacity: .55; transform: none; }

.auth-reset-sent {
  display: grid;
  gap: 16px;
}

.auth-reset-sent-actions {
  display: grid;
  gap: 12px;
  text-align: center;
}

.auth-reset-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  text-decoration: none;
}

.auth-oauth {
  margin-top: 18px;
}

.auth-oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(244, 241, 234, 0.56);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.auth-oauth-divider::before,
.auth-oauth-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-wechat-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .06em;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.auth-wechat-button:hover,
.auth-wechat-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.09);
}

.auth-wechat-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #f5f3ee;
  color: #050505;
  flex: 0 0 auto;
}

.auth-wechat-icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.auth-wechat-panel {
  display: grid;
  gap: 14px;
}

.auth-wechat-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-wechat-head strong,
.auth-wechat-head small {
  display: block;
}

.auth-wechat-head strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 950;
}

.auth-wechat-head small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.auth-wechat-qr {
  min-height: 318px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #ffffff;
}

.auth-wechat-qr span {
  color: #111111;
  font-size: 13px;
  font-weight: 900;
}

.auth-wechat-qr iframe {
  width: 300px !important;
  height: 318px !important;
  border: 0;
}

.auth-wechat-tip {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.auth-wechat-fallback {
  width: fit-content;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.auth-secondary-action {
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.auth-text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-weight: 800;
}

.auth-agent-strip {
  justify-content: space-between;
  gap: 10px;
  margin-top: 28px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--muted-strong);
  font-size: 10px;
}

.auth-agent-strip a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-agent-strip a::before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255,255,255,.4);
}

.auth-footer-links {
  justify-content: center;
  gap: 20px;
  margin-top: 22px;
  color: rgba(244,241,234,.48);
  font-size: 10px;
}

.auth-error,
.auth-success {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.045);
  color: var(--danger);
  font-size: 13px;
  line-height: 1.55;
}

.auth-success { color: var(--success); }

.auth-nickname-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-nickname-modal[hidden] {
  display: none !important;
}

.auth-nickname-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.auth-nickname-card {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 32px));
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 8, 8, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
}

.auth-nickname-eyebrow {
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.auth-nickname-card strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1.2;
}

.auth-nickname-card p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.7;
}

[hidden] { display: none !important; }

@media (max-width: 900px) {
  .auth-topbar {
    grid-template-columns: 1fr auto;
    min-height: 58px;
    padding: 0 16px;
  }

  .auth-top-nav { display: none; }

  .auth-layout {
    display: block;
    min-height: auto;
  }

  .auth-hero {
    min-height: auto;
    border-right: 0;
  }

  .auth-scene {
    position: relative;
    min-height: 250px;
    padding: 34px 24px 28px;
  }

  .auth-hero-copy h1 {
    max-width: 330px;
    font-size: 30px;
  }

  .auth-lead {
    max-width: 330px;
    font-size: 13px;
    line-height: 1.75;
  }

  .auth-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
  }

  .auth-stat-card {
    min-height: 66px;
    padding: 11px;
  }

  .auth-stat-card strong { font-size: 14px; }

  .auth-system-row { display: none; }

  .auth-card {
    min-height: auto;
    padding: 34px 18px 30px;
    border-top: 1px solid rgba(255,255,255,.09);
  }

  .auth-card-head {
    display: block;
    text-align: center;
  }

  .auth-badge { display: none; }

  .auth-card h2 { font-size: 28px; }

  .auth-card-copy { font-size: 12px; }

  .auth-agent-strip { font-size: 9px; }
}

@media (max-width: 520px) {
  .auth-shell {
    background:
      radial-gradient(circle at 50% 0%, rgba(255,255,255,.09), transparent 30%),
      linear-gradient(180deg, #111, #050505 46%, #020202 100%);
  }

  .auth-top-action {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  .auth-scene { min-height: 190px; }

  .auth-stat-grid,
  .auth-system-row {
    display: none;
  }

  .auth-card {
    padding: 30px 14px 26px;
  }

  .auth-login-choice {
    gap: 14px;
  }

  .auth-login-choice-card {
    min-height: 112px;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 13px;
    padding: 17px 15px;
  }

  .auth-login-choice-card::before {
    inset: -26px -18px -24px auto;
    width: 170px;
    opacity: .23;
  }

  .auth-login-choice-icon {
    width: 48px;
    height: 48px;
  }

  .auth-login-choice-icon svg {
    width: 27px;
    height: 27px;
  }

  .auth-form-row {
    align-items: flex-start;
    font-size: 12px;
  }

  .auth-agent-strip {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 12px;
  }

  .auth-footer-links {
    gap: 14px;
  }

  .auth-code-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-code-button {
    width: 100%;
  }
}
