/* ARENA · LOGIN — minimal, static, accessible */
:root {
  --bg:       #0b0f16;
  --bg-2:     #0d1117;
  --panel:    #131a26;
  --panel-b:  #232b3d;
  --ink:      #d6e1ef;
  --ink-dim:  #7d8a9c;
  --accent:   #58a6ff;
  --green:    #3fb950;
  --red:      #f85149;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  -webkit-font-smoothing: antialiased;
}
body {
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(88,166,255,0.10), transparent 60%),
    radial-gradient(900px 500px at 80% 90%, rgba(155,140,255,0.10), transparent 60%),
    var(--bg);
}

.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 32px 18px;
}

.sprite-row {
  display: flex;
  gap: 18px;
  opacity: 0.9;
}
.sprite-row img {
  height: 44px; width: 44px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.card {
  width: min(380px, 92vw);
  background: var(--panel);
  border: 2px solid var(--panel-b);
  padding: 28px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.55);
}

.card-head {
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--panel-b);
  margin-bottom: 20px;
}
.brand-mark {
  font-size: 9px;
  color: var(--ink-dim);
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.card-head h1 {
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 2px;
  line-height: 1.5;
}
.sub {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: var(--ink-dim);
  margin-top: 10px;
  min-height: 20px;
}
.caret {
  color: var(--accent);
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

form { display: flex; flex-direction: column; gap: 16px; }
label { display: block; }
.lbl {
  display: block;
  font-size: 8px;
  color: var(--ink-dim);
  letter-spacing: 2px;
  margin-bottom: 6px;
}
input[type=text],
input[type=password] {
  width: 100%;
  background: var(--bg-2);
  border: 2px solid var(--panel-b);
  color: var(--ink);
  font-family: 'VT323', monospace;
  font-size: 18px;
  padding: 10px 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #3a4353; }
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(88,166,255,0.15);
}

button[type=submit] {
  margin-top: 6px;
  background: var(--bg-2);
  color: var(--ink);
  border: 2px solid var(--accent);
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 13px 10px;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
button[type=submit]:hover {
  background: var(--accent);
  color: #0b0f16;
  box-shadow: 0 0 16px rgba(88,166,255,0.35);
}
button[type=submit]:active { transform: translateY(1px); }

.err {
  background: rgba(248,81,73,0.10);
  border: 1px solid var(--red);
  color: #ff9e99;
  font-size: 9px;
  padding: 9px 10px;
  margin-bottom: 16px;
}

.card-foot {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--panel-b);
  text-align: center;
  font-size: 8px;
  color: var(--ink-dim);
  letter-spacing: 1px;
}
.dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  animation: live 1.6s ease-in-out infinite;
}
@keyframes live { 50% { opacity: 0.35; } }

.legend-line {
  font-size: 8px;
  color: var(--ink-dim);
  letter-spacing: 2px;
  text-align: center;
  opacity: 0.7;
  max-width: 380px;
  line-height: 1.6;
}

@media (max-width: 420px) {
  .card { padding: 22px 20px; }
  .card-head h1 { font-size: 11px; }
  .sprite-row img { height: 34px; width: 34px; }
}
