.password-control {
  position: relative;
  display: block;
  min-width: 0;
}

.password-control > input {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  padding-inline-end: 54px;
}

.password-control > input::-ms-reveal {
  display: none;
}

.password-control > .password-visibility {
  position: absolute;
  inset-inline-end: 4px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  max-inline-size: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--site-ink, currentColor);
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.password-visibility:hover, .password-visibility[aria-pressed="true"] {
  background: var(--site-control-active, rgba(96, 113, 143, .16));
}

.password-visibility:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}

.password-visibility::before {
  --eye-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.06 12.35a1 1 0 0 1 0-.7 10.75 10.75 0 0 1 19.88 0 1 1 0 0 1 0 .7 10.75 10.75 0 0 1-19.88 0'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  content: "";
  width: 21px;
  height: 21px;
  background: currentColor;
  -webkit-mask: var(--eye-icon) center / contain no-repeat;
  mask: var(--eye-icon) center / contain no-repeat;
}

.password-visibility[aria-pressed="true"]::before {
  --eye-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 3 18 18M10.58 10.59a2 2 0 0 0 2.83 2.83M9.88 5.09A10.94 10.94 0 0 1 12 5c5 0 8.5 4 10 7a15.5 15.5 0 0 1-2.92 3.83M6.61 6.61A15.5 15.5 0 0 0 2 12c1.5 3 5 7 10 7a10.7 10.7 0 0 0 5.39-1.39'/%3E%3C/svg%3E");
}

.inline-form .password-control > input {
  padding-inline: 12px 54px;
  border: 1px solid var(--site-line, #a1adbd);
  border-radius: 8px;
  color: var(--site-ink);
  background: var(--site-floating-glass, #fff);
  font: inherit;
}
