/* ─── Login page (new split layout) ────────────────────────── */
/* Signup page uses .login-shell / .login-card (kept below)    */

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

.login-body {
  margin: 0;
  font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #fff;
  color: #0F0A1E;
}

/* ── Split layout ─────────────────────────────────────────── */
.login-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: 100vh;
}

/* ── Brand / left panel ───────────────────────────────────── */
.login-brand {
  background: linear-gradient(160deg, #3B0764 0%, #5B21B6 55%, #7C3AED 100%);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
}

.login-brand::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(249,115,22,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.login-brand::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(167,139,250,0.15) 0%, transparent 65%);
  pointer-events: none;
}

.lb-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.lb-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.lb-hero {
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.lb-hero h2 {
  font-size: 1.85rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}

.lb-hero p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin: 0;
  max-width: 300px;
}

.lb-stats {
  display: flex;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  position: relative;
  z-index: 1;
}

.lb-stat {
  flex: 1;
  display: grid;
  gap: 4px;
  padding-right: 16px;
}

.lb-stat:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.12);
  margin-right: 16px;
}

.lb-stat-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: #F97316;
  letter-spacing: -0.03em;
  line-height: 1;
}

.lb-stat small {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.3;
}

.lb-trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.lb-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

.lb-footer {
  margin-top: 32px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  position: relative;
  z-index: 1;
}

/* ── Form / right panel ───────────────────────────────────── */
.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #fff;
}

.login-form-wrap {
  width: min(400px, 100%);
}

/* Header */
.lf-header {
  margin-bottom: 28px;
}

.lf-header h1 {
  font-size: 1.9rem;
  font-weight: 900;
  color: #0F0A1E;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.lf-subtitle {
  font-size: 0.9rem;
  color: #5B6B8A;
  line-height: 1.55;
  margin: 0;
}

/* Success */
.lf-success {
  padding: 12px 14px;
  border: 1px solid rgba(5,150,105,0.25);
  border-radius: 10px;
  background: rgba(5,150,105,0.07);
  color: #065F46;
  font-size: 0.875rem;
  margin-bottom: 20px;
  line-height: 1.45;
}

/* Error */
.lf-error {
  padding: 12px 14px;
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 10px;
  background: rgba(239,68,68,0.06);
  color: #B91C1C;
  font-size: 0.875rem;
  margin-bottom: 20px;
  line-height: 1.45;
}

/* Form */
.lf-form {
  display: grid;
  gap: 18px;
}

.lf-field {
  display: grid;
  gap: 7px;
}

.lf-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0F0A1E;
  letter-spacing: 0.01em;
}

.lf-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lf-label-row label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0F0A1E;
}

.lf-forgot-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: #5B21B6;
  padding: 0;
  transition: color 120ms;
}
.lf-forgot-link:hover { color: #4C1D95; text-decoration: underline; }

/* Password field with toggle */
.lf-pw-wrap {
  position: relative;
}

.lf-pw-wrap input {
  width: 100%;
  padding-right: 44px;
}

.lf-pw-toggle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #9BA8C0;
  transition: color 120ms;
  font-family: inherit;
}
.lf-pw-toggle:hover { color: #5B21B6; }

/* Inputs */
.lf-form input[type="text"],
.lf-form input[type="password"],
.lf-form input[type="email"] {
  width: 100%;
  height: 48px;
  border: 1.5px solid rgba(91,33,182,0.18);
  border-radius: 10px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 0.92rem;
  color: #0F0A1E;
  background: #FAFAFE;
  transition: border-color 150ms, box-shadow 150ms;
  outline: none;
}

.lf-form input:focus {
  border-color: #5B21B6;
  box-shadow: 0 0 0 3px rgba(91,33,182,0.10);
  background: #fff;
}

.lf-form input::placeholder { color: #C4CCDB; }

/* Primary button */
.lf-btn-primary {
  width: 100%;
  height: 52px;
  background: #5B21B6;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(91,33,182,0.30);
  transition: background 150ms, transform 150ms, box-shadow 150ms;
  margin-top: 4px;
}
.lf-btn-primary:hover {
  background: #4C1D95;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(91,33,182,0.38);
}
.lf-btn-primary:active { transform: translateY(0); }

/* Signup prompt */
.lf-signup-prompt {
  text-align: center;
  font-size: 0.85rem;
  color: #9BA8C0;
  margin: 22px 0 0;
}
.lf-signup-prompt a {
  color: #5B21B6;
  font-weight: 700;
  text-decoration: none;
}
.lf-signup-prompt a:hover { text-decoration: underline; }

/* ── Forgot password panel ──────────────────────────────────── */
[hidden] { display: none !important; }
.lf-forgot-panel { display: grid; gap: 20px; }

.lf-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #5B6B8A;
  padding: 0;
  transition: color 120ms;
}
.lf-back-btn:hover { color: #0F0A1E; }

.lf-btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,211,102,0.30);
  transition: background 150ms, transform 150ms;
}
.lf-btn-whatsapp:hover {
  background: #1DAA54;
  transform: translateY(-1px);
}

.lf-reset-sent-icon {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

/* ─── Signup page additions ────────────────────────────────── */

/* Staggered fade-up animation */
@keyframes su-fadein {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.su-anim {
  opacity: 0;
  animation: su-fadein 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0ms);
}

/* Scrollable form panel for taller signup form */
.su-form-panel {
  align-items: flex-start;
  padding-top: 48px;
  padding-bottom: 48px;
}

/* Sticky brand panel so it stays visible while form scrolls */
.login-layout .login-brand {
  position: sticky;
  top: 0;
  height: 100vh;
}

.su-form-wrap {
  width: min(440px, 100%);
  padding-bottom: 16px;
}

/* Country + phone side-by-side */
.su-row {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 14px;
}

/* Styled select (matches lf-form inputs) */
.su-select {
  width: 100%;
  height: 48px;
  border: 1.5px solid rgba(91,33,182,0.18);
  border-radius: 10px;
  padding: 0 36px 0 14px;
  font-family: inherit;
  font-size: 0.92rem;
  color: #0F0A1E;
  background: #FAFAFE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%239BA8C0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
}

.su-select:focus {
  border-color: #5B21B6;
  box-shadow: 0 0 0 3px rgba(91,33,182,0.10);
  background-color: #fff;
}

/* Optional label tag */
.su-optional {
  font-weight: 400;
  color: #9BA8C0;
  font-size: 0.78rem;
}

/* Sign in inline link */
.su-signin-link {
  color: #5B21B6;
  font-weight: 700;
  text-decoration: none;
}
.su-signin-link:hover { text-decoration: underline; }

/* Back to homepage row */
.su-back-row {
  margin-top: 20px;
  text-align: center;
}

.su-back-link {
  font-size: 0.85rem;
  color: #9BA8C0;
  text-decoration: none;
  font-weight: 500;
  transition: color 120ms;
}
.su-back-link:hover { color: #5B21B6; }

/* Disabled submit state */
.lf-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

/* Steps on brand panel */
.su-steps {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.su-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.38);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.su-step--active {
  color: rgba(255,255,255,0.92);
}

.su-step-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255,255,255,0.38);
  flex-shrink: 0;
  transition: background 200ms;
}

.su-step--active .su-step-num {
  background: #F97316;
  border-color: #F97316;
  color: #fff;
  box-shadow: 0 0 12px rgba(249,115,22,0.5);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 820px) {
  .login-layout {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }

  .login-brand {
    padding: 28px 24px;
    min-height: auto;
  }

  .lb-hero { margin-top: 24px; }
  .lb-hero h2 { font-size: 1.4rem; }

  .lb-stats { margin-top: 20px; padding-top: 16px; }
  .lb-stat-num { font-size: 1.1rem; }

  .lb-trust { flex-direction: row; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
  .lb-footer { margin-top: 16px; }

  .login-form-panel { padding: 36px 20px; }
  .su-form-panel { padding-top: 32px; padding-bottom: 32px; }
  .su-row { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════
   SIGNUP PAGE — legacy classes (login.css is shared)
   ════════════════════════════════════════════════════════════ */

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--color-page, #faf8f5);
  color: var(--color-text, #2a2418);
  font-family: var(--font-body, system-ui, sans-serif);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--space-lg, 24px);
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: var(--space-md, 16px);
  padding: var(--space-xl, 32px);
  border: 1px solid var(--color-line, #e5e0d8);
  border-radius: var(--radius-lg, 12px);
  background: var(--color-surface, #fff);
}

.signup-card { width: min(560px, 100%); gap: var(--space-lg, 24px); }

.login-brand-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm, 12px);
  font-size: var(--text-xl, 1.5rem);
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--radius-md, 8px);
  background: var(--color-accent, #c0583a);
  color: var(--color-page, #faf8f5);
  font-weight: 900;
}

.login-card h1,
.login-card p { margin: 0; }
.login-card h1 { text-align: center; }
.login-card p { color: var(--color-muted, #5e5648); line-height: 1.45; text-align: center; }
.login-card p a { color: var(--color-accent, #c0583a); font-weight: 900; }

.login-card label {
  display: grid;
  gap: var(--space-xs, 8px);
  color: var(--color-muted, #5e5648);
  font-weight: 800;
}

.login-card input,
.login-card select {
  min-height: 48px;
  border: 1px solid var(--color-line-strong, #ccc7bc);
  border-radius: var(--radius-md, 8px);
  padding: 0 var(--space-sm, 12px);
  background: var(--color-surface-2, #f7f4ef);
  color: var(--color-text, #2a2418);
  font: inherit;
}

.signup-row {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: var(--space-md, 16px);
}

.login-card input:focus-visible,
.login-card select:focus-visible,
.login-card button:focus-visible {
  outline: 2px solid var(--color-focus, #c0583a);
  outline-offset: 2px;
}

.login-card button {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-md, 8px);
  background: var(--color-accent, #c0583a);
  color: var(--color-page, #faf8f5);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.login-error {
  padding: var(--space-sm, 12px);
  border: 1px solid color-mix(in oklch, var(--color-danger, #d94c2a), transparent 35%);
  border-radius: var(--radius-md, 8px);
  color: var(--color-danger, #d94c2a);
  background: color-mix(in oklch, var(--color-danger, #d94c2a), transparent 88%);
}

.login-links { text-align: center; }
.login-links a { color: var(--color-accent, #c0583a); font-weight: 900; }

@media (max-width: 620px) {
  .login-shell { padding: var(--space-sm, 12px); }
  .login-card { padding: var(--space-lg, 24px); }
  .signup-row { grid-template-columns: 1fr; }
}
