/* ------------------------------------------------------------------ *
 * Landing page styles — the public surface.
 *
 * This is a PRUNED copy of the palette/reset/button rules from
 * website/src/index.css, NOT a full copy. Console-only class names
 * (.shell, .sidebar, .nav-item, .topbar, .crumbs, .panel, .badge, .stat,
 * .output, .avatar) must never appear here: those names are themselves part
 * of what the /console* gate exists to hide.
 *
 * The palette below is duplicated from src/index.css on purpose (no shared
 * build). If you change one, change the other.
 * ------------------------------------------------------------------ */

:root {
  --text: #6b6375;
  --text-h: #08060d;
  --bg: #fff;
  --border: #e5e4e7;
  --accent: #aa3bff;
  --accent-bg: rgba(170, 59, 255, 0.1);
  --accent-border: rgba(170, 59, 255, 0.5);
  --surface: #ffffff;
  --grid-line: rgba(170, 59, 255, 0.09);
  --err: #dc2626;

  --radius-sm: 8px;

  --sans: system-ui, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Consolas, monospace;

  font: 18px/145% var(--sans);
  letter-spacing: 0.18px;
  color-scheme: light dark;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #9ca3af;
    --text-h: #f3f4f6;
    --bg: #16171d;
    --border: #2e303a;
    --accent: #c084fc;
    --accent-bg: rgba(192, 132, 252, 0.15);
    --accent-border: rgba(192, 132, 252, 0.5);
    --surface: #1b1d24;
    --grid-line: rgba(192, 132, 252, 0.11);
    --err: #f87171;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.mono {
  font-family: var(--mono);
}
.muted {
  color: var(--text);
}

/* ------------------------------------------------------------------ *
 * Buttons
 * ------------------------------------------------------------------ */
.btn {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-h);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.06s ease,
    box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--accent-border);
}
.btn:active {
  transform: translateY(1px);
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  box-shadow: 0 0 0 3px var(--accent-bg);
  border-color: var(--accent);
}

/* ------------------------------------------------------------------ *
 * Sign-in card
 * ------------------------------------------------------------------ */
.login {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
}

.login-card {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px 32px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  text-align: center;
}

.login-mark {
  display: block;
}

.login-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--text-h);
  margin: 0;
}
.login-title .tld {
  color: var(--accent);
}

.login-sub {
  font-size: 13px;
  margin: -8px 0 0;
}

.login-btn {
  width: 100%;
  margin-top: 8px;
}

.login-status,
.login-error {
  font-size: 12px;
  margin: 0;
  overflow-wrap: anywhere;
}
.login-error {
  color: var(--err);
}
