:root {
  --bg: #f8f7f4;
  --white: #ffffff;
  --ink: #0f0e0c;
  --ink2: #3a3834;
  --muted: #8c8880;
  --border: #e4e2dc;
  --accent: #1a6bff;
  --accent-light: #eff4ff;
  --accent-dark: #1258d4;
  --green: #00a878;
  --green-light: #edfaf5;
  --yellow: #f5c842;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  --r: 12px;
  --r-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
}

a { color: inherit; text-decoration: none; }

/* ─── LAYOUT ─── */
.signin-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ─── LEFT PANEL (form) ─── */
.signin-left {
  flex: 0 0 480px;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 3rem;
  background: var(--white);
  border-right: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.signin-logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: auto;
}

.signin-form-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0;
}

.signin-heading {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.signin-heading em { font-style: normal; color: var(--accent); }

.signin-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ─── FORM ─── */
.field {
  margin-bottom: 0.75rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink2);
  margin-bottom: 0.4rem;
}

.field input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,107,255,0.1);
  background: var(--white);
}

.field input::placeholder { color: var(--muted); }

.btn-submit {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--r);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  margin-top: 0.25rem;
}

.btn-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,107,255,0.3);
}

.btn-submit:active { transform: translateY(0); }

/* ─── CODE STEP (hidden by default) ─── */
.step { display: none; }
.step.active { display: block; }

.code-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.code-hint span {
  color: var(--ink2);
  font-weight: 600;
}

.code-inputs {
  display: flex;
  gap: 0.5rem;
  max-width: 320px;
  margin-bottom: 0.75rem;
}

.code-inputs input {
  flex: 1;
  padding: 0.85rem 0.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  min-width: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.code-inputs input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,107,255,0.1);
  background: var(--white);
}

.resend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.resend-btn {
  background: none;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
}

.resend-btn:hover { text-decoration: underline; }

.back-btn {
  background: none;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.back-btn:hover { color: var(--ink2); }

/* ─── DIVIDER ─── */
.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

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

.divider span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── GOOGLE BUTTON ─── */
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink2);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.btn-google:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.btn-google svg {
  flex-shrink: 0;
}

/* ─── FOOTER TEXT ─── */
.signin-footer-text {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}

.signin-footer-text a {
  color: var(--ink2);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--border);
}

.signin-footer-text a:hover { text-decoration-color: var(--ink2); }

/* ─── RIGHT PANEL (social proof) ─── */
.signin-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5rem;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.signin-right::before {
  content: '';
  position: absolute; top: -200px; right: -100px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,107,255,0.2) 0%, transparent 65%);
  pointer-events: none;
}

.signin-right::after {
  content: '';
  position: absolute; bottom: -150px; left: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,200,66,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.proof-stat-big {
  position: relative;
  margin-bottom: 3.5rem;
}

.proof-stat-big strong {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.proof-stat-big strong em {
  font-style: normal;
  color: var(--yellow);
}

.proof-stat-big p {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  max-width: 360px;
  line-height: 1.6;
}

.testimonial-card {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 1.75rem 2rem;
  max-width: 480px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.author-title {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.stars {
  color: var(--yellow);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .signin-right { display: none; }
  .signin-left {
    flex: 1;
    overflow: hidden;
    padding: 2rem 1.75rem;
    border-right: none;
  }
}
