/* ЭФИР — общие токены оформления.
   Направление: пульт радиорубки. Тёмный графит, янтарный сигнал «в эфире»,
   моноширинные подписи как на приборной панели. */

:root {
  --ink: #0b1114;
  --panel: #121a1e;
  --raise: #18232a;
  --raise-2: #1e2c34;
  --line: #24343c;
  --line-soft: #1b272d;
  --text: #dde7ea;
  --text-dim: #a8bcc4;
  --muted: #7b929c;
  --signal: #ffb020;
  --signal-dim: #6b4d15;
  --live: #ff5c57;
  --ok: #46c08d;
  --danger: #e5484d;

  --font-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--signal); text-decoration: none; }
a:hover { text-decoration: underline; }

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

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

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; border: 3px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: #33474f; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------------ вход */

.gate {
  min-height: 100%;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

@media (max-width: 900px) {
  .gate { grid-template-columns: 1fr; }
  .gate__aside { display: none; }
}

.gate__aside {
  position: relative;
  padding: 56px 60px;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(255, 176, 32, 0.09), transparent 60%),
    linear-gradient(180deg, #0d151a 0%, #0b1114 100%);
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.brand__mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
}

.brand__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(255, 176, 32, 0.55);
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(255, 176, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .brand__dot { animation: none; }
}

.gate__lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 40px 0 18px;
  max-width: 12ch;
}

.gate__lead b { font-weight: 600; color: var(--signal); }

.gate__text { color: var(--text-dim); max-width: 44ch; margin: 0; }

.specs {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 44px;
}

.specs div {
  background: #0e161a;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.specs dt, .specs span:first-child { color: var(--muted); text-transform: uppercase; }
.specs span:last-child { color: var(--text); }

.gate__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 40px 28px;
  overflow-y: auto;
}

.card {
  width: 100%;
  max-width: 400px;
}

.card h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 27px;
  letter-spacing: 0.02em;
  margin: 12px 0 6px;
}

.card p.sub { color: var(--muted); margin: 0 0 26px; font-size: 14px; }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.input {
  width: 100%;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.input::placeholder { color: #56676f; }
.input:focus { border-color: var(--signal); background: #141d22; outline: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: var(--raise);
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.btn:hover { background: var(--raise-2); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  width: 100%;
  background: var(--signal);
  color: #1a1204;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn--primary:hover { background: #ffc043; }

.btn--ghost { background: transparent; border-color: var(--line); }
.btn--ghost:hover { background: var(--raise); }

.btn--danger { background: transparent; border-color: #4a2226; color: #ff8a86; }
.btn--danger:hover { background: #2a1518; }

.alt {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 14px;
}

.flash {
  padding: 11px 14px;
  border-radius: var(--r-md);
  border: 1px solid;
  margin-bottom: 16px;
  font-size: 14px;
}

.flash--error { border-color: #4a2226; background: #241417; color: #ff9a96; }
.flash--ok { border-color: #1e4437; background: #10241d; color: #7fd8b4; }
.flash--warning { border-color: #4a3c1a; background: #221c0e; color: var(--signal); }

/* ------------------------------------------------------------------ ошибка */

.error-page {
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 200;
  line-height: 1;
  color: var(--signal);
}
