:root {
  --bg: #f7f5f0;
  --text: #1f2328;
  --accent: #c2410c;
  --accent-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181c;
    --text: #eceff3;
    --accent: #fb923c;
    --accent-text: #16181c;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

main {
  text-align: center;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(2.25rem, 9vw, 4.5rem);
  line-height: 1.1;
}

button {
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

button.secondary {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px currentColor;
}

#account {
  width: min(320px, calc(100vw - 32px));
  margin: 24px auto 0;
}

#login-form {
  display: grid;
  gap: 12px;
  text-align: left;
}

label {
  display: grid;
  gap: 4px;
  font-size: 0.875rem;
}

input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
}

.actions {
  display: flex;
  gap: 8px;
}

.actions button {
  flex: 1;
}

#who {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

#auth-status {
  margin: 12px 0 0;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

#auth-status:empty {
  display: none;
}

#version {
  position: fixed;
  right: 16px;
  bottom: 16px;
  font-size: 0.875rem;
  opacity: 0.7;
}
