/* Enhanced Password Toggle Styles with higher specificity and debugging */
.form-input.position-relative .show-hide,
.login-card .show-hide,
.show-hide {
  position: absolute !important;
  top: 50% !important;
  right: 15px !important;
  -webkit-transform: translateY(-50%) !important;
          transform: translateY(-50%) !important;
  z-index: 10 !important;
  display: block !important; /* Force display */
}

.form-input.position-relative .show-hide span,
.login-card .show-hide span,
.show-hide span {
  cursor: pointer !important;
  font-size: 16px !important;
  color: #666 !important;
  display: inline-block !important;
  padding: 5px !important;
  line-height: 1 !important;
  text-align: center !important;
  transition: all 0.3s ease !important;
  border: none !important;
  border-radius: 50% !important;
  background: transparent !important;
  min-width: 30px !important;
  height: 30px !important;
  font-weight: normal !important;
}

.form-input.position-relative .show-hide span:hover,
.login-card .show-hide span:hover,
.show-hide span:hover {
  color: #007bff !important;
  background: rgba(0, 123, 255, 0.1) !important;
  transform: scale(1.1) !important;
}

/* Font Awesome 4 Eye Icons */
.form-input.position-relative .show-hide span.show:before,
.login-card .show-hide span.show:before,
.show-hide span.show:before {
  content: "\f06e" !important; /* Font Awesome 4 eye icon */
  font-family: "FontAwesome" !important;
  font-weight: normal !important;
}

.form-input.position-relative .show-hide span:before,
.login-card .show-hide span:before,
.show-hide span:before {
  content: "\f070" !important; /* Font Awesome 4 eye-slash icon */
  font-family: "FontAwesome" !important;
  font-weight: normal !important;
}

/* Dark theme adjustments */
.dark-only .show-hide span {
  color: #ccc;
  background: #333;
  border-color: #555;
}

.dark-only .show-hide span:hover {
  color: #fff;
  background: #444;
  border-color: #777;
}

/* Adjustments for validation states */
.needs-validation .show-hide {
  right: 30px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .show-hide {
    right: 10px;
  }
  
  .show-hide span {
    font-size: 10px;
    min-width: 30px;
  }
}

/* Login card specific adjustments */
.login-card .login-main .theme-form .show-hide {
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
}

/* Form input specific adjustments */
.form-input.position-relative .show-hide {
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
}

/* Additional accessibility improvements */
.show-hide span:focus {
  outline: 2px solid #007bff;
  outline-offset: 1px;
  border-radius: 3px;
}

.show-hide span[aria-label] {
  position: relative;
}
