:root {
  --ink: #16191c;
  --mut: #6e7378;
  --mut2: #9aa0a6;
  --hair: #c9cdd2;
  --redink: #b92c13;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

.login {
  width: min(100% - 48px, 280px);
  margin: 18vh auto 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 64px;
}

.brand img { height: 26px; width: auto; display: block; }
.brand span { padding-left: 12px; border-left: 1px solid var(--hair); font-size: 13px; color: var(--mut); }

.step { animation: appear 0.35s ease-out; }
@keyframes appear { from { opacity: 0; } }

label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--mut);
  overflow-wrap: anywhere;
}

label span { color: var(--ink); }

input {
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--hair);
  border-radius: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

input::placeholder { color: var(--mut2); }
input:focus { border-bottom-color: var(--ink); }

#login-code {
  font-size: 22px;
  letter-spacing: 0.6em;
  text-indent: 0.3em;
}

.message {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--redink);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
}

.note { font-size: 12px; color: var(--mut2); }

button {
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

button:hover:not(:disabled) { color: #000; }
button:disabled { color: var(--mut2); border-color: var(--mut2); cursor: wait; }
button:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

button.quiet {
  border-bottom-color: transparent;
  font-size: 12px;
  color: var(--mut);
}

button.quiet:hover { color: var(--ink); }
