body.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 20px 28px;
  z-index: 3;
}
.auth-topbar a { font-size: 19px; font-weight: 700; color: var(--text); }
.auth-topbar a span { color: var(--gold); }

.auth-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(160deg, var(--black-2), var(--black-3));
  border: 1px solid rgba(57, 255, 136, 0.25);
  border-radius: 22px;
  padding: 36px 32px;
  box-shadow: 0 0 70px -20px rgba(57, 255, 136, 0.25), var(--shadow-soft);
}
.auth-card h1 { font-size: 24px; margin: 0 0 8px; font-weight: 680; }
.auth-card .auth-sub { color: var(--text-dim); font-size: 14px; margin: 0 0 26px; line-height: 1.5; }

.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 7px; }
.auth-field-hint { font-size: 12px; color: var(--text-dim); margin: 7px 0 0; line-height: 1.5; opacity: 0.85; }
.auth-field input, .auth-field select {
  width: 100%;
  background: var(--black-3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
}
.auth-field input:focus, .auth-field select:focus { outline: none; border-color: var(--gold); }
.auth-field.code-field input {
  letter-spacing: 0.4em;
  font-size: 20px;
  text-align: center;
  font-weight: 650;
}

.auth-error {
  display: none;
  background: rgba(224, 90, 90, 0.1);
  border: 1px solid rgba(224, 90, 90, 0.35);
  color: #f0a8a8;
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.auth-error.show { display: block; }

.auth-submit { width: 100%; justify-content: center; margin-top: 4px; }
.auth-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

.auth-meta { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--text-dim); }
.auth-meta a { color: var(--gold-soft); font-weight: 600; }
.auth-meta a:hover { text-decoration: underline; }

.auth-resend {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
}
.auth-resend:hover:not(:disabled) { color: var(--text); }
.auth-resend:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-step { display: none; }
.auth-step.active { display: block; }

.auth-phone-display {
  font-size: 14px;
  color: var(--text);
  font-weight: 620;
  margin-bottom: 20px;
}
.auth-phone-display button {
  background: none; border: none; color: var(--gold-soft);
  font-size: 12.5px; font-weight: 600; cursor: pointer; margin-left: 8px;
  font-family: inherit; text-decoration: underline;
}
