:root {
  --background: #070a0f;
  --panel: #0d131b;
  --card: rgba(17, 24, 34, 0.86);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.3);
  --text: #f2f5f8;
  --muted: #8d9aab;
  --accent: #82aaff;
  --accent-strong: #5d8ff5;
  --danger: #ff858d;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--background);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--background); }
button, input { font: inherit; }

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 1.12fr) minmax(440px, 0.88fr);
}

.product-panel {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(32px, 5vw, 72px);
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 12%, rgba(75, 116, 196, 0.24), transparent 38%),
    radial-gradient(circle at 88% 82%, rgba(62, 178, 165, 0.12), transparent 31%),
    linear-gradient(145deg, #0e1622, #080c12 62%);
}

.product-panel::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.16;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom right, black, transparent 74%);
}

.brand, .auth-footer { position: relative; z-index: 1; }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand-mark { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(255,255,255,.06); color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .08em; box-shadow: 0 14px 32px rgba(0,0,0,.28); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: -.01em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.product-copy { position: relative; z-index: 1; width: min(620px, 100%); margin: 70px 0; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 11px; font-weight: 780; letter-spacing: .14em; text-transform: uppercase; }
.product-copy h1 { margin: 0; font-size: clamp(38px, 5vw, 70px); font-weight: 650; letter-spacing: -.055em; line-height: .99; }
.product-copy > p:last-child { max-width: 560px; margin: 25px 0 0; color: #a7b2c1; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.65; }

.feature-list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feature-list > div { min-width: 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.feature-list span { color: var(--accent); font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.feature-list p { margin: 10px 0 0; }
.feature-list strong, .feature-list small { display: block; }
.feature-list strong { font-size: 13px; }
.feature-list small { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.45; }

.auth-panel { display: grid; min-height: 100vh; place-items: center; padding: clamp(24px, 5vw, 76px); background: radial-gradient(circle at 100% 0, rgba(130,170,255,.08), transparent 33%), #090d13; }
.auth-card { width: min(430px, 100%); }
.auth-heading h2 { margin: 0; font-size: clamp(30px, 3.4vw, 43px); font-weight: 650; letter-spacing: -.04em; }
.auth-heading > p:last-child { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

form { display: grid; gap: 19px; margin-top: 38px; }
label { display: grid; gap: 9px; color: #b8c2d0; font-size: 12px; font-weight: 650; }
input { width: 100%; height: 54px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 13px; outline: none; background: #0c121a; color: var(--text); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
input::placeholder { color: #596576; }
input:hover { border-color: rgba(148, 163, 184, .46); }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(130,170,255,.11); background: #0e151f; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 92px; }
.password-field button { position: absolute; top: 50%; right: 9px; min-height: 36px; padding: 0 9px; transform: translateY(-50%); border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.password-field button:hover { background: rgba(255,255,255,.05); color: var(--text); }
.form-status { min-height: 18px; margin: -6px 0 -4px; color: var(--danger); font-size: 12px; line-height: 1.45; }
.form-status.success { color: #69dbb2; }
.submit-button { display: flex; height: 56px; align-items: center; justify-content: space-between; padding: 0 20px; border: 1px solid transparent; border-radius: 13px; background: var(--accent); color: #07101f; font-weight: 760; cursor: pointer; box-shadow: 0 14px 36px rgba(80, 125, 219, .24); transition: transform .16s ease, background .16s ease; }
.submit-button:hover { transform: translateY(-1px); background: #94b6ff; }
.submit-button:disabled { cursor: wait; opacity: .68; transform: none; }

.auth-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.auth-footer span { display: inline-flex; align-items: center; gap: 7px; }
.auth-footer i { width: 7px; height: 7px; border-radius: 999px; background: #57d6a5; box-shadow: 0 0 0 4px rgba(87,214,165,.1); }
.auth-footer a { color: #aebbd0; font-weight: 650; text-decoration: none; }
.auth-footer a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .product-panel { min-height: auto; padding: 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .product-copy { margin: 65px 0 30px; }
  .product-copy h1 { font-size: clamp(34px, 9vw, 58px); }
  .feature-list { display: none; }
  .auth-panel { min-height: auto; padding: 52px 24px 64px; }
}

@media (max-width: 520px) {
  .product-panel { padding: 22px 20px 24px; }
  .product-copy { margin: 48px 0 5px; }
  .product-copy > p:last-child { font-size: 14px; }
  .auth-panel { padding: 42px 20px 52px; }
  .auth-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
