/* ===== AUTH PAGES — CENTERED CARD ON GRADIENT BG ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(244,196,48,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(56,189,248,0.04) 0%, transparent 50%),
    var(--bg);
}

.auth-page::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,196,48,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.auth-container {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.auth-container.auth-container-wide {
  max-width: 640px;
}

/* Brand */
.auth-brand {
  text-align: center;
}

.auth-brand .logo {
  display: inline-block;
  margin-bottom: 8px;
}

.auth-brand-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Card */
.auth-card {
  width: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 40px 44px;
  backdrop-filter: blur(12px);
}

.auth-card-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-card-header h1 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.auth-card-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Graphic strip under header */
.auth-hero-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px;
  margin-bottom: 28px;
  background: rgba(244,196,48,0.03);
  border: 1px solid rgba(244,196,48,0.08);
  border-radius: 14px;
}

.auth-hero-strip img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.auth-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-hero-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-body);
}

.auth-hero-stat svg {
  color: var(--gold);
  flex-shrink: 0;
}

.auth-hero-stat strong {
  color: var(--text-heading);
}

/* Error / Success messages */
.auth-error {
  display: none;
  background-color: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  font-size: 0.85rem;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.auth-error.visible {
  display: block;
}

.auth-success {
  display: none;
  background-color: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
  color: #4ade80;
  font-size: 0.85rem;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.auth-success.visible {
  display: block;
}

/* Form elements */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 8px 0 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.form-section-title span {
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 7px;
}

.form-input {
  width: 100%;
  background-color: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-heading);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(244,196,48,0.08);
}

textarea.form-input {
  min-height: 140px;
  resize: vertical;
  font-family: var(--font-body);
}

.form-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-body);
}

.form-check label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.form-check input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.form-check a {
  color: var(--gold);
  font-weight: 600;
}

.auth-submit {
  width: 100%;
  margin-bottom: 20px;
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 700;
}

.auth-2fa-hint {
  color: var(--text-body);
  font-size: 0.88rem;
  margin-bottom: 18px;
  text-align: center;
}

.auth-switch {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-body);
}

.auth-switch a {
  color: var(--gold);
  font-weight: 700;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: rgba(255,255,255,0.06);
}

.auth-note {
  color: var(--text-body);
  font-size: 0.88rem;
  margin-bottom: 24px;
  text-align: center;
}

.auth-note a {
  color: var(--gold);
  font-weight: 600;
}

.auth-footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Captcha */
.login-captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.login-captcha-row img {
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  height: 44px;
}

/* Trust indicators at the bottom of auth card */
.auth-trust-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.auth-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.auth-trust-item svg {
  color: var(--gold);
  flex-shrink: 0;
  opacity: 0.7;
}
