:root {
  --bg: #0a0a0a;
  --surface: #151515;
  --surface2: #1e1e1e;
  --line: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: #9a9a9a;
  --blue: #2e5bff;
  --blue-press: #234bdb;
  --sans: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }

.auth-shell { min-height: 100svh; display: grid; grid-template-columns: 1.05fr 0.95fr; }
.auth-copy {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 18px;
  padding: clamp(28px, 6vw, 72px);
  background:
    linear-gradient(180deg, rgba(10,10,10,0.2), rgba(10,10,10,0.92)),
    radial-gradient(120% 80% at 70% 20%, rgba(46,91,255,0.28), transparent 60%),
    #0a0a0a;
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: auto; }
.brand span span { color: var(--blue); }
.brand-mark { width: 14px; height: 22px; background: var(--text); border-radius: 2px; box-shadow: inset 0 -7px 0 var(--blue); }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.auth-copy h1 { font-size: clamp(34px, 5vw, 64px); line-height: 0.92; font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; max-width: 14ch; }
.auth-copy > p:not(.eyebrow) { color: rgba(255,255,255,0.78); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.45; max-width: 46ch; }

.auth-panel { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 5vw, 56px); align-self: center; width: 100%; max-width: 460px; margin: 0 auto; }
.auth-tabs { display: flex; gap: 6px; }
.auth-tabs button {
  flex: 1; min-height: 42px; border-radius: 2px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer;
}
.auth-tabs button.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.auth-form { display: none; flex-direction: column; gap: 14px; }
.auth-form.active { display: flex; }
.auth-form h2 { font-size: 22px; font-weight: 800; }
.auth-form label { display: grid; gap: 6px; }
.auth-form label > span { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.auth-form input, .auth-form select {
  min-height: 46px; padding: 11px 12px; border-radius: 2px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text); font: inherit;
}
.auth-form input:focus, .auth-form select:focus { outline: none; border-color: var(--blue); }
.auth-form button[type=submit] {
  min-height: 50px; margin-top: 4px; border-radius: 2px;
  background: var(--blue); border: 1px solid var(--blue); color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer;
}
.auth-form button[type=submit]:hover { background: var(--blue-press); }
.auth-form button.secondary { min-height: 44px; background: transparent; border: 1px solid var(--line); color: var(--text); border-radius: 2px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; }
.form-note { color: var(--muted); font-size: 12px; line-height: 1.4; }

.auth-message { min-height: 18px; font-size: 13px; color: var(--blue); }
.auth-message.error { color: #ff6b53; }

.demo-accounts { margin-top: 6px; padding: 14px; border: 1px dashed var(--line); border-radius: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.demo-accounts .eyebrow { margin-bottom: 6px; }

@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-copy { min-height: 38vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-panel { align-self: start; }
}
