:root{color-scheme:dark;--accent:#34d399}body{background:#080f19}button,input,select,textarea{font:inherit}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px} .brandmark{display:flex;align-items:center;gap:10px}.login-shell{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;max-width:1120px;margin:auto;padding:48px;gap:64px}.login-intro{padding:40px 0;color:#a8bacb}.login-intro h2{font-size:clamp(32px,5vw,64px);line-height:1.08;letter-spacing:-.045em;color:#f1f5f9;margin:20px 0}.login-kicker{color:#34d399;font-size:12px;letter-spacing:.16em;margin-top:24px}.login-form{width:100%;max-width:440px}.login-form label{display:block;font-size:13px;color:#cbd5e1}.login-form input,.login-form button{min-height:46px}.login-form h1{font-size:26px}.tool{transition:border-color .12s}.tool:hover{background:#142538}.sidebar button{border-radius:8px}.mainarea{overflow-wrap:anywhere}@media(max-width:760px){.login-shell{grid-template-columns:1fr;padding:24px;gap:16px;align-content:center}.login-intro{padding:0}.login-intro h2{font-size:34px}.login-form{max-width:none}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.theme-login-control {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.theme-toggle {
  padding: 6px 12px;
  border: 1px solid #475569;
  border-radius: 8px;
  font-size: 13px;
}

.theme-toggle[aria-pressed="true"] {
  background: #d1fae5;
  border-color: #047857;
  color: #065f46;
}

:root[data-theme="light"] {
  color-scheme: light;
  --accent: #047857;
  --page: #f0f5f3;
  --surface: #ffffff;
  --surface-muted: #f3f7f6;
  --surface-raised: #e3eeea;
  --line: #b9cdc5;
  --ink: #142b23;
  --muted: #40574e;
}

[data-theme="light"] body { background: var(--page); color: var(--ink); }
[data-theme="light"] .sidebar { background: var(--surface); border-color: var(--line); }
[data-theme="light"] .hero {
  background: linear-gradient(120deg, #ddf5e9, var(--surface));
  border-color: #9bcbb6;
}
[data-theme="light"] .tool { background: var(--surface); border-color: var(--line); }
[data-theme="light"] .tool:hover { background: var(--surface-muted); border-color: var(--accent); }
[data-theme="light"] .brandmark,
[data-theme="light"] .login-kicker { color: var(--accent); }
[data-theme="light"] .tool strong,
[data-theme="light"] .login-intro h2 { color: var(--ink); }
[data-theme="light"] .tool span,
[data-theme="light"] .navgroup,
[data-theme="light"] .login-intro,
[data-theme="light"] .login-form label { color: var(--muted); }

[data-theme="light"] .bg-slate-950:not(body) { background-color: var(--surface-muted); }
[data-theme="light"] .bg-slate-900 { background-color: var(--surface); }
[data-theme="light"] :is(.bg-slate-800, .bg-slate-700) { background-color: var(--surface-raised); }
[data-theme="light"] :is(.hover\:bg-slate-900, .hover\:bg-slate-800, .hover\:bg-slate-800\/40, .hover\:bg-slate-700, .hover\:bg-slate-600):hover {
  background-color: #d4e5de;
}
[data-theme="light"] :is(.border-slate-800, .border-slate-800\/80, .border-slate-800\/60, .border-slate-700),
[data-theme="light"] .divide-slate-800 > :not([hidden]) ~ :not([hidden]) { border-color: var(--line); }
[data-theme="light"] :is(.text-slate-100, .text-slate-200, .text-white:not(button), button.text-white:is(.bg-slate-800,.bg-slate-700)),
[data-theme="light"] .hover\:text-slate-100:hover { color: var(--ink); }
[data-theme="light"] :is(.text-slate-300, .text-slate-400, .text-slate-500) { color: var(--muted); }

[data-theme="light"] :is(.text-emerald-200, .text-emerald-300, .text-emerald-400) { color: #065f46; }
[data-theme="light"] .text-sky-300 { color: #075985; }
[data-theme="light"] .text-purple-300 { color: #6b21a8; }
[data-theme="light"] .text-amber-300 { color: #78350f; }
[data-theme="light"] :is(.text-rose-300, .text-rose-400) { color: #9f1239; }
[data-theme="light"] :is(.bg-emerald-600,.bg-emerald-600\/85,.bg-emerald-600\/80) { background-color: #047857; }
[data-theme="light"] :is(.hover\:bg-emerald-500,.hover\:bg-emerald-600):hover { background-color: #065f46; }
[data-theme="light"] :is(.bg-amber-600,.bg-amber-600\/85,.bg-amber-600\/80) { background-color: #92400e; }
[data-theme="light"] :is(.hover\:bg-amber-500,.hover\:bg-amber-600):hover { background-color: #78350f; }

.login-shell {
  max-width: 1340px;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: clamp(24px, 5vw, 80px);
}

.login-intro {
  box-sizing: border-box;
  align-self: center;
  min-height: clamp(380px, 62vh, 720px);
  padding: clamp(24px, 5vw, 64px);
  border: 1px solid #255245;
  border-radius: 24px;
  background:
    linear-gradient(130deg, rgba(3, 23, 17, .78), transparent 75%),
    #071e17 url("/assets/kestrel-infrastructure.webp") center / cover no-repeat;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a7f3d0;
  font-size: 19px;
  font-weight: 700;
}

.login-intro h2,
[data-theme="light"] .login-intro h2 {
  max-width: 12ch;
  color: #f4fff9;
  margin: 36px 0 14px;
}

.login-intro p,
[data-theme="light"] .login-intro p {
  max-width: 33ch;
  color: #d2eee0;
}

.hero.workspace-hero {
  background: linear-gradient(90deg, #0e2e25 28%, rgba(14, 46, 37, .78) 62%, transparent),
    #0e2e25 url("/assets/kestrel-infrastructure.webp") right 48% / auto 220% no-repeat;
}

[data-theme="light"] .hero.workspace-hero {
  background: linear-gradient(90deg, #e2f8ed 30%, rgba(226, 248, 237, .91) 70%, rgba(226, 248, 237, .40)),
    #e2f8ed url("/assets/kestrel-infrastructure.webp") right 48% / auto 220% no-repeat;
}

@media (max-width: 760px) {
  .login-shell { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .login-intro { min-height: 250px; padding: 24px; }
  .login-intro h2, [data-theme="light"] .login-intro h2 { margin-top: 20px; }
}

@media (prefers-reduced-data: reduce) {
  .login-intro, .hero.workspace-hero { background-image: none; }
}

.status-badge {
  flex-shrink: 0;
  white-space: nowrap;
}

.brandmark img { flex: none; }
.brandmark span { min-width: 0; overflow-wrap: anywhere; }
