/* Loaded after the preserved auth assets. Account form behavior stays in Vue. */
body .auth-shell {
  --auth-bg: var(--public-bg, #100b07);
  --auth-panel: var(--color-bg-card, #21170f);
  --auth-panel-strong: var(--color-bg-secondary, #19110c);
  --auth-border: var(--color-border, #4b3627);
  --auth-text: var(--color-text-primary, #fff3e4);
  --auth-soft: var(--color-text-secondary, #d9c7b4);
  --auth-muted: var(--color-text-muted, #bba994);
  --auth-accent: var(--color-primary, #f3b970);
  --auth-code-bg: #0b1220;
  --auth-code-text: #dbeafe;
  --auth-code-muted: #a9b7ca;
  --auth-code-accent: #93d3ae;
  background: transparent;
  color: var(--auth-text);
  min-height: calc(100svh - var(--public-header-height, 88px));
}

body .auth-shell .auth-grid,
body .auth-shell .auth-wash {
  display: none;
}

body .auth-shell .auth-stage {
  width: min(1260px, calc(100% - 2 * var(--public-gutter, 24px)));
  min-height: calc(100svh - var(--public-header-height, 88px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
  margin-inline: auto;
  padding-block: 64px 80px;
}

body .auth-shell .auth-copy {
  min-width: 0;
  padding-top: 0;
  text-align: left;
}

body .auth-shell .auth-copy h1 {
  color: var(--auth-text);
  font-size: clamp(44px, 4.4vw, 72px);
  letter-spacing: -.055em;
  line-height: 1.12;
}

body .auth-shell .auth-copy p {
  max-width: 600px;
  color: var(--auth-soft);
}

body .auth-shell .auth-terminal {
  margin-inline: 0;
  color: var(--auth-code-text);
  background: var(--auth-code-bg);
}

body .auth-shell .auth-terminal-title,
body .auth-shell .auth-terminal-head {
  color: var(--auth-code-muted);
}

body .auth-shell .auth-terminal-body p {
  color: var(--auth-code-text);
}

body .auth-shell .auth-terminal-body p span {
  color: var(--auth-code-accent);
}

body .auth-shell .auth-model-tags span {
  color: var(--auth-soft);
  background: var(--auth-panel);
  border-color: var(--auth-border);
}

body .auth-shell .auth-copyright {
  color: var(--auth-muted);
}

body .auth-shell .auth-kicker {
  color: var(--auth-accent);
}

body .auth-shell .auth-card {
  width: 100%;
  max-width: 420px;
  margin: 0;
  padding: 36px 32px;
  background: var(--auth-panel);
  border-color: var(--auth-border);
}

body .auth-shell .auth-card h1,
body .auth-shell .auth-card h2 {
  color: var(--auth-text) !important;
}

body .auth-shell .auth-card label,
body .auth-shell .auth-card .input-label {
  color: var(--auth-soft) !important;
}

body .auth-shell .auth-card input:not([type="checkbox"]):not([type="radio"]),
body .auth-shell .auth-card .input {
  min-height: 44px;
  color: var(--auth-text) !important;
  border-color: var(--auth-border) !important;
  background: var(--auth-panel-strong) !important;
}

body .auth-shell .auth-card input::placeholder {
  color: var(--auth-muted) !important;
}

body .auth-shell .auth-card a {
  color: var(--auth-accent) !important;
}

body .auth-shell .auth-card button[type="submit"],
body .auth-shell .auth-card .btn-primary {
  background: var(--auth-accent) !important;
  color: var(--color-on-primary, #291607) !important;
}

@media (max-width: 900px) {
  body .auth-shell .auth-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-block: 36px 56px;
  }

  body .auth-shell .auth-copy {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
  }

  body .auth-shell .auth-copy p,
  body .auth-shell .auth-terminal,
  body .auth-shell .auth-card {
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  body .auth-shell .auth-stage {
    width: calc(100% - 32px);
    gap: 28px;
    padding-block: 28px 40px;
  }

  body .auth-shell .auth-copy h1 {
    font-size: 40px;
  }

  body .auth-shell .auth-card {
    padding: 28px 22px;
  }
}
