.password-control {
  position: relative;
  display: block;
  margin-top: 8px;
}

.password-control > input:not([type=checkbox]):not([type=radio]):not([type=hidden]) {
  margin-top: 0;
  padding-right: 52px;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  width: 40px;
  height: 40px;
  min-height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #48636b;
  transform: translateY(-50%);
  transition: background-color 160ms ease, color 160ms ease;
}

.password-visibility-toggle::before {
  width: 23px;
  height: 23px;
  background: currentColor;
  content: "";
  -webkit-mask: url("icons/tabler/eye.svg") center / contain no-repeat;
  mask: url("icons/tabler/eye.svg") center / contain no-repeat;
}

.password-visibility-toggle[aria-pressed="true"]::before {
  -webkit-mask-image: url("icons/tabler/eye-off.svg");
  mask-image: url("icons/tabler/eye-off.svg");
}

.password-visibility-toggle:hover {
  background: #e5f2ee;
  color: #075f50;
}

.password-visibility-toggle:active { background: #d8ebe6; }
.password-visibility-toggle:focus-visible { outline: 3px solid #b05d00; outline-offset: 2px; }
