.apex-password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
}
.apex-password-field > input {
  grid-column: 1 / -1;
  grid-row: 1;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding-inline-end: 5.25rem;
}
.apex-password-field > input::-ms-reveal { display: none; }
.apex-password-field > button.apex-password-toggle {
  grid-column: 2;
  grid-row: 1;
  z-index: 1;
  width: auto;
  min-width: 44px;
  min-height: 44px;
  height: auto;
  margin: 0 .35rem 0 0;
  padding: .4rem .55rem;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font: 600 .875rem/1.2 system-ui, sans-serif;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}
.apex-password-field > .apex-password-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}
