/* ==========================================================================
   Login page — night city, neon title, robot mascot, access terminal card
   ========================================================================== */
:root {
  --bg: #080b18;
  --text: #dfe4ff;
  --text-2: #b9c1e8;
  --muted: #7c86b4;
  --green: #46e47f;
  --red: #ff5d6e;
  --purple: #6447f0;
  --purple-hi: #8f75ff;
  --font: 'Pixelify Sans', ui-monospace, monospace;
  --font-px: 'Silkscreen', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 13px/1.3 var(--font);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
canvas, .pix, i[data-icon] { image-rendering: pixelated; image-rendering: crisp-edges; }
i[data-icon] { display: inline-block; width: 16px; height: 16px; background-size: 100% 100%; flex: none; }
.up { color: var(--green); }

#bg { position: fixed; left: 0; top: 0; z-index: 0; }
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, transparent 40%, rgba(5, 4, 16, .65) 100%),
    linear-gradient(90deg, rgba(6, 6, 20, .35), transparent 35%, transparent 65%, rgba(6, 6, 20, .35));
}

/* ---------- top status line ---------- */
.topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.topline b { color: var(--text); font-weight: 500; }
.topline .grow { flex: 1; }
.topline .sep { color: #39407a; }
.online { display: inline-flex; align-items: center; gap: 8px; color: var(--green); }
.online i { width: 8px; height: 8px; background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 1.6s steps(2) infinite; }
.btc em { font-style: normal; color: var(--green); }
.btc em.down { color: var(--red); }

/* ---------- stage ---------- */
.stage {
  position: relative;
  z-index: 2;
  flex: 1;
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 10px 24px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: 40px;
}

.hero { display: flex; flex-direction: column; align-items: flex-start; }
.bot-wrap { position: relative; height: 170px; width: 120px; margin: 0 0 6px 6px; }
.bot { position: absolute; left: 12px; bottom: 10px; width: 96px; height: 152px; filter: drop-shadow(0 0 18px rgba(120, 140, 255, .35)); }
.bot-shadow { position: absolute; left: 22px; bottom: 4px; width: 76px; height: 8px; background: rgba(0, 0, 0, .5); border-radius: 50%; filter: blur(2px); }
.bot-bubble {
  position: absolute;
  left: 112px;
  top: 6px;
  width: max-content;
  max-width: 260px;
  padding: 8px 12px;
  background: #f3f5ff;
  color: #1a1d33;
  border: 2px solid #0d0f22;
  border-radius: 6px;
  box-shadow: 0 3px 0 #8d96c2;
  font-size: 14px;
  font-weight: 500;
}
.bot-bubble::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 16px;
  width: 12px;
  height: 12px;
  background: #f3f5ff;
  border-left: 2px solid #0d0f22;
  border-bottom: 2px solid #0d0f22;
  transform: rotate(45deg);
}
.bot-bubble.pop { animation: pop .25s ease-out; }

.neon-title {
  font: 700 54px/1.02 var(--font-px);
  letter-spacing: .02em;
  color: #ffd9f7;
  text-shadow: 0 0 3px #ff6ce6, 0 0 10px #ff2fd2, 0 0 26px #ff00c3, 0 0 52px rgba(255, 0, 195, .55);
  animation: flicker 7s infinite;
}
.tagline { margin-top: 14px; font-size: 17px; line-height: 1.45; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 108px;
  padding: 8px 12px;
  background: rgba(14, 18, 40, .78);
  border: 1px solid #262e5c;
  border-radius: 5px;
  backdrop-filter: blur(2px);
}
.chip span { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chip b { font-size: 18px; font-weight: 500; }

/* ---------- login card ---------- */
.card {
  position: relative;
  padding: 22px 22px 16px;
  background: linear-gradient(180deg, rgba(20, 26, 56, .94), rgba(12, 16, 38, .95));
  border: 1px solid #323c7c;
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(143, 117, 255, .12),
    0 24px 70px rgba(0, 0, 0, .6),
    0 0 50px rgba(110, 85, 247, .18);
  backdrop-filter: blur(4px);
}
.card::before {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8f75ff, #ff4fd8, transparent);
}
.card.shake { animation: shake .45s; }
.card-head { display: flex; align-items: center; justify-content: space-between; }
.card-title { font: 700 16px var(--font-px); letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.leds { display: flex; gap: 5px; }
.leds i { width: 7px; height: 7px; background: #2a3060; }
.leds i:nth-child(1) { background: var(--green); box-shadow: 0 0 6px var(--green); }
.leds i:nth-child(2) { background: #ffd23d; box-shadow: 0 0 6px #ffd23d; animation: blink 1.1s steps(2) infinite; }
.card-sub { margin: 6px 0 18px; font-size: 13px; color: var(--muted); }

.lfield { display: block; margin-bottom: 14px; }
.lfield > span { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.input {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 6px 0 12px;
  background: #090d22;
  border: 1px solid #2a3264;
  border-radius: 5px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus-within { border-color: var(--purple-hi); box-shadow: 0 0 0 3px rgba(143, 117, 255, .18), 0 0 18px rgba(143, 117, 255, .2); }
.input input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: none;
  border: 0;
  outline: none;
  color: #fff;
  font: 400 16px var(--font);
  letter-spacing: .03em;
}
.input input::placeholder { color: #4b5383; }
.eye {
  height: 30px;
  padding: 0 10px;
  border-radius: 3px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eye:hover { color: #fff; background: rgba(120, 130, 220, .14); }

.check { display: inline-flex; align-items: center; gap: 9px; margin: 2px 0 14px; font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { width: 16px; height: 16px; border: 1px solid #3a4486; background: #090d22; display: grid; place-items: center; }
.check input:checked + .box { background: var(--purple); border-color: var(--purple-hi); }
.check input:checked + .box::after { content: ''; width: 6px; height: 6px; background: #fff; }
.check input:focus-visible + .box { box-shadow: 0 0 0 2px var(--purple-hi); }

.error {
  margin-bottom: 12px;
  padding: 9px 12px;
  background: #3a1520;
  border: 1px solid #7a2a3c;
  border-radius: 4px;
  font-size: 12.5px;
  color: #ffb0ba;
}

.enter {
  position: relative;
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  border-radius: 5px;
  background: linear-gradient(180deg, #7a5ffa, #5238dc);
  border: 1px solid #a48fff;
  box-shadow: 0 4px 0 #2f1f8a, 0 0 24px rgba(110, 85, 247, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
  font: 700 15px var(--font-px);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  transition: transform .08s, filter .15s;
}
.enter b { font-size: 13px; }
.enter::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  animation: sheen 3.2s infinite;
}
.enter:hover { filter: brightness(1.12); }
.enter:active { transform: translateY(2px); box-shadow: 0 2px 0 #2f1f8a, 0 0 24px rgba(110, 85, 247, .45); }
.enter.ok { background: linear-gradient(180deg, #3fd47a, #1f9a52); border-color: #8fffbe; box-shadow: 0 4px 0 #13502c, 0 0 28px rgba(70, 228, 127, .55); }

.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 11px; color: #555d8c; }
.secure { display: inline-flex; align-items: center; gap: 6px; }
.secure i { width: 10px; height: 11px; }

/* ---------- price ticker ---------- */
.ticker {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 34px;
  overflow: hidden;
  background: rgba(5, 6, 14, .88);
  border-top: 1px solid #262e58;
}
.ticker-track { display: flex; gap: 34px; width: max-content; height: 100%; align-items: center; padding-left: 20px; animation: scroll 40s linear infinite; }
.tk { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
.tk img { width: 13px; height: 13px; }
.tk b { font-weight: 500; color: var(--text); }
.tk em { font-style: normal; }
.tk em.up { color: var(--green); }
.tk em.down { color: var(--red); }

/* ---------- animations ---------- */
@keyframes blink { 50% { opacity: .25; } }
@keyframes sheen { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes pop { 0% { transform: scale(.7); } 70% { transform: scale(1.05); } 100% { transform: none; } }
@keyframes shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(9px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}
@keyframes flicker {
  0%, 18%, 21%, 60%, 62%, 100% { opacity: 1; }
  19%, 61% { opacity: .55; }
  20% { opacity: .9; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .stage { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 0; }
  .hero { align-items: center; text-align: center; }
  .neon-title { font-size: 40px; }
  .tagline { font-size: 15px; }
  .chips { justify-content: center; }
  .bot-wrap { margin-left: -120px; }
  .card { width: min(420px, 100%); justify-self: center; }
  .topline .sep, .topline .online + .sep + span { display: none; }
}
@media (max-width: 480px) {
  .neon-title { font-size: 32px; }
  .bot-wrap { height: 130px; width: 90px; margin-left: -150px; }
  .bot { width: 72px; height: 114px; }
  .bot-shadow { left: 18px; width: 56px; }
  .bot-bubble { left: 86px; font-size: 13px; max-width: 200px; }
  .chip { min-width: 92px; }
}
