.password-input-shell {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.password-input-shell > input {
  width: 100%;
  padding-right: 48px !important;
}

.password-visibility-toggle {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 5px;
  display: inline-grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #536159;
  background: transparent;
  font: inherit;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color .16s ease, background-color .16s ease;
}

.password-visibility-toggle:hover {
  color: #0d5b3d;
  background: #eef4ef;
}

.password-visibility-toggle:focus-visible {
  outline: 3px solid #ef5b44;
  outline-offset: 1px;
}

.password-visibility-toggle[aria-pressed="true"] {
  color: #0d5b3d;
  background: #e7f1e9;
}

.password-input-shell > input:disabled + .password-visibility-toggle {
  color: #929a94;
  cursor: not-allowed;
  background: transparent;
}

@media (max-width: 640px) {
  .password-input-shell > input {
    padding-right: 52px !important;
  }

  .password-visibility-toggle {
    right: 3px;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .password-visibility-toggle { transition: none; }
}
