/* src/style/password-toggle.css */
/* Password field container with toggle button */

.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-field input {
  flex: 1;
  padding-right: 45px; /* Space for toggle button */
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.password-field input:focus {
  outline: none;
  border-color: #283655;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 16px;
  padding: 8px;
  z-index: 2;
  border-radius: 3px;
  transition:
    color 0.3s ease,
    background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: #333;
  background-color: rgba(0, 0, 0, 0.05);
}

.password-toggle:focus {
  outline: 2px solid #283655;
  outline-offset: 2px;
}

.password-toggle:active {
  transform: translateY(-50%) scale(0.95);
}

.password-toggle i {
  pointer-events: none;
  font-size: 14px;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .password-field input {
    padding-right: 40px;
  }

  .password-toggle {
    right: 8px;
    padding: 6px;
    font-size: 14px;
  }
}

/* Dark mode support (if implemented) */
@media (prefers-color-scheme: dark) {
  .password-toggle {
    color: #ccc;
  }

  .password-toggle:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .password-toggle {
    border: 1px solid;
  }

  .password-toggle:hover {
    background-color: ButtonHighlight;
    color: ButtonText;
  }
}
