/* ============================================
   WealthPilot — Auth & Onboarding Styles
   ============================================ */

/* --- Auth Layout --- */
.auth-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-lighter);
  padding: var(--space-4);
}

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

.auth-logo {
  display: block;
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-8);
  text-decoration: none;
}

.auth-card {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8);
}

.auth-card-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.auth-card-header h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.auth-card-header p {
  font-size: var(--text-sm);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-6) 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

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

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

.auth-footer a {
  color: var(--color-accent);
  font-weight: var(--weight-semibold);
}

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

/* --- Demo credentials box --- */
.demo-credentials {
  background: rgba(0, 200, 83, 0.06);
  border: 1px solid rgba(0, 200, 83, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  font-size: var(--text-xs);
}

.demo-credentials strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.demo-credentials code {
  font-family: var(--font-mono);
  background: rgba(0, 200, 83, 0.1);
  padding: 1px 4px;
  border-radius: 3px;
  color: var(--color-primary);
}

/* --- Onboarding Wizard --- */
.onboarding-layout {
  min-height: 100vh;
  background: var(--color-lighter);
  padding: var(--space-8) var(--space-4);
}

.onboarding-container {
  max-width: 640px;
  margin: 0 auto;
}

.onboarding-card {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8);
  min-height: 400px;
}

/* Justine avatar */
.justine-bubble {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: rgba(0, 200, 83, 0.06);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 200, 83, 0.15);
}

.justine-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.justine-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.justine-name {
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  font-size: var(--text-sm);
  margin-bottom: 2px;
}

/* Risk questionnaire */
.risk-question {
  margin-bottom: var(--space-6);
}

.risk-question h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
}

.risk-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.risk-option:hover {
  border-color: var(--color-accent);
  background: rgba(0, 200, 83, 0.04);
}

.risk-option.selected {
  border-color: var(--color-accent);
  background: rgba(0, 200, 83, 0.06);
}

.risk-option input {
  accent-color: var(--color-accent);
}

/* Risk result */
.risk-result {
  text-align: center;
  padding: var(--space-8);
}

.risk-result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.risk-result-name {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.risk-result-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  max-width: 400px;
  margin: 0 auto;
}

/* Onboarding nav */
.onboarding-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-light);
}

/* --- Verification code input --- */
.code-inputs {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  margin: var(--space-6) 0;
}

.code-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  outline: none;
}

.code-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.12);
}
