/* ============================================================
   onboarding.css — Onboarding flow styles (RoamSmart)
   Covers: account creation, password reset, login pages
   ============================================================ */

/* --- Shell layout ------------------------------------------------ */
.onboarding-shell {
  display: flex;
  min-height: 100vh;
}

/* Left panel */
.onboarding-panel--left {
  width: 45%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  color: #f0f0f5;
  padding: 48px 48px 48px 56px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.onboarding-panel--left::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.onboarding-panel--left::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 179, 237, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Right panel */
.onboarding-panel--right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: #f8f7fc;
}

/* Centered panel (reset password) */
.onboarding-panel--centered {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: #f8f7fc;
}

/* --- Left panel content ----------------------------------------- */
.ob-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(240, 240, 245, 0.6);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 64px;
  transition: color 0.2s;
}

.ob-back:hover { color: #f0f0f5; }

.ob-intent { position: relative; z-index: 1; }

.ob-step-label {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(236, 72, 153, 0.85);
  margin-bottom: 16px;
}

.ob-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.15;
  color: #f0f0f5;
  margin: 0 0 16px;
}

.ob-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: rgba(240, 240, 245, 0.7);
  line-height: 1.6;
  margin: 0 0 40px;
}

.ob-dest-preview {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.ob-dest-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(236, 72, 153, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ec4899;
  flex-shrink: 0;
}

.ob-budget-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(240, 240, 245, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.ob-budget-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: #f0f0f5;
}

.ob-destinations-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(240, 240, 245, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.ob-destinations-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ob-dest-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(240, 240, 245, 0.7);
}

.ob-dest-item svg { color: rgba(236, 72, 153, 0.6); flex-shrink: 0; }
.ob-dest-item--none { font-style: italic; }

/* --- Right panel form ------------------------------------------- */
.ob-form-wrap {
  width: 100%;
  max-width: 400px;
}

.ob-form-header {
  text-align: center;
  margin-bottom: 40px;
}

.ob-logo {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  display: block;
  border-radius: 12px;
}

.ob-form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 8px;
}

.ob-form-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #6b6b80;
  margin: 0;
}

.ob-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  margin-bottom: 24px;
}

.ob-error--pending {
  background: #fffaf0;
  border-color: #f2d28a;
  color: #7d6330;
}

.ob-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ob-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ob-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #3d3d52;
}

.ob-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d4d4e0;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #1a1a2e;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.ob-input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.ob-input::placeholder { color: #b0b0c0; }

.ob-hint {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #8888a0;
}

.ob-consent {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #6b6b80;
  font-size: 12px;
  line-height: 1.6;
}

.ob-consent a {
  color: #5b21b6;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ob-marketing-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
}

.ob-marketing-consent input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: #7c3aed;
}

.ob-consent a:focus-visible,
.ob-marketing-consent input:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.35);
  outline-offset: 3px;
}

.ob-submit {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
  margin-top: 4px;
}

.ob-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

.ob-submit:active:not(:disabled) { transform: translateY(0); }
.ob-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.ob-submit--link {
  display: block;
  text-align: center;
  text-decoration: none;
}

.ob-alt-link {
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #6b6b80;
  margin-top: 20px;
}

.ob-link {
  color: #7c3aed;
  text-decoration: none;
  font-weight: 500;
}

.ob-link:hover { text-decoration: underline; }

/* --- Responsive -------------------------------------------------- */
@media (max-width: 768px) {
  .onboarding-shell { flex-direction: column; }

  .onboarding-panel--left {
    width: 100%;
    padding: 40px 32px;
  }

  .onboarding-panel--right,
  .onboarding-panel--centered {
    padding: 40px 24px;
  }

  .ob-title { font-size: 32px; }
}
