@font-face {
  font-family: "Geist";
  src: url("/auth/static/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #000;
  --panel: #1a1a1a;
  --line: #2a2a2a;
  --control: #3a3a3a;
  --bone: #efefeb;
  --quiet: #a3a39e;
  --faint: #8c8c87;
  --lime: #f0f423;
  --ink: #141414;
  --slate: #6a7681;
  --bad: #ff8a9b;
}

body.gate-signin > svg[hidden] {
  display: none;
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--black);
  color: var(--bone);
  font-family: Geist, ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.45;
}

body.gate-signin {
  position: fixed;
  inset: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vh, 40px) clamp(16px, 4vw, 32px);
  background-color: var(--black);
  background-image: radial-gradient(circle, var(--slate) 1px, transparent 1.6px);
  background-size: 44px 44px;
  background-position: center;
}

.sheet {
  position: relative;
  width: min(440px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(28px, 4.5vh, 44px) clamp(20px, 4vw, 36px) clamp(18px, 3vh, 28px);
  border: 1px solid var(--line);
  background: var(--black);
}

.plus {
  position: absolute;
  width: 11px;
  height: 11px;
  color: rgb(255 255 255 / .8);
  pointer-events: none;
}

.plus.tl { top: 14px; left: 14px; }
.plus.tr { top: 14px; right: 14px; }
.plus.bl { bottom: 14px; left: 14px; }
.plus.br { bottom: 14px; right: 14px; }

.synthera {
  display: block;
  height: clamp(26px, 4.6vh, 36px);
  width: auto;
  margin: 0 0 clamp(14px, 2.4vh, 22px);
  filter: brightness(0) invert(1);
}

h1 {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.empire {
  display: block;
  width: min(100%, 280px);
  height: auto;
  color: #fff;
}

.lede {
  max-width: 34ch;
  margin: clamp(12px, 2vh, 16px) auto 0;
  color: var(--quiet);
  font-size: clamp(0.9rem, 2vh, 1rem);
}

.actions {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: clamp(18px, 3vh, 28px);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--control);
  border-radius: 4px;
  background: transparent;
  color: var(--bone);
  font: 500 0.95rem/1 Geist, ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}

.btn.primary:hover { background: #e4e81c; }

.btn:hover { border-color: #4a4a4a; }

.btn:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.btn[aria-disabled="true"],
.btn:disabled {
  border-color: var(--line);
  background: var(--panel);
  color: var(--faint);
  cursor: not-allowed;
  pointer-events: none;
}

.msg {
  min-height: 1.2em;
  margin: clamp(10px, 1.6vh, 14px) 0 0;
  color: var(--lime);
  font-size: 0.88rem;
}

.msg.bad { color: var(--bad); }

@media (max-height: 640px) {
  .btn { min-height: 42px; }
  .plus.tl, .plus.tr { top: 10px; }
  .plus.bl, .plus.br { bottom: 10px; }
  .plus.tl, .plus.bl { left: 10px; }
  .plus.tr, .plus.br { right: 10px; }
}
