.password-field {
  position: relative; display: inline-grid; min-width: 0; max-width: 100%;
}
.dash .password-field, .login .password-field { display: grid; width: 100%; }
.password-field input.password-input,
.login .form-row .password-field #id_password { padding-inline-end: 46px; }
.password-input::-ms-reveal { display: none; }
.password-toggle {
  position: absolute; z-index: 1; inset-inline-end: 3px; inset-block-start: 50%; translate: 0 -50%;
  display: grid; place-items: center; padding: 0; width: 39px; height: min(34px, 100%);
  border: 0; border-radius: 6px; background: transparent; color: inherit; cursor: pointer;
}
.password-toggle:hover { background: color-mix(in srgb, currentColor 9%, transparent); }
.password-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.password-toggle::before {
  content: ""; width: 20px; height: 20px; background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-6 10-6 10 6 10 6-3.6 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.password-toggle[data-visible="true"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 3 18 18M10.6 6.1 12 6c6.4 0 10 6 10 6-.6 1-1.6 2.2-2.8 3.2M6.3 7.7C3.6 9.5 2 12 2 12s3.6 6 10 6c1.4 0 2.7-.3 3.8-.8M10.2 10.2a2.5 2.5 0 0 0 3.6 3.6'/%3E%3C/svg%3E");
}
