/* Lab access gate. Tokens only (docs/rules/11-visual-design.md): no literal colors,
 * and every font-size starts with var(). The four --brand-* hues appear once, as the
 * decorative edge shared with the home page - decoration, never state. */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--space-6);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}

.spectrum {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--space-1);
  background: linear-gradient(
    to right,
    var(--brand-blue) 0 25%,
    var(--brand-red) 25% 50%,
    var(--brand-yellow) 50% 75%,
    var(--brand-green) 75% 100%
  );
}

.gatecard {
  width: 100%;
  max-width: 26rem;
  padding: var(--space-7);
  background: var(--surface-raised);
  border: var(--border) solid var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.brand-dots {
  display: grid;
  grid-template-columns: repeat(2, var(--space-3));
  gap: var(--space-1);
  margin-bottom: var(--space-5);
}

.brand-dots i {
  width: var(--space-3);
  height: var(--space-3);
  border-radius: var(--radius-pill);
}

.brand-dots i:nth-child(1) { background: var(--brand-blue); }
.brand-dots i:nth-child(2) { background: var(--brand-red); }
.brand-dots i:nth-child(3) { background: var(--brand-green); }
.brand-dots i:nth-child(4) { background: var(--brand-yellow); }

h1 {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.blurb {
  margin: 0 0 var(--space-6);
  color: var(--text-dim);
  font-size: var(--text-sm);
}

.blurb a { color: var(--accent); }

.error {
  margin: 0 0 var(--space-5);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--danger) 8%, transparent);
  border: var(--border) solid color-mix(in srgb, var(--danger) 30%, transparent);
  color: var(--danger);
  font-size: var(--text-sm);
  font-weight: 500;
}

label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-faint);
}

input[type="password"] {
  width: 100%;
  min-height: var(--tap-min);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-md);
  color: var(--text);
  background: var(--bg);
  border: var(--border) solid var(--stroke-strong);
  border-radius: var(--radius-md);
}

input[type="password"]:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: var(--border-thick) solid var(--focus);
  outline-offset: var(--space-1);
}

button {
  width: 100%;
  min-height: var(--tap-min);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--accent-contrast);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: opacity var(--dur-fast) var(--ease-out);
}

button:hover { opacity: 0.9; }

.foot {
  margin: var(--space-6) 0 0;
  color: var(--text-faint);
  font-size: var(--text-xs);
}

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
}
