/* ═══════════════════════════════════════════════════════════════════════════
   PHYSICSFORUM.ORG — AUTH PAGES (Login / Register / Forgot Password)
   ═══════════════════════════════════════════════════════════════════════════ */

.auth-page {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(1200px 600px at 20% 30%, rgba(37,99,235,0.18), transparent 60%),
    radial-gradient(900px 500px at 80% 70%, rgba(245,158,11,0.15), transparent 60%),
    linear-gradient(135deg, #1B3A6B 0%, #2563EB 50%, #4F46E5 100%);
  overflow: hidden;
}

.auth-bg-decoration { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
}
.auth-orb-1 { top: -100px; left: -100px; width: 400px; height: 400px; background: #F59E0B; animation: orbFloat 18s ease-in-out infinite; }
.auth-orb-2 { bottom: -100px; right: -100px; width: 500px; height: 500px; background: #7C3AED; animation: orbFloat 22s ease-in-out infinite reverse; }
.auth-orb-3 { top: 40%; left: 50%; width: 300px; height: 300px; background: #2563EB; opacity: 0.3; animation: orbFloat 25s ease-in-out infinite; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -40px) scale(1.1); }
}

.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
}

.auth-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow:
    0 20px 60px rgba(15, 23, 42, 0.18),
    0 8px 24px rgba(15, 23, 42, 0.08);
  position: relative;
}

.auth-card-header { text-align: center; margin-bottom: 24px; }
.auth-logo { display: inline-block; margin-bottom: 12px; transition: transform 0.2s ease; }
.auth-logo:hover { transform: scale(1.05); }

.auth-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--color-space-navy);
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}
.auth-subtitle {
  font-size: 14px;
  color: var(--color-neutron-grey);
  margin: 0;
}

.auth-form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark-grey);
}
.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--color-space-navy);
  background: var(--surface-page);
  font-family: var(--font-display);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--color-electric);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.auth-field input::placeholder { color: var(--text-faint); }
.auth-hint { font-size: 11px; color: var(--text-faint); margin-top: 2px; }

.auth-password-wrap { position: relative; }
.auth-password-wrap input { width: 100%; padding-right: 44px; }
.auth-pass-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.6;
  padding: 4px;
}
.auth-pass-toggle:hover { opacity: 1; }

.auth-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin: -4px 0 4px;
}
.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--color-dark-grey);
}
.auth-checkbox input { accent-color: var(--color-electric); width: 16px; height: 16px; }

.auth-link {
  color: var(--color-electric);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }
.auth-link-strong { font-weight: 700; }

.auth-btn-primary {
  margin-top: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #2563EB 0%, #1B3A6B 100%);
  color: #FFFFFF;
  border: 0;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.auth-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37,99,235,0.4); }
.auth-btn-primary:active { transform: translateY(0); }

.auth-btn-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #B45309 100%);
  box-shadow: 0 4px 14px rgba(245,158,11,0.35);
}
.auth-btn-gold:hover { box-shadow: 0 6px 18px rgba(245,158,11,0.5); }

.auth-divider {
  display: flex;
  align-items: center;
  margin: 22px 0 16px;
  color: var(--text-faint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}
.auth-divider span { padding: 0 14px; }

.auth-footer-text {
  text-align: center;
  font-size: 14px;
  color: var(--color-dark-grey);
  margin: 0;
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
}
.auth-alert svg { flex-shrink: 0; margin-top: 1px; }
.auth-alert-error { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25); color: #B91C1C; }
.auth-alert-success { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.25); color: #047857; }

.auth-back-home {
  text-align: center;
  margin: 16px 0 0;
}
.auth-back-home a {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  text-decoration: none;
}
.auth-back-home a:hover { color: var(--text-inverse); text-decoration: underline; }

/* ── Mobile ── */
@media (max-width: 520px) {
  .auth-card { padding: 28px 22px; border-radius: 14px; }
  .auth-title { font-size: 22px; }
}
