/* Watchtower dashboard, restyled to match homespotter-commandcentral.
 *
 * Tokens are a straight translation of commandcentral's globals.css
 * (HomeSpotter light + dark themes, oklch, terracotta primary, the same
 * radius scale derived from --radius: 0.75rem). Class names are unchanged:
 * this is a reskin, the views' JS and the tests rely on the DOM hooks. */

:root {
  /* Core palette (commandcentral :root) */
  --background: oklch(0.975 0.006 60);
  --foreground: oklch(0.18 0.005 45);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.18 0.005 45);
  /* Terracotta #D97757, primary accent */
  --primary: oklch(0.65 0.13 38);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.845 0.006 60);
  --muted: oklch(0.91 0.005 60);
  --muted-foreground: oklch(0.49 0.004 45);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.845 0.005 45);
  --input: oklch(0.845 0.005 45);
  --ring: oklch(0.65 0.13 38);
  /* Status colors (identical in both themes, like commandcentral) */
  --success: oklch(0.56 0.17 145);
  --warning: oklch(0.78 0.19 85);
  --info: oklch(0.62 0.21 245);
  /* Sidebar */
  --sidebar: oklch(0.97 0.005 60);
  --sidebar-border: oklch(0.845 0.005 45);
  /* Radius scale: --radius 0.75rem, sm/md/lg/xl like commandcentral */
  --radius: 0.75rem;
  --radius-sm: calc(var(--radius) * 0.6);
  --radius-md: calc(var(--radius) * 0.8);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) * 1.4);
  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);

  /* Legacy aliases: older rules and inline SVG code (sparkline) reference
   * these names. They now resolve to the commandcentral tokens. */
  --terracotta: var(--primary);
  --terracotta-dim: oklch(0.58 0.13 38);
  --cream: var(--background);
  --ink: var(--foreground);
  --ink-soft: var(--muted-foreground);
  --line: var(--border);
  --surface: var(--card);
  --bg: var(--background);
  --up: var(--success);
  --down: var(--destructive);
  --degraded: oklch(0.66 0.15 75);
}

/* Dark theme (commandcentral .dark), via OS preference... */
@media (prefers-color-scheme: dark) {
  :root {
    --background: oklch(0.178 0.008 45);
    --foreground: oklch(0.975 0.004 60);
    --card: oklch(0.245 0.007 45);
    --card-foreground: oklch(0.975 0.004 60);
    --secondary: oklch(0.33 0.006 45);
    --muted: oklch(0.33 0.006 45);
    --muted-foreground: oklch(0.575 0.005 45);
    --destructive: oklch(0.704 0.191 22.216);
    --border: oklch(0.33 0.006 45);
    --input: oklch(0.33 0.006 45);
    --sidebar: oklch(0.245 0.007 45);
    --sidebar-border: oklch(0.33 0.006 45);
    --degraded: oklch(0.74 0.15 80);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  }
}

/* ...and explicit data-theme overrides win in both directions. */
:root[data-theme="dark"] {
  --background: oklch(0.178 0.008 45);
  --foreground: oklch(0.975 0.004 60);
  --card: oklch(0.245 0.007 45);
  --card-foreground: oklch(0.975 0.004 60);
  --secondary: oklch(0.33 0.006 45);
  --muted: oklch(0.33 0.006 45);
  --muted-foreground: oklch(0.575 0.005 45);
  --destructive: oklch(0.704 0.191 22.216);
  --border: oklch(0.33 0.006 45);
  --input: oklch(0.33 0.006 45);
  --sidebar: oklch(0.245 0.007 45);
  --sidebar-border: oklch(0.33 0.006 45);
  --degraded: oklch(0.74 0.15 80);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
}

:root[data-theme="light"] {
  --background: oklch(0.975 0.006 60);
  --foreground: oklch(0.18 0.005 45);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.18 0.005 45);
  --secondary: oklch(0.845 0.006 60);
  --muted: oklch(0.91 0.005 60);
  --muted-foreground: oklch(0.49 0.004 45);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.845 0.005 45);
  --input: oklch(0.845 0.005 45);
  --sidebar: oklch(0.97 0.005 60);
  --sidebar-border: oklch(0.845 0.005 45);
  --degraded: oklch(0.66 0.15 75);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a[href],
button:not(:disabled),
label[for],
summary {
  cursor: pointer;
}

/* ---------- shell: commandcentral-style sidebar + content ---------- */

.shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 216px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  border-right: 1px solid var(--sidebar-border);
  padding: 20px 12px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 8px 24px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-md);
  background: var(--primary);
  flex-shrink: 0;
}

.brand .brand-sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted-foreground);
  line-height: 1.2;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--muted-foreground);
  font-weight: 400;
  font-size: 13.5px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav a:hover {
  background: var(--muted);
  color: var(--foreground);
}

/* commandcentral active state: primary/10 tint + primary text */
.nav a.active {
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  color: var(--primary);
  font-weight: 500;
}

.sidebar-foot {
  margin: 8px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--sidebar-border);
}

.signout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--muted-foreground);
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.signout:hover {
  background: var(--muted);
  color: var(--foreground);
}

.main {
  flex: 1;
  min-width: 0;
  padding: 32px 40px;
  max-width: 1280px;
}

.page-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.page-sub {
  color: var(--muted-foreground);
  margin: 0 0 24px;
  font-size: 13.5px;
}

/* ---------- cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot.up {
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--success) 18%, transparent);
}

.dot.down {
  background: var(--destructive);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 18%, transparent);
}

.dot.degraded {
  background: var(--degraded);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--degraded) 20%, transparent);
}

.dot.unknown {
  background: var(--muted-foreground);
}

.kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 5px 0;
  font-size: 13px;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 55%, transparent);
}

.kv:last-child {
  border-bottom: none;
}

.kv .k {
  color: var(--muted-foreground);
}

.kv .v {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ---------- badges ---------- */

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.badge.up,
.badge.pass,
.badge.passed {
  background: color-mix(in oklab, var(--success) 12%, transparent);
  border-color: color-mix(in oklab, var(--success) 25%, transparent);
  color: var(--success);
}

.badge.down,
.badge.fail,
.badge.failed {
  background: color-mix(in oklab, var(--destructive) 12%, transparent);
  border-color: color-mix(in oklab, var(--destructive) 25%, transparent);
  color: var(--destructive);
}

.badge.degraded,
.badge.skipped {
  background: color-mix(in oklab, var(--degraded) 15%, transparent);
  border-color: color-mix(in oklab, var(--degraded) 30%, transparent);
  color: var(--degraded);
}

.badge.unknown {
  background: var(--muted);
  color: var(--muted-foreground);
}

.regression {
  color: var(--destructive);
  font-weight: 600;
}

/* ---------- tables ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted-foreground);
  font-weight: 500;
  font-size: 12px;
  background: color-mix(in oklab, var(--muted) 45%, transparent);
}

tr:last-child td {
  border-bottom: none;
}

.table-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.table-card .table-wrap {
  overflow-x: auto;
}

/* ---------- controls ---------- */

.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filters select,
.filters input {
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  padding: 7px 10px;
  font-size: 13px;
  font-family: var(--font);
}

.filters select:focus,
.filters input:focus {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
}

button.btn {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius-md);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  transition: background-color 0.15s ease;
}

button.btn:hover {
  background: color-mix(in oklab, var(--primary) 90%, black);
}

button.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

button.btn.ghost {
  background: transparent;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
}

button.btn.ghost:hover {
  background: var(--muted);
  color: var(--foreground);
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
}

.stack {
  white-space: pre-wrap;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-top: 8px;
  max-height: 260px;
  overflow: auto;
}

.expandable summary {
  cursor: pointer;
  list-style: none;
}

.expandable summary::-webkit-details-marker {
  display: none;
}

.muted {
  color: var(--muted-foreground);
}

.empty {
  padding: 40px;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 13px;
}

.sparkline {
  display: block;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.screenshots figure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card);
}

.screenshots img {
  width: 100%;
  display: block;
}

.screenshots figcaption {
  padding: 6px 8px;
  font-size: 11px;
  color: var(--muted-foreground);
}

.back-link {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted-foreground);
  text-decoration: none;
}

.back-link:hover {
  color: var(--foreground);
}

/* ---------- releases timeline ---------- */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline .item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.timeline .item .head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline .item .repo {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.timeline .item .when {
  color: var(--muted-foreground);
  font-size: 12px;
}

.delta-good {
  color: var(--success);
  font-weight: 600;
}

.delta-bad {
  color: var(--destructive);
  font-weight: 600;
}

/* ---------- release-flow view ---------- */

.rf-window-title {
  margin: 14px 0 6px;
  font-size: 11px;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ---------- release-plan view ---------- */

.rp-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.rp-tab {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--muted-foreground);
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.rp-tab:hover {
  background: var(--muted);
  color: var(--foreground);
}

.rp-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.rp-summary {
  margin-bottom: 16px;
}

.rp-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.rp-big {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.rp-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--muted);
  overflow: hidden;
}

.rp-bar.small {
  height: 5px;
  margin: 8px 0 12px;
}

.rp-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.rp-bar-fill.complete {
  background: var(--success);
}

.rp-bar-fill.blocked {
  background: var(--destructive);
}

.rp-blockers {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid color-mix(in oklab, var(--destructive) 35%, transparent);
  background: color-mix(in oklab, var(--destructive) 8%, transparent);
  border-radius: var(--radius-md);
  font-size: 13px;
}

.rp-phase {
  margin-bottom: 14px;
}

.rp-phase.current {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-sm);
}

.rp-phase.complete {
  opacity: 0.75;
}

.rp-phase-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.rp-phase-head h3 {
  margin: 0;
}

.rp-here {
  color: var(--primary);
}

.rp-item {
  border-bottom: 1px solid color-mix(in oklab, var(--border) 55%, transparent);
  padding: 6px 0;
}

.rp-item:last-child {
  border-bottom: none;
}

.rp-item-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.rp-item-main {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.45;
  padding-top: 1px;
}

.rp-item.done .rp-title {
  text-decoration: line-through;
  color: var(--muted-foreground);
}

.rp-item.na .rp-title {
  color: var(--muted-foreground);
  opacity: 0.6;
}

.rp-item.blocked .rp-title {
  color: var(--destructive);
  font-weight: 600;
}

.rp-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--input);
  background: transparent;
  color: var(--primary-foreground);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.rp-check:hover {
  border-color: var(--primary);
}

.rp-check.done {
  background: var(--success);
  border-color: var(--success);
}

.rp-check.blocked {
  background: var(--destructive);
  border-color: var(--destructive);
}

.rp-check.na {
  background: var(--muted-foreground);
  border-color: var(--muted-foreground);
}

.rp-p0 {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  background: var(--destructive);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  vertical-align: 1px;
}

.rp-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  vertical-align: 1px;
}

.rp-chip.tim {
  background: color-mix(in oklab, var(--primary) 14%, transparent);
  color: var(--primary);
}

.rp-chip.claude {
  background: color-mix(in oklab, var(--success) 12%, transparent);
  color: var(--success);
}

.rp-item-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  opacity: 0.35;
}

.rp-item:hover .rp-item-actions {
  opacity: 1;
}

.rp-mini {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted-foreground);
  font-size: 11px;
  font-family: var(--font);
  padding: 2px 8px;
}

.rp-mini:hover {
  color: var(--foreground);
  border-color: var(--muted-foreground);
}

.rp-mini.on {
  background: var(--destructive);
  border-color: var(--destructive);
  color: white;
}

.rp-detail {
  margin: 6px 0 4px 32px;
  padding: 10px 12px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  color: var(--muted-foreground);
  white-space: pre-wrap;
}

.rp-note {
  display: flex;
  gap: 6px;
  margin: 6px 0 4px 32px;
}

.rp-note input {
  flex: 1;
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--destructive);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  font-size: 12.5px;
  font-family: var(--font);
}

.rp-note-static {
  margin: 2px 0 2px 32px;
  font-size: 12px;
}

.rp-doc {
  font-size: 14px;
  line-height: 1.6;
  max-width: 860px;
}

.rp-doc h1 {
  font-size: 20px;
  margin: 4px 0 12px;
  letter-spacing: -0.02em;
}

.rp-doc h2 {
  font-size: 16px;
  margin: 22px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}

.rp-doc h3,
.rp-doc h4 {
  font-size: 14px;
  margin: 16px 0 6px;
}

.rp-doc pre {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  overflow-x: auto;
  font-size: 12px;
}

.rp-doc code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--muted);
  border-radius: 4px;
  padding: 1px 4px;
}

.rp-doc pre code {
  background: transparent;
  padding: 0;
}

.rp-doc ul,
.rp-doc ol {
  padding-left: 22px;
  margin: 6px 0 12px;
}

.rp-doc li {
  margin: 3px 0;
}

.rp-doc .md-table-wrap {
  overflow-x: auto;
  margin: 10px 0;
}

.rp-doc .md-check {
  margin-right: 4px;
}

.rp-doc .md-check.done {
  color: var(--success);
}

/* ---------- section headers + infra panel ---------- */

.section-title {
  margin: 28px 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title:first-of-type {
  margin-top: 0;
}

.warn {
  color: var(--degraded);
  font-weight: 600;
}

.flag-banner {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid color-mix(in oklab, var(--destructive) 35%, transparent);
  background: color-mix(in oklab, var(--destructive) 8%, transparent);
  border-radius: var(--radius-md);
  color: var(--destructive);
  font-size: 13px;
  font-weight: 500;
}

.hb-reasons {
  margin-top: 8px;
  font-size: 12px;
  color: var(--destructive);
}

/* ---------- login page (the front door) ---------- */

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--background);
}

.login-wrap {
  width: 100%;
  max-width: 384px;
  margin: 22vh 16px 40px;
}

.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.login-head {
  text-align: center;
  margin-bottom: 28px;
}

.login-head .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  margin: 0 auto 12px;
  display: block;
}

.login-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 2px;
}

.login-sub {
  font-size: 12px;
  color: var(--muted-foreground);
  margin: 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

.login-form input[type="email"] {
  width: 100%;
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  font-size: 14px;
  font-family: var(--font);
  transition: box-shadow 0.15s ease;
}

.login-form input[type="email"]::placeholder {
  color: var(--muted-foreground);
}

.login-form input[type="email"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring);
}

.login-form button {
  width: 100%;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.login-form button:hover {
  background: color-mix(in oklab, var(--primary) 90%, black);
}

.login-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-form button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.login-sent {
  text-align: center;
  padding: 4px 0;
}

.login-sent .sent-icon {
  display: block;
  margin: 0 auto 12px;
  color: var(--primary);
}

.login-sent .sent-title {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 6px;
}

.login-sent .sent-sub {
  font-size: 12px;
  color: var(--muted-foreground);
  margin: 0;
  line-height: 1.55;
}

.login-error {
  margin: 0 0 16px;
  padding: 9px 12px;
  border: 1px solid color-mix(in oklab, var(--destructive) 35%, transparent);
  background: color-mix(in oklab, var(--destructive) 8%, transparent);
  border-radius: var(--radius-md);
  color: var(--destructive);
  font-size: 12.5px;
}

.login-foot {
  text-align: center;
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted-foreground);
}
