/* ═══════════════════════════════════════
   守夜人论坛 — 认证页面共用样式
   ═══════════════════════════════════════ */

body { background: #060b14; }

.auth-hero {
  min-height: 35vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 8rem 2rem 3rem;
  background: radial-gradient(ellipse at 50% 30%, rgba(201,168,76,0.06) 0%, transparent 60%),
              linear-gradient(180deg, #060b14 0%, #0a1020 50%, #060b14 100%);
}
.auth-hero h1 {
  font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--gold); margin-bottom: 0.5rem;
}
.auth-hero p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }

.auth-section {
  padding: 3rem 2rem 6rem;
  background: linear-gradient(180deg, #060b14 0%, #0a1020 50%, #060b14 100%);
  display: flex; justify-content: center;
}

.auth-card {
  width: 100%; max-width: 480px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2.5rem; position: relative; overflow: hidden;
}
.auth-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.auth-card h2 {
  font-family: var(--font-serif); font-size: 1.3rem;
  color: var(--gold); text-align: center; margin-bottom: 0.3rem;
}
.auth-card .sub {
  text-align: center; color: var(--text-dim); font-size: 0.78rem; margin-bottom: 1.5rem;
}

.auth-footer {
  text-align: center; margin-top: 1.5rem; font-size: 0.82rem; color: var(--text-dim);
}
.auth-footer a { color: var(--gold); }

.password-wrap { position: relative; }
.password-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-dim); cursor: pointer;
  font-size: 0.85rem; padding: 4px; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.password-toggle:hover { color: var(--gold); }

.forgot-link {
  display: block; text-align: right; font-size: 0.78rem; color: var(--text-dim);
  text-decoration: none; margin-top: -0.5rem; margin-bottom: 1rem;
}
.forgot-link:hover { color: var(--gold); }

.back-home {
  position: fixed; top: 1.5rem; left: 1.5rem; z-index: 100;
  display: flex; align-items: center; gap: 6px; padding: 8px 16px;
  background: rgba(6,11,20,0.8); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-dim); font-size: 0.8rem; text-decoration: none;
  transition: all 0.3s ease;
}
.back-home:hover { border-color: var(--gold-dim); color: var(--gold); }

.btn-loading { display: none; gap: 6px; align-items: center; justify-content: center; }
.btn-loading .dot {
  width: 6px; height: 6px; background: #060b14; border-radius: 50%;
  animation: dotPulse 1.2s ease-in-out infinite;
}
.btn-loading .dot:nth-child(2) { animation-delay: 0.15s; }
.btn-loading .dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes dotPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.navbar, .footer, .starfield { display: none; }

@media (max-width: 480px) {
  .auth-card { padding: 1.5rem 1.2rem; }
  .back-home { top: 1rem; left: 1rem; padding: 6px 12px; font-size: 0.75rem; }
}
