.page-login .content {
  padding: 22px 20px 24px;
}

.login-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  margin-bottom: 14px;
}

.page-password .userbar {
  width: min(420px, calc(100vw - 56px));
}

.password-lead {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
}

.page-mfa .userbar {
  width: min(760px, calc(100vw - 56px));
}

.mfa-back-link {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
}

.mfa-back-link a {
  color: #334155;
}

.hidden-form {
  display: none;
}

.trust-device-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  line-height: 1.45;
  cursor: pointer;
}

.trust-device-label input {
  margin-top: 2px;
  flex-shrink: 0;
}

.mfa-method-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mfa-method-card {
  border: 1px solid #dbe3f0;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
}

.mfa-method-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.mfa-method-card p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

.mfa-method-disabled {
  opacity: 0.72;
  background: #f8fafc;
}

.mfa-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 12px 0 10px;
}

.mfa-qr {
  width: 180px;
  height: 180px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.mfa-manual-secret {
  font-size: 12px;
  color: #64748b;
  word-break: break-all;
}

.mfa-confirm-form {
  margin-top: 12px;
}

.backup-code-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.backup-code-list code {
  font-size: 14px;
  letter-spacing: 0.04em;
}

.inline-form {
  display: inline;
  margin-left: 6px;
}

.table-link-btn {
  border: none;
  background: none;
  color: #2563eb;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .mfa-method-list,
  .backup-code-list {
    grid-template-columns: 1fr;
  }
}
