.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-shell {
  width: 100%;
  max-width: 440px;
}

.auth-card {
  position: relative;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 40px 36px 32px;
  animation: authRise .5s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes authRise {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.auth-brand { margin-bottom: 26px; }
.auth-brand .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.auth-brand h1 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.auth-lede {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.auth-form { display: grid; gap: 18px; }
.auth-field { display: grid; gap: 8px; }
.auth-field > span {
  font-size: 13px;
  font-weight: 640;
  color: var(--ink);
}
.auth-field input {
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 17px;
  transition: border-color .15s, box-shadow .15s;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus);
}
#extInput {
  letter-spacing: .28em;
  font-weight: 640;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.auth-submit {
  height: 52px;
  justify-content: center;
  font-size: 15px;
}
.auth-submit.is-busy { opacity: .7; pointer-events: none; }

.auth-error {
  margin: -6px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 560;
}

.auth-alt {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.auth-alt .text-button { color: var(--muted); font-size: 13px; }
.auth-alt .text-button:hover { color: var(--accent); }

/* Stealth overlay cohesion */
html.theme-stealth .auth-card {
  background: rgba(19, 21, 27, .82);
  border-color: rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
}
html.theme-stealth .auth-field input {
  background: rgba(9, 10, 13, .7);
  border-color: rgba(255, 255, 255, .12);
}
