.password-reveal {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control-height);
  height: 100%;
  padding: 0;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.password-reveal:hover {
  color: var(--text);
}

.password-reveal:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.password-reveal .icon:last-child,
.password-reveal[aria-pressed="true"] .icon:first-child {
  display: none;
}

.password-reveal[aria-pressed="true"] .icon:last-child {
  display: block;
}

@media (width >= 720px) {
  .password-reveal {
    width: var(--control-height-desktop);
  }
}
