/* ============================================
   Life OS - Auth & Onboarding Styles
   ============================================ */

/* ----------------------
   Auth Layout
   ---------------------- */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: var(--bg);
}

.auth-left {
  flex: 1;
  background: linear-gradient(135deg, #5B5FEF 0%, #7C3AED 50%, #4338CA 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  top: -100px; right: -100px;
}

.auth-left::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  bottom: 40px; left: 40px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.auth-brand-mark {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  backdrop-filter: blur(10px);
}

.auth-brand-text {
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
}

.auth-headline {
  font-family: 'Sora', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  max-width: 380px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.auth-subline {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  max-width: 340px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}

.auth-feature-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.auth-right {
  width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--bg-card);
}

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

.auth-form-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-form-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

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

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

.auth-link {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 20px;
}

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

.password-input-wrap {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  padding: 4px;
}

/* ----------------------
   Onboarding
   ---------------------- */
.onboarding-body {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.onboarding-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.onboarding-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.onboarding-progress-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  max-width: 400px;
  margin: 0 auto;
}

.onboarding-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.onboarding-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.onboarding-step-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.onboarding-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.onboarding-step {
  width: 100%;
  max-width: 680px;
  display: none;
  animation: pageFadeIn 0.3s ease;
}

.onboarding-step.active { display: block; }

.onboarding-step-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.onboarding-step-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.type-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.type-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-card);
}

.type-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.type-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.type-card-icon { font-size: 2.2rem; margin-bottom: 12px; display: block; }
.type-card-title { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.type-card-desc { font-size: 0.8rem; color: var(--text-muted); }

.onboarding-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .auth-left { display: none; }
  .auth-right { width: 100%; padding: 32px 24px; }
  .type-selector { grid-template-columns: 1fr; }
  .onboarding-header { padding: 16px 20px; }
  .onboarding-content { padding: 24px 20px; }
}
