.loginwrap {
  max-width: 380px;
  margin: 6vh auto 2rem;
  padding: 0 1rem;
}
.loginwrap h1 { font-size: 1.35rem; margin-bottom: 1.2rem; }
.lead { font-weight: 600; margin-bottom: 0.8rem; }
.hint { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.8rem; }

form { display: flex; flex-direction: column; gap: 0.4rem; }
form label:not(.check) { margin-top: 0.5rem; }
form button { margin-top: 1rem; }

label.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-size: 0.9rem;
  margin-top: 0.7rem;
}
label.check input { width: auto; }

#totp-code, #enroll-code {
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  text-align: center;
}

.qr {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 0.8rem;
}
.qr svg { display: block; width: 220px; height: 220px; max-width: 100%; }

#secret { user-select: all; }
