:root {
  color-scheme: light dark;
  font-family: Inter, system-ui, sans-serif;
  --page-background: #f2f4f8;
  --surface: #ffffff;
  --text: #17191e;
  --muted-text: #5c6470;
  --border: #c8ced8;
  --input-border: #778191;
  --button: #315fc3;
  --button-text: #ffffff;
  --error: #b42318;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-background: #111318;
    --surface: #1b1e25;
    --text: #f7f7f8;
    --muted-text: #b8bec9;
    --border: #343842;
    --input-border: #626a78;
    --button: #8babff;
    --button-text: #10131a;
    --error: #ff9b9b;
  }
}

body {
  display: grid;
  min-height: 100vh;
  margin: 0;
  place-items: center;
  background: var(--page-background);
  color: var(--text);
}

main {
  width: min(34rem, calc(100% - 3rem));
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}

h1 {
  margin-top: 0;
}

p {
  color: var(--muted-text);
  line-height: 1.5;
}

input {
  box-sizing: border-box;
  width: 100%;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px dashed var(--input-border);
  border-radius: 0.6rem;
  background: var(--surface);
  color: var(--text);
}

button {
  width: 100%;
  padding: 0.85rem;
  border: 0;
  border-radius: 0.6rem;
  background: var(--button);
  color: var(--button-text);
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

#message {
  min-height: 1.5rem;
  margin-bottom: 0;
}

.error {
  color: var(--error);
}
