/* The sign-in screen: the preloader's wall of dots, and under its logo a password and a code. */

body { overflow: hidden auto; }
.boot { z-index: 0; }

.lock {
  position: absolute;
  top: var(--lock-top, 62vh);
  left: 50%;
  z-index: 1;
  width: min(336px, 100vw - 32px);
  padding-bottom: 32px;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.5s ease, transform 0.6s var(--ease);
}
.lock.on { opacity: 1; transform: translate(-50%, 0); }

.field {
  display: grid;
  grid-template-columns: 9ch minmax(0, 1fr);
  align-items: end;
  margin-bottom: 12px;
  padding: 0 0 5px;
  border-bottom: 1px solid var(--line-2);
  color: var(--fg-3);
  cursor: text;
  transition: border-color 0.15s;
}
.field:focus-within { border-color: var(--accent); color: var(--fg-2); }
.field span { padding-bottom: 3px; }
.field input {
  width: 100%;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  color: var(--fg);
  font-size: 22px;
  line-height: 28px;
  caret-color: var(--accent);
}
.field input::placeholder { color: var(--fg-4); }
#code { letter-spacing: 4px; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 28px; margin-top: 16px; }
.msg { min-width: 0; color: var(--fg-3); }
.msg.bad { color: var(--bad); }
.msg.ok { color: var(--ok); }
.lock.busy .field, .lock.busy .btn { opacity: 0.45; pointer-events: none; }

.notice { color: var(--fg-2); text-align: center; }
.notice code {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 11px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  color: var(--fg);
  font: inherit;
}
.notice p + p { margin-top: 12px; color: var(--fg-3); }

@media (prefers-reduced-motion: reduce) {
  .lock { transition: none; }
}
