/* Tenant chooser. Its own stylesheet, not workspace.css: this page is
   served to anonymous visitors before any tenant is known, so it must not
   pull in the workspace's assets or hint at what is behind them. */

:root {
  color-scheme: dark;
  --bg: #0b0d14;
  --panel: #141826;
  --edge: #262c40;
  --ink: #e8eaf2;
  --muted: #99a0b8;
  --violet: #7c5cff;
  --cyan: #35d6e6;
  --danger: #ff8080;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(900px 460px at 105% 110%, rgba(53, 214, 230, 0.12), transparent 60%),
    var(--bg);
  color: var(--ink);
  font: 15px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.chooser {
  width: min(28rem, 100%);
  padding: 2rem;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(8px);
}

h1 {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  background: linear-gradient(92deg, var(--violet), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede { margin: 0 0 1.5rem; color: var(--muted); }

label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--edge);
  border-radius: 9px;
  background: #0e1220;
  color: var(--ink);
  font: inherit;
}

/* Visible focus is not decoration - 23 accessibility tests guard the
   workspace for the same reason, and this page is a keyboard-only
   surface for anyone using one. */
input:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.hint { margin: 0.6rem 0 1.2rem; font-size: 0.85rem; color: var(--muted); }

.error {
  margin: 0.7rem 0 0;
  padding: 0.6rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
  font-size: 0.88rem;
}

button {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(92deg, var(--violet), var(--cyan));
  color: #0b0d14;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

button:hover { filter: brightness(1.08); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
