/* The sign-in page: one name, one button. Served to anyone, so it says nothing else. The page
   saying the world editor is not in this installation (sem-editor.html, a session's only) borrows it. */

:root {
  color-scheme: light dark;
  --surface: #f5f6f8;
  --card: #ffffff;
  --ink: #191c24;
  --muted: #5d6474;
  --line: #dde1e8;
  --discord: #5865f2;
  --warning-ink: #7a4b00;
  --warning-bg: #fff3d6;
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #14161b;
    --card: #1d2027;
    --ink: #eceef2;
    --muted: #a0a7b5;
    --line: #2f343e;
    --warning-ink: #ffd58a;
    --warning-bg: #3a2c10;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--surface);
  color: var(--ink);
}

.entrar {
  display: grid;
  gap: 16px;
  justify-items: center;
  width: min(360px, calc(100vw - 32px));
  margin: max(12vh, 32px) auto 32px;
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
  color: var(--muted);
}

.aviso {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--warning-bg);
  color: var(--warning-ink);
}

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--discord);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.botao:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--discord);
  outline-offset: 2px;
}

.dev {
  display: grid;
  gap: 8px;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.dev label {
  color: var(--muted);
  font-size: 14px;
}

.dev input,
.dev button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.dev input {
  padding: 0 10px;
  background: var(--surface);
  color: var(--ink);
}

.dev button {
  background: var(--ink);
  color: var(--card);
  font-weight: 700;
  cursor: pointer;
}
