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

:root {
  --blue: #1a6ef5;
  --blue-dark: #0d5ee0;
  --navy: #0f1c3f;
  --text: #1a2340;
  --muted: #5a6580;
  --border: #e4e9f2;
  --bg: #f5f7fa;
  --white: #fff;
}

html, body { height: 100%; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
}

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

/* ── SPLIT LAYOUT ── */
.login-left {
  flex: 0 0 480px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: 40px 56px;
  position: relative;
  z-index: 1;
}

.login-right {
  flex: 1;
  background: linear-gradient(160deg, var(--navy) 0%, #162d6e 55%, #1a3a8a 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}

/* grid overlay */
.login-right::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* radial glow */
.login-right::after {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,110,245,.3) 0%, transparent 70%);
  pointer-events: none;
}

/* ── LEFT: LOGO + FORM ── */
.login-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: auto;
}

.login-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.login-form-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
}

.form-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: #eef3fe;
  color: var(--blue);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 20px;
  width: fit-content;
}

.form-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}

.form-title {
  font-size: 28px; font-weight: 800; color: var(--navy);
  letter-spacing: -.02em; line-height: 1.15; margin-bottom: 8px;
}

.form-sub {
  font-size: 14px; color: var(--muted); margin-bottom: 36px; line-height: 1.6;
}

.form-sub a { color: var(--blue); font-weight: 600; }
.form-sub a:hover { text-decoration: underline; }

/* fields */
.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 12.5px; font-weight: 700; color: var(--navy);
  letter-spacing: .03em; margin-bottom: 7px;
}

.field input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14.5px; font-family: inherit; color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.field input::placeholder { color: #b0b8cc; }

.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,110,245,.1);
}

/* password wrapper */
.field-pass { position: relative; }

.field-pass input { padding-right: 46px; }

.pass-toggle {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #b0b8cc; padding: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s;
}

.pass-toggle:hover { color: var(--muted); }

.pass-toggle svg {
  width: 18px; height: 18px; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* row */
.field-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 26px; gap: 12px;
}

.checkbox-wrap {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
}

.checkbox-wrap input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}

.checkbox-wrap span {
  font-size: 13px; color: var(--muted); font-weight: 500;
}

.forgot-link {
  font-size: 13px; font-weight: 600; color: var(--blue);
  transition: opacity .15s;
}
.forgot-link:hover { opacity: .75; text-decoration: underline; }

/* submit btn */
.btn-submit {
  width: 100%;
  padding: 13px;
  background: var(--blue); color: var(--white);
  border: none; border-radius: 10px;
  font-size: 14px; font-weight: 700; font-family: inherit;
  letter-spacing: .05em; text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(26,110,245,.35);
}

.btn-submit:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(26,110,245,.45);
}

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

/* error messages */
.field-error {
  margin-top: 6px;
  font-size: 12px;
  color: #e53e3e;
  font-weight: 500;
}

/* session status */
.session-status {
  margin-bottom: 20px;
  padding: 10px 14px;
  background: #eef8f0;
  border: 1px solid #86efac;
  border-radius: 8px;
  font-size: 13px;
  color: #166534;
  font-weight: 500;
}

/* signup link */
.signup-prompt {
  margin-top: 28px;
  text-align: center;
  font-size: 13.5px; color: var(--muted);
}

.signup-prompt a {
  color: var(--blue); font-weight: 700;
  margin-left: 4px;
}

.signup-prompt a:hover { text-decoration: underline; }

/* footer note */
.login-footer-note {
  margin-top: auto;
  font-size: 12px; color: #c0c8d8; line-height: 1.6;
  text-align: center;
}

.login-footer-note a { color: #b0b8cc; }
.login-footer-note a:hover { color: var(--muted); }

/* ── RIGHT: FEATURE PREVIEW ── */
.right-inner {
  position: relative; z-index: 1;
  max-width: 420px; width: 100%;
}

.right-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(26,110,245,.18);
  border: 1px solid rgba(26,110,245,.35);
  color: #7fb5ff;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 20px; margin-bottom: 24px;
}

.right-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #34d399;
    box-shadow: 0 0 6px #34d399;
}

.right-title {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 800; color: var(--white);
  line-height: 1.15; letter-spacing: -.02em;
  margin-bottom: 14px;
}

.right-title span {
  background: linear-gradient(90deg, #5ca0ff, #7fd4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.right-sub {
  font-size: 14.5px; color: rgba(255,255,255,.5);
  line-height: 1.7; margin-bottom: 36px;
}

/* demo card */
.demo-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  padding: 24px;
  margin-bottom: 28px;
}

.demo-card-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 14px;
}

.demo-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 13px;
}

.demo-row:last-child { border-bottom: none; }

.demo-key { color: rgba(255,255,255,.4); }
.demo-val { color: var(--white); font-weight: 500; }
.demo-val.ok { color: #34d399; font-weight: 700; }

/* perks */
.perks { display: flex; flex-direction: column; gap: 12px; }

.perk {
  display: flex; align-items: flex-start; gap: 12px;
}

.perk-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  background: rgba(26,110,245,.18);
  border: 1px solid rgba(26,110,245,.3);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}

.perk-icon svg {
  width: 16px; height: 16px; stroke: #7fb5ff; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.perk-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.perk-text span { font-size: 12px; color: rgba(255,255,255,.45); line-height: 1.5; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  body { flex-direction: column; }
  .login-left { flex: none; padding: 32px 28px; min-height: 100vh; }
  .login-right { display: none; }
}

@media (max-width: 480px) {
  .login-left { padding: 28px 20px; }
  .form-title { font-size: 24px; }
}
