/* ══════════════════════════════════════════════════════════════
   AUTH.CSS — Login, Signup, Forgot Password Page Styles
   ══════════════════════════════════════════════════════════════ */

.auth-page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

/* ─────────────── SPLIT SCREEN AUTH (New UI) ─────────────── */
.auth-split-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  padding-top: 5rem;
}

.auth-split-form {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-body);
  padding: var(--space-8);
  position: relative;
}

.auth-split-visual {
  flex: 1.2;
  display: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: var(--space-16);
  text-align: center;
}

.auth-split-visual::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.1), transparent 70%);
}

.auth-split-visual-content {
  position: relative;
  z-index: 2;
  color: white;
}

.auth-split-visual-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  color: white;
}

.auth-split-visual-content p {
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .auth-split-visual {
    display: flex;
  }
}

.auth-form-wrapper {
  width: 100%;
  max-width: 440px;
}

.social-login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--ease-base);
  cursor: pointer;
}

.btn-social:hover {
  background: var(--bg-elevated);
  border-color: var(--primary);
}

.auth-container {
  width: 100%;
  max-width: 440px;
}

.auth-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-3xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

/* Decorative glow behind auth card */
.auth-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--primary-glow), transparent 60%);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

.auth-logo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-xl);
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow-glow-blue);
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--space-2);
}

.auth-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--space-8);
}

/* Auth form specifics */
.auth-form .form-group {
  margin-bottom: var(--space-5);
}

.auth-form .input {
  padding: 0.875rem 1rem;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  font-size: 0.8rem;
}

.auth-actions a {
  color: var(--primary);
  font-weight: 600;
}

.auth-divider {
  text-align: center;
  margin: var(--space-6) 0;
  position: relative;
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border-default);
}

.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

.auth-footer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: var(--space-6);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 700;
}

/* Password visibility toggle */
.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.25rem;
}

.password-toggle:hover {
  color: var(--text-primary);
}

/* Referral code highlight */
.referral-highlight {
  background: var(--primary-glow);
  border: 1px solid rgba(59, 130, 246, 0.20);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  font-size: 0.8rem;
  color: var(--primary-light);
}

.referral-highlight i {
  color: var(--primary);
}
