/* Auth Pages */
.auth-page {
  min-height: 100vh; display: flex; background: var(--bg-body);
}

/* Auth Container (Left side - form) */
.auth-container {
  width: 520px; flex-shrink: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: var(--space-10); background: var(--bg-surface);
}
.auth-card { width: 100%; max-width: 400px; }
.auth-brand { margin-bottom: var(--space-6); text-align: center; }
.auth-title { font-size: var(--text-2xl); font-weight: var(--weight-bold); margin-bottom: var(--space-2); }
.auth-subtitle { font-size: var(--text-sm); color: var(--text-tertiary); margin-bottom: var(--space-6); }

/* Auth Hero (Right side - visual) */
.auth-hero {
  flex: 1;
  background: linear-gradient(135deg, #4F46E5, #7C3AED 40%, #3730A3);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: var(--space-12); position: relative; overflow: hidden;
}
.auth-hero::before {
  content: ''; position: absolute; width: 500px; height: 500px;
  background: rgba(255,255,255,0.05); border-radius: 50%;
  top: -100px; right: -100px;
}
.auth-hero::after {
  content: ''; position: absolute; width: 300px; height: 300px;
  background: rgba(255,255,255,0.03); border-radius: 50%;
  bottom: -60px; left: -60px;
}
.auth-hero__content { text-align: center; color: #fff; position: relative; z-index: 1; max-width: 440px; }
.auth-hero__title { font-size: var(--text-3xl); font-weight: var(--weight-bold); margin-bottom: var(--space-4); }
.auth-hero__desc { font-size: var(--text-base); opacity: 0.85; line-height: var(--leading-relaxed); margin-bottom: var(--space-8); }
.auth-hero__stats { display: flex; gap: var(--space-8); justify-content: center; }
.auth-hero__stat { text-align: center; }
.auth-hero__stat-value { font-size: var(--text-2xl); font-weight: var(--weight-bold); }
.auth-hero__stat-label { font-size: var(--text-xs); opacity: 0.7; margin-top: var(--space-1); }

/* Social Login */
.social-login { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-5); }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: var(--space-3);
  width: 100%; height: 44px; border: 1px solid var(--border-color);
  border-radius: var(--radius-md); font-weight: var(--weight-medium);
  font-size: var(--text-sm); color: var(--text-primary);
  background: var(--bg-surface); cursor: pointer;
  transition: all var(--transition-fast);
}
.social-btn:hover { border-color: var(--text-tertiary); box-shadow: var(--shadow-sm); background: var(--bg-surface-secondary); }

.auth-divider { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-color); }
.auth-divider span { font-size: var(--text-xs); color: var(--text-tertiary); white-space: nowrap; }

.auth-card .form-group { margin-bottom: var(--space-4); }
.auth-card .form-input { height: 46px; }
.auth-footer { margin-top: var(--space-6); text-align: center; font-size: var(--text-sm); color: var(--text-tertiary); }
.auth-footer a { color: var(--color-primary); font-weight: var(--weight-medium); text-decoration: none; }

/* Onboarding */
.onboarding-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; background: var(--bg-body); }
.onboarding-header { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-6); width: 100%; }
.onboarding-container { width: 100%; max-width: 650px; padding: var(--space-6); flex: 1; display: flex; flex-direction: column; }
.onboarding-progress { width: 100%; height: 4px; background: var(--bg-surface-secondary); border-radius: var(--radius-full); margin-bottom: var(--space-8); }
.onboarding-progress__bar { height: 100%; background: var(--color-primary); border-radius: var(--radius-full); transition: width 0.4s ease; }
.onboarding-step__title { font-size: var(--text-2xl); font-weight: var(--weight-bold); margin-bottom: var(--space-2); text-align: center; }
.onboarding-step__desc { text-align: center; color: var(--text-tertiary); font-size: var(--text-sm); }
.onboarding-actions { display: flex; justify-content: center; gap: var(--space-3); margin-top: var(--space-8); }

/* Subject Selector */
.subject-selector { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.subject-option { cursor: pointer; }
.subject-option input { display: none; }
.subject-option__card {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4);
  border: 2px solid var(--border-color); border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}
.subject-option input:checked + .subject-option__card {
  border-color: var(--color-primary); background: var(--color-primary-bg);
}
.subject-option__card:hover { border-color: var(--color-primary-light); }
.subject-option__icon { font-size: 1.25rem; }
.subject-option__name { font-size: var(--text-sm); font-weight: var(--weight-medium); }

/* Target Score */
.target-scores { display: flex; flex-direction: column; gap: var(--space-4); }
.target-score-item { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4); background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); }
.score-btn {
  width: 40px; height: 40px; border-radius: var(--radius-md); border: 2px solid var(--border-color);
  font-weight: var(--weight-bold); font-size: var(--text-base); cursor: pointer;
  background: var(--bg-surface); color: var(--text-primary); transition: all var(--transition-fast);
}
.score-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.score-btn:hover:not(.active) { border-color: var(--color-primary-light); }

/* Schedule Options */
.schedule-options { display: flex; flex-direction: column; gap: var(--space-3); }
.schedule-option { cursor: pointer; }
.schedule-option input { display: none; }
.schedule-option__card {
  display: flex; align-items: center; gap: var(--space-4); padding: var(--space-5);
  border: 2px solid var(--border-color); border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}
.schedule-option input:checked + .schedule-option__card {
  border-color: var(--color-primary); background: var(--color-primary-bg);
}
.schedule-option__icon { font-size: 1.5rem; }
.schedule-option__name { font-weight: var(--weight-semibold); font-size: var(--text-base); margin-bottom: 2px; }
.schedule-option__desc { font-size: var(--text-xs); color: var(--text-tertiary); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.pricing-card {
  background: var(--bg-surface); border: 2px solid var(--border-color);
  border-radius: var(--radius-xl); padding: var(--space-8);
  display: flex; flex-direction: column; transition: all var(--transition-base);
  position: relative;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card--popular { border-color: var(--color-primary); }
.pricing-card__popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--color-primary); color: #fff; padding: 4px 16px;
  border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: var(--weight-semibold);
  white-space: nowrap;
}
.pricing-card__header { margin-bottom: var(--space-5); }
.pricing-card__name { font-size: var(--text-lg); font-weight: var(--weight-semibold); margin-bottom: var(--space-3); }
.pricing-card__price { font-size: var(--text-4xl); font-weight: var(--weight-bold); }
.pricing-card__period { font-size: var(--text-sm); color: var(--text-tertiary); }
.pricing-card__features { flex: 1; margin-bottom: var(--space-6); }
.pricing-feature { padding: var(--space-2) 0; font-size: var(--text-sm); color: var(--text-secondary); }
.pricing-feature.disabled { opacity: 0.5; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border-color); cursor: pointer; }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-4) 0; font-weight: var(--weight-medium); font-size: var(--text-sm);
}
.faq-toggle { transition: transform var(--transition-fast); font-size: var(--text-lg); color: var(--text-tertiary); }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-relaxed); padding-bottom: 0; }
.faq-item.open .faq-answer { padding-bottom: var(--space-4); }

@media (max-width: 1023px) {
  .auth-hero { display: none; }
  .auth-container { width: 100%; }
}
@media (max-width: 767px) {
  .auth-container { padding: var(--space-6); }
  .pricing-grid { grid-template-columns: 1fr; }
  .subject-selector { grid-template-columns: 1fr; }
}
