/* Pilot password gate – tokens mirror css/app.css */
:root {
  color-scheme: light;
  --bg: #f3f5f9; --surface: #ffffff; --border: #e3e8ef; --border-2: #d2dae5;
  --text: #0e1a2b; --text-2: #4a5a72; --text-3: #8290a6;
  --accent: #0a8fd6; --accent-2: #0877b3; --accent-soft: #e3f3fc; --accent-ink: #ffffff;
  --danger: #d9344a; --danger-soft: #fde8eb;
  --shadow-2: 0 10px 28px rgba(16, 30, 54, 0.1), 0 2px 6px rgba(16, 30, 54, 0.06);
  --font: system-ui, -apple-system, 'Segoe UI Variable Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0c1626; --surface: #121f36; --border: #213350; --border-2: #2c4266;
    --text: #e9eff8; --text-2: #a8b7cd; --text-3: #71839f;
    --accent: #35b8ee; --accent-2: #62c8f3; --accent-soft: rgba(53, 184, 238, 0.14); --accent-ink: #06121f;
    --danger: #ff6479; --danger-soft: rgba(255, 100, 121, 0.14);
    --shadow-2: 0 10px 28px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); color: var(--text); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 500px at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(700px 420px at -10% 110%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    var(--bg);
}
.gate { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; gap: 18px; }
.card {
  width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; box-shadow: var(--shadow-2); padding: 28px 28px 26px; display: flex; flex-direction: column; gap: 16px;
  animation: rise 0.45s var(--ease) both;
}
.logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 2px; color: var(--text); }
.logo .mark { flex: none; }
.logo span { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.lead { margin: 0; text-align: center; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.inp {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-2);
  background: var(--surface); color: var(--text); font: inherit; font-size: 16px; font-weight: 400; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.inp:hover { border-color: var(--text-3); }
.inp:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.inp.bad { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.err { margin: -6px 0 0; color: var(--danger); font-size: 13px; font-weight: 600; }
.btn {
  height: 46px; border: 0; border-radius: 11px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 4px 14px -4px color-mix(in srgb, var(--accent) 60%, transparent);
  transition: background 0.15s, transform 0.12s var(--ease);
}
.btn:hover:not(:disabled) { background: var(--accent-2); }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: default; }
.foot { margin: 0; color: var(--text-3); font-size: 12px; }
.shake { animation: shake 0.35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .card, .shake { animation: none; } }
