/**
 * Shared auth shell — matches Talk to Launch workbench redesign.
 * Used by login / register / set-password.
 */

:root {
  --deep-squid: #0f1419;
  --sidebar-bg: #0c1015;
  --surface: #1a2332;
  --surface-2: #1f2a3c;
  --border: #2a3548;
  --border-light: #3a4a62;
  --brand-primary: #4aa8ff;
  --brand-primary-hover: #7ec4ff;
  --brand-primary-dim: #2d8fd9;
  --brand-primary-ink: #0c1015;
  --brand-glow: rgba(74, 168, 255, .14);
  --brand-border: rgba(74, 168, 255, .24);
  --text: #c8d0dc;
  --text-bright: #f0f4f8;
  --text-muted: #8899a8;
  --text-dim: #5f7080;
  --error: #ff5252;
  --success: #1db954;
  --radius: 6px;
  --radius-lg: 8px;
  --font-display: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --font: "IBM Plex Sans", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-short: 160ms;
  --color-focus: var(--brand-primary);
}

html, body {
  overflow-x: clip;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  font-size: 14px;
  background: var(--deep-squid);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--deep-squid);
}

.auth-card,
.card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
}

.auth-title,
.card h1,
h1 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.auth-sub,
.sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.auth-input,
input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--deep-squid);
  color: var(--text-bright);
  outline: none;
  font-size: 14px;
  margin-bottom: 14px;
  font-family: var(--font);
  transition: border-color var(--dur-short) var(--ease-out);
}

.auth-input:focus,
input:focus,
select:focus {
  border-color: var(--brand-primary);
}

.auth-btn,
.btn {
  width: 100%;
  border: none;
  border-radius: var(--radius);
  background: var(--brand-primary);
  color: var(--brand-primary-ink);
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  padding: 13px 14px;
  cursor: pointer;
  margin-top: 4px;
  transition: background-color var(--dur-short) var(--ease-out);
}

.auth-btn:hover,
.btn:hover {
  background: var(--brand-primary-hover);
}

.auth-btn:active,
.btn:active {
  background: var(--brand-primary-dim);
}

.auth-btn:disabled,
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-otp-digit {
  font-family: var(--font-mono);
}

.auth-otp-digit:focus-visible {
  border-color: var(--brand-primary);
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
  box-shadow: none;
}

.auth-link,
.foot a,
.back-link {
  color: var(--text-muted);
  font-family: inherit;
}

.auth-link:hover,
.foot a:hover,
.back-link:hover {
  color: var(--brand-primary);
}

.field-label,
label.field-label,
label {
  font-family: var(--font);
  letter-spacing: 0.04em;
}

.section-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: -0.01em;
  margin: 22px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
