/* Password Toggle Styling */
.password-wrapper {
  position: relative;
  display: block;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #666;
  transition: color 0.3s ease;
  z-index: 10;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: #F57C00;
}

.password-toggle:focus {
  outline: 2px solid #F57C00;
  outline-offset: 2px;
  border-radius: 4px;
}

.password-toggle i {
  font-size: 18px;
  pointer-events: none;
}

/* Ensure password input has padding for toggle button */
.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  padding-right: 45px !important;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Accessibility: High contrast mode support */
@media (prefers-contrast: high) {
  .password-toggle {
    border: 1px solid currentColor;
  }
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .password-toggle {
    transition: none;
  }
}
