/**
 * wiclee-password-field.css — Campo de contraseña con botón "ojo" (mostrar/ocultar).
 * Contexto: lo usa templates/comunes/wiclee-password-field.twig, incluido en el login del
 *   portal (templates/login/auth/_form.twig) y en el login del CRM (templates/CRM/index.twig).
 *   El comportamiento vive en js/wicleePasswordToggle.js.
 * Notas de mantenimiento: solo tokens de css/tokens.css; el aspecto del <input> lo aporta
 *   la clase pasada en `input_class` (wiclee-auth-input en el portal, form-control en el CRM).
 *   Requiere Font Awesome (fa-eye / fa-eye-slash), ya cargado en ambos logins.
 */

.wiclee-password-field {
  position: relative;
}

/* Doble clase: gana a .form-control de Bootstrap sin usar !important. */
.wiclee-password-field .wiclee-password-field__input {
  width: 100%;
  padding-right: 3rem;
}

.wiclee-password-field__toggle {
  position: absolute;
  top: 50%;
  right: var(--wiclee-space-xs);
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: var(--wiclee-radius-md);
  background: transparent;
  color: var(--wiclee-text-muted);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.wiclee-password-field__toggle:hover {
  color: var(--wiclee-text);
  background: var(--wiclee-bg-muted);
}

.wiclee-password-field__toggle:focus-visible {
  outline: 2px solid var(--wiclee-primary);
  outline-offset: 1px;
}
