/* Kara Tahta — Linear-inspired visual refresh */
:root {
  --bg: #08090a;
  --surface: #0f1011;
  --surface-2: #191a1b;
  --surface-3: #111214;
  --border: rgba(255,255,255,.08);
  --text: #f7f8f8;
  --muted: #8a8f98;
  --primary: #5e6ad2;
  --primary-soft: rgba(94,106,210,.16);
  --primary-text: #fff;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv01", "ss03";
  background:
    radial-gradient(900px 540px at 73% -12%, rgba(94,106,210,.14), transparent 65%),
    var(--bg);
}

button, input, select, textarea { font-family: inherit; }
button, a, input, textarea { transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid rgba(113,112,255,.6); outline-offset: 2px; }

.authGate {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #08090a;
}
.authGate::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 720px;
  height: 720px;
  left: 50%;
  top: -430px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(113,112,255,.26), rgba(94,106,210,.08) 42%, transparent 70%);
  filter: blur(12px);
}
.authGate::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}
.authCard {
  width: min(430px, 100%);
  gap: 14px;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: rgba(15,16,17,.82);
  backdrop-filter: blur(22px);
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 36px 90px rgba(0,0,0,.48);
}
.authBadge {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d0d6e0;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  font: 500 11px/1 JetBrains Mono, monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(255,255,255,.025);
}
.authBadge span { width: 6px; height: 6px; border-radius: 50%; background: #10b981; box-shadow: 0 0 12px #10b981; }
.authLogo { width: min(230px, 72%); justify-self: center; margin: 3px 0 2px; }
.authIntro { text-align: center; margin-bottom: 4px; }
.authIntro h1 { color: #f7f8f8; font-size: 25px; font-weight: 510; letter-spacing: -.55px; }
.authIntro p { margin-top: 7px; color: #8a8f98; font-size: 14px; line-height: 1.55; }
.authCard input {
  min-height: 48px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  padding: 0 14px;
}
.authCard input:hover { border-color: rgba(255,255,255,.16); }
.authCard input:focus { border-color: #7170ff; box-shadow: 0 0 0 3px rgba(113,112,255,.13); }
.authCard .primaryAction { min-height: 48px; margin-top: 3px; box-shadow: 0 8px 24px rgba(94,106,210,.25), inset 0 1px rgba(255,255,255,.18); }
.authCard .secondaryAction { min-height: 44px; }
.authMessage { text-align: center; }

.sidebar { background: rgba(15,16,17,.94); border-color: rgba(255,255,255,.06); }
.historyItem { border-radius: 7px; }
.historyItem:hover, .historyItem.active { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.07); }
.mainPane { background: transparent; }
.heroCopy h2 { font-weight: 510; letter-spacing: -1.05px; }
.promptComposer, .watchPanel, .panel {
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.025);
  box-shadow: 0 0 0 1px rgba(0,0,0,.16), 0 18px 54px rgba(0,0,0,.18);
}
.promptComposer:focus-within { border-color: rgba(113,112,255,.6); box-shadow: 0 0 0 3px rgba(113,112,255,.1), 0 22px 64px rgba(0,0,0,.25); }
.primaryAction { background: #5e6ad2; border-color: #6d78dc; border-radius: 7px; }
.primaryAction:hover:not(:disabled) { background: #7170ff; transform: translateY(-1px); }
.secondaryAction, .chip, .suggestions button, .uploadButton { background: rgba(255,255,255,.025); border-color: rgba(255,255,255,.08); }
.secondaryAction:hover, .chip:hover, .suggestions button:hover, .uploadButton:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.chip.active { color: #fff; background: rgba(94,106,210,.22); border-color: rgba(113,112,255,.55); }
.videoShell { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.07); }

@media (max-width: 640px) {
  .authCard { padding: 26px 20px; border-radius: 14px; }
  .authIntro h1 { font-size: 22px; }
}
