:root {
  color-scheme: dark;
  font-family: "Times New Roman", Times, serif;
  color: #fff;
  background: #000;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
}
main { width: 100%; max-width: 360px; }
a { color: inherit; }
#oauth-form { margin-top: 24px; }
h1 { margin: 0 0 40px; font-size: 32px; font-weight: normal; }
label { display: block; margin-bottom: 10px; font-size: 18px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; font-size: 18px; }
.code-digits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.code-digits input { min-width: 0; aspect-ratio: 1; padding: 0; text-align: center; font-size: 26px; }
input, textarea, button {
  width: 100%;
  border: 1px solid #666;
  border-radius: 0;
  padding: 12px;
  font: inherit;
  font-size: 18px;
  color: #fff;
  background: #000;
}
input::placeholder { color: #999; opacity: 1; }
textarea { resize: none; overflow-wrap: anywhere; }
button { margin-top: 20px; cursor: pointer; border-color: #fff; }
button:hover:not(:disabled) { color: #000; background: #fff; }
button:disabled { color: #888; border-color: #555; cursor: not-allowed; }
input:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.secondary { border: 0; width: auto; padding: 8px 0; text-decoration: underline; }
.secondary:hover:not(:disabled) { color: #fff; background: #000; }
.hint, #destination, #service-status, #message {
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.hint { color: #aaa; margin: 10px 0 0; }
#destination { margin: 0 0 24px; }
#service-status { color: #aaa; margin: 0 0 24px; }
#message { margin: 20px 0 0; }
#service-status:empty, #message:empty, [hidden] { display: none !important; }
