@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:         #E85520;
  --blue-btn:       #3B3BDB;
  --text-primary:   #1a1a2e;
  --text-secondary: #5a5a72;
  --text-muted:     #8888a0;
  --border:         #d6d6e7;
  --error-bg:       #fef2f2;
  --error-border:   #fca5a5;
  --error-text:     #dc2626;
  --font:           'Inter', system-ui, sans-serif;
  --radius:         8px;
}

html, body {
  height: 100%;
  font-family: var(--font);
  color: var(--text-primary);
  background: #fff;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.split-layout {
  flex: 1 0 auto;
  display: flex;
  flex-direction: row;
}

.left-panel {
  flex: 0 0 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  position: relative;
}

.right-panel {
  flex: 0 0 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
}

.page-footer {
  flex-shrink: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links { display: flex; gap: 20px; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
}
.footer-links a:hover { color: var(--text-primary); }

/* ── Logo ────────────────────────────────────────────────────────────────── */
.logo-wrap {
  position: absolute;
  top: 24px;
  left: 32px;
}
.logo-wrap img {
  height: 32px;
  width: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  background: #fff;
}
.logo-wrap .logo-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  display: inline-block;
}

/* ── Form area ───────────────────────────────────────────────────────────── */
.form-area {
  width: 100%;
  max-width: 360px;
}

.form-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text-primary);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .15s;
}
.form-input:focus { border-color: var(--blue-btn); box-shadow: 0 0 0 3px rgba(59,59,219,.1); }
.form-input::placeholder { color: var(--text-muted); }

.btn-primary {
  width: 100%;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  color: #fff;
  background: var(--blue-btn);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s, opacity .15s;
  margin-top: 8px;
}
.btn-primary:hover { background: #2c2cc0; }
.btn-primary:active { opacity: .9; }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

/* ── Remember checkbox ───────────────────────────────────────────────────── */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}
.checkbox-row input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue-btn);
  cursor: pointer;
}

/* ── Links ───────────────────────────────────────────────────────────────── */
.link-sm {
  font-size: 14px;
  color: var(--blue-btn);
  text-decoration: none;
  font-weight: 500;
}
.link-sm:hover { text-decoration: underline; }

.signup-row {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── User email display ──────────────────────────────────────────────────── */
.user-email-display {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.change-email-link {
  font-size: 13px;
  color: var(--blue-btn);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 20px;
}
.change-email-link:hover { text-decoration: underline; }

/* ── Divider ─────────────────────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 13px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Social buttons ──────────────────────────────────────────────────────── */
.btn-social {
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  color: var(--text-primary);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .15s;
  margin-bottom: 10px;
  text-decoration: none;
}
.btn-social:hover { background: #f5f5ff; }

.btn-social-intuit {
  color: #236cff;
  border-color: #236cff;
}
.btn-social-intuit:hover { background: #f0f5ff; }

/* ── Forgot password ─────────────────────────────────────────────────────── */
.forgot-link {
  display: block;
  font-size: 13px;
  color: var(--blue-btn);
  text-decoration: none;
  margin-top: 8px;
}
.forgot-link:hover { text-decoration: underline; }

/* ── Error/Alert ─────────────────────────────────────────────────────────── */
#fc-error {
  display: none;
  padding: 12px 16px;
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: var(--radius);
  color: var(--error-text);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
#fc-error.hidden { display: none; }
#fc-error .err-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ── Waiting spinner ─────────────────────────────────────────────────────── */
#fc-waiting {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 0;
  text-align: center;
}
#fc-waiting.visible { display: flex; }
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--blue-btn);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.waiting-text { font-size: 15px; color: var(--text-secondary); }

/* ── Right panel ─────────────────────────────────────────────────────────── */
.rp-inner {
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.rp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(255,255,255,.7);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #fff;
  margin-bottom: 40px;
}

.rp-headline {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 32px;
}
.rp-headline strong { color: #fff; }

.rp-bullets { list-style: none; margin-bottom: 48px; }
.rp-bullets li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
  color: #fff;
  margin-bottom: 14px;
  font-weight: 500;
}

.rp-check {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rp-check svg { width: 15px; height: 15px; }

.rp-disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
  margin-top: 8px;
}

/* ── OTP input ───────────────────────────────────────────────────────────── */
.otp-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .split-layout { flex-direction: column; }
  .left-panel, .right-panel { flex: 0 0 auto; width: 100%; }
  .right-panel { padding: 48px 32px; }
  .rp-headline { font-size: 28px; }
}

@media (max-width: 599px) {
  .left-panel  { padding: 40px 20px; }
  .right-panel { padding: 40px 20px; }
  .form-title  { font-size: 22px; }
  .rp-headline { font-size: 24px; }
  .page-footer { flex-direction: column; gap: 8px; text-align: center; }
}
