:root {
  --bg:           oklch(1.000 0.000   0);
  --surface:      oklch(0.972 0.007 210);
  --border:       oklch(0.900 0.010 210);
  --ink:          oklch(0.13  0.015 210);
  --muted:        oklch(0.50  0.010 210);
  --subtle:       oklch(0.70  0.008 210);
  --primary:      oklch(0.42  0.110 210);
  --primary-dark: oklch(0.30  0.110 210);
  --primary-mid:  oklch(0.52  0.110 210);
  --primary-light:oklch(0.94  0.028 210);
  --primary-ring: oklch(0.42  0.110 210 / 0.18);
  --font: 'Inter', system-ui, sans-serif;
}

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

body {
  font-family: var(--font); min-height: 100vh; background: var(--surface);
  color: var(--ink); display: flex; -webkit-font-smoothing: antialiased;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ── Left brand panel ──────────────────────────── */
.brand-panel {
  width: 480px; flex-shrink: 0; background: var(--primary);
  padding: 3rem; display: flex; flex-direction: column;
  justify-content: space-between; position: relative; overflow: hidden;
}
.brand-panel::before, .brand-panel::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
}
.brand-panel::before {
  width: 400px; height: 400px;
  background: oklch(0.52 0.10 210 / 0.40); bottom: -120px; right: -120px;
}
.brand-panel::after {
  width: 220px; height: 220px;
  background: oklch(0.35 0.10 210 / 0.35); top: -60px; left: -60px;
}
.brand-inner { position: relative; z-index: 1; }
.brand-logo { display: flex; align-items: center; gap: .875rem; margin-bottom: 3.5rem; }
.brand-logo img { height: 48px; width: auto; filter: brightness(0) invert(1); }
.brand-logo-text { color: #fff; font-size: .9rem; font-weight: 700; line-height: 1.3; }
.brand-logo-text small {
  display: block; font-size: .72rem; font-weight: 400;
  color: oklch(1 0 0 / 0.65); margin-top: .1rem;
}
.brand-headline {
  font-size: clamp(1.625rem, 2.5vw, 2.125rem); font-weight: 800; color: #fff;
  letter-spacing: -.035em; line-height: 1.15; margin-bottom: 1rem; text-wrap: balance;
}
.brand-desc { font-size: .875rem; color: oklch(1 0 0 / 0.72); line-height: 1.7; max-width: 36ch; }
.brand-divider { width: 40px; height: 2px; background: oklch(1 0 0 / 0.30); margin: 2.5rem 0; }
.brand-features { display: flex; flex-direction: column; gap: 1.125rem; }
.brand-feature { display: flex; align-items: flex-start; gap: .875rem; }
.bfeat-icon {
  width: 2rem; height: 2rem; background: oklch(1 0 0 / 0.12); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: .1rem;
}
.bfeat-icon svg { width: 15px; height: 15px; color: #fff; }
.bfeat-text strong { display: block; font-size: .8125rem; font-weight: 600; color: #fff; margin-bottom: .1rem; }
.bfeat-text span { font-size: .75rem; color: oklch(1 0 0 / 0.60); }

/* ── Right form panel ──────────────────────────── */
.form-panel {
  flex: 1; display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem;
}
.form-box { width: 100%; max-width: 420px; animation: slideIn .4s ease-out both; }
.mobile-brand { display: none; text-align: center; margin-bottom: 2rem; }
.mobile-brand img { height: 48px; margin: 0 auto .875rem; }
.mobile-brand h1 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.025em; }
.mobile-brand p { font-size: .8125rem; color: var(--muted); margin-top: .25rem; }
.form-heading { margin-bottom: 2.25rem; }
.form-heading h1 {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; margin-bottom: .375rem;
}
.form-heading p { font-size: .875rem; color: var(--muted); }

.field { display: flex; flex-direction: column; gap: .375rem; margin-bottom: 1.125rem; }
.field label { font-size: .8125rem; font-weight: 600; color: var(--ink); }
.input-wrap { position: relative; }
.input-wrap .ico {
  position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
  color: var(--subtle); width: 16px; height: 16px; pointer-events: none;
}
.input-wrap input {
  width: 100%; padding: .7rem .9rem .7rem 2.6rem;
  border: 1.5px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: .9375rem;
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.input-wrap input::placeholder { color: var(--subtle); }
.input-wrap input:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3.5px var(--primary-ring);
}
.input-wrap .eye-btn {
  position: absolute; right: .875rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--subtle);
  padding: .25rem; border-radius: 4px; transition: color .15s;
  display: flex; align-items: center;
}
.input-wrap .eye-btn:hover { color: var(--ink); }
.input-wrap .eye-btn svg { width: 16px; height: 16px; }

.options-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.625rem; }
.checkbox-label {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8125rem; color: var(--muted); cursor: pointer; user-select: none;
}
.checkbox-label input[type="checkbox"] { accent-color: var(--primary); width: 15px; height: 15px; }
.forgot-link { font-size: .8125rem; color: var(--primary); text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }

.btn-submit {
  width: 100%; padding: .8rem; background: var(--primary); color: #fff;
  font-family: var(--font); font-size: .9375rem; font-weight: 700;
  border: none; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 2px 10px oklch(0.42 0.11 210 / 0.32); letter-spacing: -.01em;
}
.btn-submit:hover {
  background: var(--primary-dark); transform: translateY(-1px);
  box-shadow: 0 5px 18px oklch(0.42 0.11 210 / 0.38);
}
.btn-submit:active { transform: translateY(0); box-shadow: none; }

.form-links {
  margin-top: 1.875rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; justify-content: center; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.form-links a {
  font-size: .8125rem; color: var(--muted); text-decoration: none;
  display: flex; align-items: center; gap: .35rem; transition: color .15s;
}
.form-links a:hover { color: var(--ink); }
.form-links a svg { width: 13px; height: 13px; }

@media (max-width: 860px) {
  .brand-panel { display: none; }
  .mobile-brand { display: block; }
  .form-heading { display: none; }
}
@media (max-width: 480px) {
  .form-panel { padding: 1.5rem 1.25rem; align-items: flex-start; padding-top: 2rem; }
  body { background: var(--bg); }
}

/* reCAPTCHA */
.captcha-wrap {
  margin: 6px 0 18px;
  min-height: 78px;
}
@media (max-width: 340px) {
  .captcha-wrap .g-recaptcha {
    transform: scale(.85);
    transform-origin: 0 0;
  }
}
