/* ==========================================================================
   BOOPETS V9.6 — Bouton « œil » des champs de mot de passe
   Feuille autonome : elle fonctionne sur le site public,
   dans la BoopetsCave et sur les pages d'installation.
   ========================================================================== */

.pw-field{
  position:relative;
  display:block;
  width:100%;
}
.pw-field > input{
  width:100%;
  /* On réserve la place du bouton pour que le texte ne passe jamais dessous. */
  padding-right:52px!important;
}

.pw-reveal{
  position:absolute;
  right:6px;
  top:50%;
  transform:translateY(-50%);
  z-index:2;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#9fb0cd;
  cursor:pointer;
  transition:color .15s ease,background .15s ease;
  -webkit-appearance:none;
  appearance:none;
}
.pw-reveal:hover{color:#f2d77d;background:rgba(242,215,125,.1)}
.pw-reveal:focus-visible{outline:2px solid #f2d77d;outline-offset:2px}
.pw-reveal.is-shown{color:#f2d77d}

.pw-reveal svg{
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Sur fond clair (pages d'installation), on inverse la teinte au repos. */
@media(prefers-color-scheme:light){
  .pw-reveal{color:#6b7891}
}

@media(prefers-reduced-motion:reduce){
  .pw-reveal{transition:none}
}

/* ==========================================================================
   V9.6 — Statut de connexion en toutes lettres
   Les pastilles posées sur le cadre du portrait sont remplacées par un
   libellé lisible, placé à côté de l'identité.
   ========================================================================== */

/* Plus aucun point de présence sur les portraits. */
.bp-portrait > .bp-presence{display:none!important}

.bp-status{
  display:inline-flex;
  align-items:center;
  gap:.42rem;
  padding:.16rem .6rem .16rem .48rem;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  background:rgba(255,255,255,.05);
  font-size:.76rem;
  font-weight:700;
  letter-spacing:.01em;
  line-height:1.5;
  white-space:nowrap;
  vertical-align:middle;
}
.bp-status::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:currentColor;
  flex:0 0 8px;
}
.bp-status.is-online{
  color:#4ee39a;
  border-color:rgba(78,227,154,.42);
  background:rgba(78,227,154,.12);
  box-shadow:0 0 12px rgba(78,227,154,.22);
}
.bp-status.is-offline{
  color:#93a3bd;
  border-color:rgba(147,163,189,.3);
  background:rgba(147,163,189,.1);
}
