.login-panel {
  max-width: 30rem;
}

.login-form {
  display: grid;
  gap: .75rem;
}

.login-form input:not([type="hidden"]):not([type="checkbox"]) {
  width: 100%;
  min-width: 0;
  padding: .65rem .75rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

.login-form input[type="checkbox"] { accent-color: var(--brand-1); }

.mfa-qr canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.mfa-manual { margin-block: .75rem; }
.mfa-manual summary { cursor: pointer; }

.login-form .btn {
  justify-self: start;
  margin-top: .5rem;
}

.login-password { position: relative; }
.login-form .has-password-toggle input { padding-inline-end: 3rem; }
.has-password-toggle input::-ms-reveal { display: none; }
.login-password-toggle {
  position: absolute;
  inset-block: 0;
  inset-inline-end: .2rem;
  width: 2.65rem;
  border: 0;
  border-radius: .45rem;
  background: transparent;
  color: var(--brand-1);
  cursor: pointer;
}
.login-password-toggle:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: -3px;
}
.login-eye {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: .8rem;
  border: 2px solid currentColor;
  border-radius: 70% 30%;
  transform: rotate(25deg);
}
.login-eye::before {
  content: "";
  width: .3rem;
  height: .3rem;
  border-radius: 50%;
  background: currentColor;
}
.login-password-toggle[aria-pressed="true"] .login-eye::after {
  content: "";
  position: absolute;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  transform: rotate(30deg);
}
