@font-face {
  font-family: 'Akira Expanded';
  src: url('/fonts/Akira-Expanded.otf') format('opentype');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #158AF3;
  --blue-bright: #3DA0FF;
  --blue-glow: rgba(21, 138, 243, 0.45);
  --blue-faint: rgba(21, 138, 243, 0.10);
  --bg: #0B0B0E;
  --bg-elev: #16161B;
  --bg-card: #1C1C22;
  --text: #F0F2F5;
  --text-dim: #8B8E96;
  --text-mute: #4D4F56;
  --border: #1F1F26;
  --border-strong: #2E2E37;
  --danger: #FF4A6B;
  --display: 'Akira Expanded', 'Impact', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at top, var(--blue-faint) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(21,138,243,0.05) 0%, transparent 50%);
  pointer-events: none; z-index: 0;
}
.gate {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 44px 36px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
  text-align: center;
}
.gate-brand-mark {
  width: 76px; height: 76px;
  border-radius: 18px;
  background: var(--blue);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 16px 32px var(--blue-glow);
}
.gate-brand-mark svg { width: 64%; height: 64%; fill: currentColor; }
.gate-sub {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 28px;
}
.gate-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.gate-input-wrap { position: relative; }
.gate-input {
  width: 100%;
  padding: 14px 50px 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, background 0.2s;
  -webkit-text-security: disc;
}
.gate-input.show { -webkit-text-security: none; }
.gate-input::placeholder { color: var(--text-mute); letter-spacing: 0; }
.gate-input:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(21, 138, 243, 0.04);
}
.gate-toggle {
  position: absolute;
  top: 50%; right: 10px;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  background: transparent;
  border: 0;
  color: var(--text-dim);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 7px;
  transition: color 0.15s, background 0.15s;
}
.gate-toggle:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.gate-toggle svg { width: 16px; height: 16px; }
.gate-btn {
  padding: 14px 22px;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 16px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}
.gate-btn:hover {
  background: var(--blue-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,0.3);
}
.gate-btn:active { transform: translateY(0); }
.gate-btn:disabled {
  background: var(--bg-elev);
  color: var(--text-mute);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.gate-error {
  display: none;
  padding: 12px 14px;
  background: rgba(255, 74, 107, 0.08);
  border: 1px solid rgba(255, 74, 107, 0.25);
  border-radius: 10px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
}
.gate-error.show { display: block; }
.gate-shake { animation: shake 0.4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.gate-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.6;
}
.gate-footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.gate-footer a:hover { color: var(--blue); }
@media (max-width: 480px) {
  .gate { padding: 32px 24px; border-radius: 18px; }
  .gate-brand-mark { width: 64px; height: 64px; border-radius: 14px; }
}
