.pg-password-field {
  display: block;
  position: relative;
  min-width: 0;
  width: 100%;
}
.pg-password-field > input {
  width: 100%;
  box-sizing: border-box;
  margin-block: 0;
  padding-inline-end: 3.25rem !important;
}
.pg-password-field > input::-ms-reveal { display: none; }
.pg-password-field > button.pg-password-eye {
  position: absolute;
  inset-inline-end: .25rem;
  inset-block-start: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: min(2.5rem, 100%);
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: .4rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.pg-password-eye:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.pg-password-eye::before {
  content: '';
  width: 21px;
  height: 21px;
  background-color: currentColor;
  --eye: 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.8'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  -webkit-mask: var(--eye) center / contain no-repeat;
  mask: var(--eye) center / contain no-repeat;
}
.pg-password-eye[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  width: 23px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
