/* Inloggningssidan och sidan för att koppla programmet. Samma färger och typsnitt som Handlarn. */
@font-face { font-family: "Alegreya"; src: url("fonts/alegreya-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/alegreya-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;
  --page: #e8ede6;
  --surface: #f7f9f5;
  --ink: #17201b;
  --ink-2: #56645c;
  --line: #d2dacf;
  --accent: #2e6a4e;
  --dear: #c0393a;
  --discord: #5865f2;
  --discord-ink: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0f1512;
    --surface: #17201b;
    --ink: #e5ece6;
    --ink-2: #9ba9a0;
    --line: #2b3730;
    --accent: #79c098;
    --dear: #eb6263;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--page); }
body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px 16px;
  color: var(--ink);
  font: 17px/1.5 "Alegreya Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.gate {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 32px 28px;
  text-align: center;
}
.mark { width: 48px; height: 48px; }
h1 { font-family: "Alegreya", Georgia, serif; font-weight: 500; font-size: 2rem; margin: 8px 0 6px; }
p { margin: 0 0 14px; }
.lede { color: var(--ink-2); }
.small { color: var(--ink-2); font-size: 0.9rem; margin-top: 16px; }
.err { color: var(--dear); font-weight: 500; }
.code {
  font: 500 1.9rem/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.08em;
  margin: 18px 0 6px;
}
.discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--discord);
  color: var(--discord-ink);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.discord:hover { filter: brightness(1.08); }
.discord:disabled { opacity: 0.6; cursor: default; }
.discord:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.discord svg { width: 22px; height: 22px; }
strong { font-weight: 500; color: var(--ink); }
