:root {
  color: #171a2c;
  background: #eef2ff;
  font-family: Aptos, "Segoe UI Variable", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(67, 83, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 83, 255, 0.07) 1px, transparent 1px),
    #eef2ff;
  background-size: 24px 24px;
}

button, input { font: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(67, 83, 255, 0.3); outline-offset: 2px; }
[hidden] { display: none !important; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(420px, 100%);
  border: 1px solid #cbd2ea;
  border-top: 4px solid #4353ff;
  border-radius: 6px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 26px 70px rgba(28, 33, 72, 0.16);
}

.eyebrow {
  margin: 0 0 11px;
  color: #68708d;
  font: 700 10px/1.2 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 { margin: 0; font: 600 30px/1.08 Bahnschrift, "Arial Narrow", sans-serif; letter-spacing: -0.03em; }
.auth-copy { margin: 12px 0 24px; color: #68708d; line-height: 1.45; }
.auth-form { display: grid; gap: 12px; }
.auth-form label { display: grid; gap: 7px; color: #414760; font-size: 13px; }
.auth-form input {
  width: 100%;
  height: 50px;
  border: 1px solid #bfc7e1;
  border-radius: 4px;
  padding: 0 14px;
  color: #171a2c;
  background: #fff;
  font-size: 18px;
}
.pin-input { text-align: center; font: 700 25px/1 "Cascadia Code", Consolas, monospace !important; letter-spacing: 0.28em; }
.auth-form button, .board-open {
  min-height: 46px;
  border: 0;
  border-radius: 4px;
  padding: 0 18px;
  color: #fff;
  background: #2638e8;
  cursor: pointer;
  font-weight: 650;
}
.auth-form button:hover, .board-open:hover { background: #1727c9; }
.auth-form button:disabled, .board-open:disabled { cursor: wait; opacity: 0.58; }
.auth-error { min-height: 20px; margin: 2px 0 0; color: #b02d52; font-size: 13px; }
.auth-meta { margin: 18px 0 0; color: #7a819a; font-size: 11px; }

.master-shell { min-height: 100vh; }
.master-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #cbd2ea;
  padding: 0 18px;
  background: rgba(247, 248, 255, 0.96);
  backdrop-filter: blur(12px);
}
.master-brand { font: 700 11px/1 "Cascadia Code", Consolas, monospace; letter-spacing: 0.1em; }
.master-count { color: #737b99; font-size: 12px; }
.master-logout { margin-left: auto; border: 1px solid #c3cae1; border-radius: 4px; padding: 6px 10px; background: #fff; cursor: pointer; }
.master-content { width: min(1100px, calc(100% - 40px)); margin: 54px auto 80px; }
.master-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.master-heading p { margin: 8px 0 0; color: #68708d; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.board-card { display: grid; min-height: 190px; border: 1px solid #cbd2ea; border-top: 3px solid #00a2bd; border-radius: 5px; padding: 20px; background: rgba(255,255,255,0.92); box-shadow: 0 12px 34px rgba(28,33,72,0.08); }
.board-card h2 { margin: 0; font: 600 21px/1.12 Bahnschrift, "Arial Narrow", sans-serif; }
.board-host { margin: 8px 0 20px; color: #737b99; font: 11px/1.3 "Cascadia Code", Consolas, monospace; }
.board-open { align-self: end; justify-self: start; min-height: 38px; }

@media (max-width: 600px) {
  .auth-card { padding: 24px 20px; }
  .master-content { width: min(100% - 24px, 1100px); margin-top: 32px; }
  .master-heading { align-items: start; }
}

