/* ==========================================================
   BOISERIE JUMP - Petit oeil mot de passe
   Fichier : css/password-eye.css
   ========================================================== */

.bj-password-field {
  position: relative;
  width: 100%;
}

.bj-password-field input {
  width: 100%;
  padding-right: 52px !important;
}

.bj-password-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
  -webkit-tap-highlight-color: transparent;
}

.bj-password-eye img,
.bj-password-eye svg {
  width: 20px;
  height: 20px;
  display: block;
  pointer-events: none;
}

.bj-password-eye:hover {
  background: rgba(0, 242, 234, .15);
  border-color: rgba(0, 242, 234, .55);
  box-shadow: 0 0 14px rgba(0, 242, 234, .18);
}

.bj-password-eye:active {
  transform: translateY(-50%) scale(.94);
}

.bj-password-eye.is-visible {
  background: rgba(124, 255, 107, .14);
  border-color: rgba(124, 255, 107, .62);
  box-shadow: 0 0 14px rgba(124, 255, 107, .16);
}

.bj-password-eye:focus-visible {
  outline: 2px solid rgba(0, 242, 234, .95);
  outline-offset: 3px;
}

/* Variante si ton champ est très petit sur mobile */
@media (max-width: 520px) {
  .bj-password-eye {
    right: 8px;
    width: 31px;
    height: 31px;
    border-radius: 10px;
  }

  .bj-password-eye img,
  .bj-password-eye svg {
    width: 18px;
    height: 18px;
  }

  .bj-password-field input {
    padding-right: 46px !important;
  }
}


/* Intégration Boiserie Jump V44 */
.bj-password-field { margin-top: 10px; }
.bj-password-field input { margin-top: 0 !important; }
.accountBox .bj-password-field { margin: 10px 0 0; }
.admin-login .bj-password-field input { text-align: center; }
.bj-password-eye img { filter: drop-shadow(0 0 4px rgba(0,242,234,.22)); }
