:root {
  --bg: #1a1423;
  --bg-dot: #241b31;
  --card: #2b2138;
  --edge: #0e0a14;
  --roof: #b5523b;
  --text: #f4e6c8;
  --muted: #c9b48f;
  --accent: #f2b441;
  --accent-dark: #a86d12;
  --field: #16101e;
  --error: #ff8a7a;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'VT323', ui-monospace, monospace;
  font-size: 22px;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(var(--bg-dot) 2px, transparent 2px);
  background-size: 16px 16px;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 16px;
  -webkit-font-smoothing: none;
}
.card {
  width: 100%; max-width: 380px;
  background: var(--card);
  border: 4px solid var(--edge);
  box-shadow: 8px 8px 0 var(--edge), inset 0 0 0 4px #3a2d4a;
  padding: 0 24px 20px;
  position: relative;
  image-rendering: pixelated;
}
.roof {
  height: 20px; margin: 0 -24px 12px;
  background: repeating-linear-gradient(90deg, var(--roof) 0 16px, #8f3d2b 16px 20px);
  border-bottom: 4px solid var(--edge);
}
h1 {
  margin: 8px 0 0; font-size: 48px; font-weight: normal; line-height: 1;
  color: var(--accent); text-shadow: 3px 3px 0 var(--edge); letter-spacing: 1px;
}
.hint { margin: 4px 0 16px; color: var(--muted); }
form { display: flex; flex-direction: column; gap: 6px; }
label { margin-top: 6px; }
input {
  font: inherit; color: var(--text);
  background: var(--field);
  border: 4px solid var(--edge);
  padding: 6px 10px; width: 100%;
  border-radius: 0; outline: none;
}
input:focus-visible { border-color: var(--accent); }
button {
  margin-top: 14px; font: inherit; font-size: 26px;
  color: var(--edge); background: var(--accent);
  border: 4px solid var(--edge);
  box-shadow: 4px 4px 0 var(--accent-dark);
  padding: 6px 12px; cursor: pointer; border-radius: 0;
}
button:hover { filter: brightness(1.08); }
button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--accent-dark); }
button:focus-visible { outline: 3px dashed var(--text); outline-offset: 3px; }
button:disabled { opacity: .6; cursor: wait; }
.error { margin: 8px 0 0; color: var(--error); }
.foot { margin: 16px 0 0; color: var(--muted); font-size: 18px; text-align: center; }

.google {
  display: block; text-align: center; text-decoration: none;
  font-size: 26px; color: var(--edge); background: var(--text);
  border: 4px solid var(--edge); box-shadow: 4px 4px 0 var(--accent-dark);
  padding: 6px 12px;
}
.google:hover { filter: brightness(1.08); }
.google:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--accent-dark); }
.google:focus-visible { outline: 3px dashed var(--text); outline-offset: 3px; }
.google[aria-busy="true"] { opacity: .6; pointer-events: none; }
.or { margin: 18px 0 6px; text-align: center; color: var(--muted); }
