/*
 * Shared password visibility control for Open and Platform.
 * Assembly roots provide only the asset include; geometry and behavior live here.
 */
.shx-password-field {
  position: relative;
}

.shx-password-field--wrapped {
  display: inline-block;
  max-width: 100%;
}

.shx-password-field--block {
  display: block;
  width: 100%;
}

.shx-password-field > input {
  padding-inline-end: 3rem !important;
}

.shx-password-field.form-floating > label {
  inset-inline-end: 2.75rem;
}

.shx-password-toggle {
  position: absolute;
  z-index: 5;
  top: 50%;
  inset-inline-end: .65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--bs-secondary-color, #6c757d);
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.shx-password-toggle:hover {
  background: var(--bs-secondary-bg, rgba(108, 117, 125, .12));
  color: var(--bs-body-color, #212529);
}

.shx-password-toggle:focus-visible {
  color: var(--bs-body-color, #212529);
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

.shx-password-toggle__icon {
  width: 1.1rem;
  height: 1.1rem;
  pointer-events: none;
}
