/* Black, quiet, one white call to action. Always dark: the pages are a short
   detour from Blender, which is dark too. */
:root {
  --bg: #000000;
  --card: #0b0b0c;
  --raised: #141416;
  --line: #222225;
  --text: #f5f5f7;
  --muted: #8e8e93;
  --button: #ffffff;
  --button-text: #000000;
  --error: #ff6b5e;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    radial-gradient(1200px 600px at 50% -10%, #1a1a1d 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.brand .mark {
  width: 22px;
  height: 22px;
  fill: var(--text);
}

h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p { margin: 0 0 20px; }
.lede { color: #c7c7cc; }
.lede strong { color: var(--text); font-weight: 600; }
.muted { color: var(--muted); font-size: 13px; }
.message { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.message:empty { display: none; }
#error-text { color: var(--error); }

a { color: var(--text); }

label {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raised);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input::placeholder { color: #5a5a5f; }
input:focus { border-color: #5a5a5f; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); }

button {
  width: 100%;
  height: 46px;
  margin: 0 0 10px;
  border: 1px solid var(--button);
  border-radius: 12px;
  background: var(--button);
  color: var(--button-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.05s;
}

button:hover { opacity: 0.9; }
button:active { transform: scale(0.99); }
button:disabled { opacity: 0.5; cursor: default; }

button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

button.secondary:hover { background: var(--raised); opacity: 1; }

button.link {
  display: block;
  width: auto;
  height: auto;
  margin: 16px auto 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

button.link:hover { color: var(--text); opacity: 1; }

.code {
  margin: 0 0 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
  text-align: center;
  font: 600 28px/1 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.12em;
}

.scope {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
}

.scope li {
  padding: 12px 16px;
  color: #c7c7cc;
  font-size: 14px;
}

.scope li + li { border-top: 1px solid var(--line); }

.notice {
  padding: 12px 14px;
  border-left: 2px solid #5a5a5f;
  color: var(--muted);
  font-size: 13px;
}

.notice strong { color: var(--text); }

.check {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--button);
  color: var(--button-text);
  font-size: 22px;
  font-weight: 700;
}
