/* The sign-in page (server/pages.js): the game's pixel style (style.css), no scripts. */
:root {
  --navy: #1b2340;
  --navy-2: #232d52;
  --edge: #46578f;
  --ink: #e8eeff;
  --dim: #9aa6cc;
  --lcd: #0c120f;
  --amber: #ffb400;
  --yellow: #ffd21f;
  --red: #ff5a4a;
  --green: #7dff8a;
  --font: 'Silkscreen', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0 2px, transparent 2px 32px),
    linear-gradient(#2b4a66 0 62%, #3d5a3a 62% 100%);
  font-family: var(--font);
  color: var(--ink);
  image-rendering: pixelated;
}

.box {
  width: 100%;
  max-width: 380px;
  background: var(--navy);
  border: 2px solid var(--edge);
  border-radius: 6px;
  box-shadow: 0 0 0 2px #0d1226, 6px 6px 0 rgba(0, 0, 0, 0.35);
  padding: 18px 18px 16px;
}

.train { display: block; width: 100%; height: auto; margin: 0 0 12px; }

h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--yellow);
  text-shadow: 2px 2px 0 #0d1226;
}

.board {
  margin: 10px 0 16px;
  padding: 8px 10px;
  background: var(--lcd);
  border: 2px solid #000;
  border-radius: 3px;
  color: var(--amber);
  font-size: 13px;
  letter-spacing: 1px;
  min-height: 34px;
}
.board.err { color: var(--red); }
.board.ok { color: var(--green); }

label { display: block; font-size: 11px; color: var(--dim); margin: 10px 0 4px; letter-spacing: 1px; }

input[type=text], input[type=password] {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--navy-2);
  border: 2px solid var(--edge);
  border-radius: 3px;
  padding: 8px 10px;
  outline: none;
}
input:focus { border-color: var(--yellow); }

button {
  margin-top: 16px;
  width: 100%;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #121416;
  background: var(--yellow);
  border: 2px solid #121416;
  border-radius: 3px;
  padding: 9px 10px;
  cursor: pointer;
  box-shadow: 3px 3px 0 #0d1226;
}
button:hover { background: #ffe25a; }
button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #0d1226; }

.foot { margin-top: 14px; font-size: 10px; color: var(--dim); text-align: center; letter-spacing: 1px; }
.foot a { color: var(--dim); }
