/* Hide the browser's own password reveal so only one eye shows. */
input::-ms-reveal,
input::-ms-clear {
  display: none;
}

.pw-toggle-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.pw-toggle-wrap > input[data-pw-toggle="1"] {
  width: 100%;
  box-sizing: border-box;
  padding-right: 44px !important;
}

.pw-toggle-btn {
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: #666;
  cursor: pointer;
  z-index: 2;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.pw-toggle-btn[aria-pressed="true"] {
  color: #f26a1b;
}

.pw-toggle-btn:focus {
  outline: none;
}

.pw-toggle-btn:focus-visible {
  outline: 2px solid #f26a1b;
  outline-offset: -2px;
}

.pw-toggle-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
