:root {
  color-scheme: dark;
  font: 14px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e7edf6;
  background: #0d111b;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

main { width: min(100%, 300px); }

button, input {
  width: 100%;
  font: inherit;
  border-radius: 7px;
  padding: 12px 16px;
  outline-offset: 4px;
}

button {
  border: 1px solid transparent;
  color: #0d111b;
  background: #65d7b0;
  font-weight: 600;
  cursor: pointer;
}

button:hover { filter: brightness(1.08); }
button:disabled { opacity: .5; cursor: wait; }

form { margin-top: 18px; }

input {
  border: 1px solid #283247;
  background: #141a27;
  color: inherit;
  text-align: center;
  font: 24px/1.4 ui-monospace, monospace;
  letter-spacing: 6px;
  margin-bottom: 12px;
}

#login-error {
  color: #ff939d;
  font-size: 13px;
  margin: 14px 0 0;
}

#login-error:empty { display: none; }
