:root {
  color-scheme: light dark;
  font-family: system-ui, sans-serif;
  --accent: #2f6fed;
}

body {
  margin: 0;
  display: grid;
  place-items: start center;
  min-height: 100vh;
}

main {
  width: min(24rem, 100% - 2rem);
  margin-top: 15vh;
}

h1 {
  font-size: 1.5rem;
}

form, ul {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

input, button {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border-radius: 0.5rem;
}

input {
  border: 1px solid #8888;
}

button {
  border: none;
  background: var(--accent);
  color: white;
  cursor: pointer;
  width: 100%;
}

button:disabled {
  opacity: 0.6;
  cursor: progress;
}

button.link {
  background: none;
  color: var(--accent);
  width: auto;
  padding: 0;
}

.agent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #d33;
}

.dot.online {
  background: #2a2;
}

.error {
  color: #d33;
}
