/* =========================================================
   Auth Password Field (composant réutilisable)
   Objectif :
   - input pleine largeur
   - bouton œil même hauteur que l’input
   - AUCUNE collision avec .auth-card button (app.css)
   Scope : uniquement le composant .auth-pw
   ========================================================= */

/* Wrapper */
.auth-pw{
  display: flex;
  align-items: stretch;          /* ✅ même hauteur input / bouton */
  width: 100%;
  gap: 8px;
}

/* Champ mot de passe */
.auth-pw__input{
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* =========================================================
   Bouton œil
   - reset TOTAL des styles globaux
   - neutralise .auth-card button { width:100%; margin-top:12px; ... }
   ========================================================= */

.auth-pw__toggle{
  /* ⬛ Carré parfait basé sur la hauteur */
  flex: 0 0 auto !important;
  height: 44px !important;
  aspect-ratio: 1 / 1 !important;   /* ✅ clé du correctif */
  width: auto !important;
  min-width: unset !important;

  /* Alignement exact avec l’input */
  align-self: stretch !important;

  /* Reset marges/paddings hérités */
  margin: 0 !important;
  padding: 0 !important;

  /* Layout */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  /* Reset navigateur / framework */
  appearance: none !important;
  -webkit-appearance: none !important;

  /* Style visuel */
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,.15) !important;
  border-radius: 8px !important;

  cursor: pointer !important;
  user-select: none !important;

  line-height: 1 !important;
  font-size: 18px !important;
  box-sizing: border-box !important;
}
/* États */
.auth-pw__toggle:hover{
  filter: brightness(0.98);
}

.auth-pw__toggle:active{
  transform: translateY(1px);
}

.auth-pw__toggle:focus{
  outline: 2px solid rgba(59,130,246,.45);
  outline-offset: 2px;
}

/* =========================================================
   Thème sombre (pages auth)
   ========================================================= */

body.theme-dark .auth-pw__toggle{
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}