.password-field {
  position: relative;
  margin-top: 7px;
}

.password-field input {
  margin-top: 0;
  padding-right: 52px;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color .15s ease, background .15s ease;
}

.password-visibility-toggle:hover {
  color: var(--accent);
  background: var(--accent-softer);
}

.password-visibility-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.password-eye {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-eye-closed,
.password-visibility-toggle[aria-pressed="true"] .password-eye-open {
  display: none;
}

.password-visibility-toggle[aria-pressed="true"] .password-eye-closed {
  display: block;
}
