/* Show / hide password eye (see js/password_toggle.js). Colours follow the brand sheet. */
.pw-field { position: relative; }
.pw-field > .form-control,
.pw-field > .form-control.is-valid,
.pw-field > .form-control.is-invalid {
  padding-right: 2.9rem;
  background-image: none;          /* keep Bootstrap's validation icon from sitting under the eye */
}

.pw-eye {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5d6b66;
  cursor: pointer;
}
.pw-eye svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pw-eye:hover { color: #17211E; }
.pw-eye[aria-pressed="true"] { color: #087F5B; }
.pw-eye:focus-visible {
  outline: 2px solid #087F5B;
  outline-offset: -3px;
  color: #087F5B;
}

/* Register, change password, complete registration: the eye floats inside the field. */
.pw-field > .pw-eye {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border-radius: 0 .375rem .375rem 0;
}

/* Login: the eye is the last cell of the input group, next to the lock icon cell. */
.input-group > .pw-eye--group {
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-left: 0;
  background: #fff;
  border-radius: 0 .375rem .375rem 0;
}
.input-group > .form-control:has(+ .pw-eye--group) { border-right: 0; }
