/* =============================================
   Auth Pages Styles — Login / Register / Forgot Password
   ============================================= */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

/* ---- Left Panel — Visual ---- */
.auth-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: var(--bg-alt);
}

.auth-visual-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,255,133,0.05) 0%, rgba(8,9,10,0.95) 60%, rgba(255,215,0,0.03) 100%);
}

.auth-visual-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.auth-visual-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.auth-logo {
  margin-bottom: 2.5rem;
}

.auth-logo-text {
  font-family: var(--font-hero);
  font-size: 4rem;
  color: var(--primary);
  letter-spacing: 8px;
  text-shadow: 0 0 40px rgba(0,255,133,0.5), 0 0 80px rgba(0,255,133,0.2);
  display: block;
  line-height: 1;
}

.auth-logo-sub {
  font-family: var(--font-title);
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.auth-tagline {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.auth-tagline span { color: var(--primary); }

.auth-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  margin-top: 2rem;
}

.auth-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-sec);
}

.auth-benefits li i {
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.auth-stat-row {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  justify-content: center;
}

.auth-stat {
  text-align: center;
}

.auth-stat strong {
  display: block;
  font-family: var(--font-hero);
  font-size: 2rem;
  color: var(--primary);
  line-height: 1;
}

.auth-stat span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- Right Panel — Form ---- */
.auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: var(--bg);
  overflow-y: auto;
}

.auth-form-wrap {
  width: 100%;
  max-width: 460px;
}

.auth-title {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.auth-subtitle {
  font-size: 0.88rem;
  color: var(--text-sec);
  margin-bottom: 2rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-switch {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-sec);
  margin-top: 1.5rem;
}

.auth-switch a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover { text-decoration: underline; }

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.auth-back:hover { color: var(--primary); }

/* Password strength meter */
.password-strength {
  margin-top: 0.5rem;
}

.strength-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 0.3rem;
}

.strength-seg {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  transition: var(--transition);
}

.strength-seg.active.weak   { background: var(--danger); }
.strength-seg.active.fair   { background: var(--gold); }
.strength-seg.active.strong { background: var(--primary); }

.strength-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Terms checkbox */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-check-label {
  font-size: 0.82rem;
  color: var(--text-sec);
  line-height: 1.5;
}

.form-check-label a {
  color: var(--primary);
  text-decoration: none;
}

/* Success state */
.auth-success {
  text-align: center;
  padding: 2rem 0;
}

.auth-success-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 1rem;
  animation: pulse-glow 2s ease-in-out infinite;
  display: block;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { padding: 2rem 1.5rem; min-height: 100vh; }
}
