/* ==========================================================
   ChatLionLion - Popup albums verrouillés
   ========================================================== */

#galleryUnlockDialog {
  width: min(430px, calc(100vw - 32px)) !important;
  max-width: 430px !important;

  padding: 0 !important;
  margin: auto !important;

  border: 1px solid rgba(90, 145, 170, .20) !important;
  border-radius: 22px !important;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.99),
      rgba(246,252,254,.99)
    ) !important;

  color: #17324a !important;

  box-shadow:
    0 28px 70px rgba(26, 63, 82, .22),
    0 8px 24px rgba(26, 63, 82, .10) !important;

  overflow: hidden !important;
}

#galleryUnlockDialog::backdrop {
  background: rgba(23, 42, 55, .42) !important;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}


/* ----------------------------------------------------------
   Formulaire
   ---------------------------------------------------------- */

#galleryUnlockForm {
  position: relative;

  display: flex;
  flex-direction: column;

  padding: 30px 30px 26px !important;
  margin: 0 !important;
}


/* Petit cadenas rond */

#galleryUnlockForm::before {
  content: "🔒";

  display: grid;
  place-items: center;

  width: 52px;
  height: 52px;

  margin: 0 auto 17px;

  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      rgba(31, 176, 203, .16),
      rgba(49, 125, 168, .10)
    );

  border: 1px solid rgba(30, 153, 183, .20);

  font-size: 23px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.8),
    0 8px 20px rgba(21, 120, 150, .10);
}


/* ----------------------------------------------------------
   Titre
   ---------------------------------------------------------- */

#galleryUnlockForm h3 {
  margin: 0 !important;

  text-align: center;

  color: #102d45 !important;

  font-size: 21px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  letter-spacing: -.2px;
}


/* Sous-texte automatique sous le titre */

#galleryUnlockForm h3::after {
  content:
    "Saisissez votre mot de passe pour afficher les albums protégés.";

  display: block;

  margin: 8px auto 21px;

  max-width: 320px;

  color: #718497;

  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
}


/* ----------------------------------------------------------
   Mot de passe
   ---------------------------------------------------------- */

#galleryUnlockPassword {
  width: 100% !important;
  box-sizing: border-box !important;

  min-height: 48px !important;

  padding: 0 15px !important;

  border:
    1px solid rgba(91, 130, 151, .30) !important;

  border-radius: 12px !important;

  outline: none !important;

  background: #fff !important;
  color: #17324a !important;

  font-family: inherit !important;
  font-size: 15px !important;

  box-shadow:
    inset 0 1px 2px rgba(20, 58, 79, .04) !important;

  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

#galleryUnlockPassword::placeholder {
  color: #94a3af !important;
}

#galleryUnlockPassword:focus {
  border-color: #24a9c7 !important;

  box-shadow:
    0 0 0 4px rgba(36, 169, 199, .12) !important;
}


/* ----------------------------------------------------------
   Zone boutons
   ---------------------------------------------------------- */

#galleryUnlockPassword + div,
#galleryUnlockForm > div:last-child {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;

  gap: 10px !important;

  margin-top: 18px !important;
}


/* bouton Déverrouiller */

#galleryUnlockForm button[type="submit"] {
  min-height: 44px !important;

  border: 0 !important;
  border-radius: 11px !important;

  background:
    linear-gradient(
      135deg,
      #1ba8c4,
      #08789d
    ) !important;

  color: white !important;

  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 750 !important;

  cursor: pointer !important;

  box-shadow:
    0 8px 18px rgba(9, 122, 157, .20) !important;

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    filter .15s ease;
}

#galleryUnlockForm button[type="submit"]:hover {
  transform: translateY(-1px);

  filter: brightness(1.03);

  box-shadow:
    0 11px 22px rgba(9, 122, 157, .25) !important;
}


/* bouton Annuler */

#galleryUnlockCancel {
  min-height: 44px !important;

  border:
    1px solid rgba(90, 124, 145, .24) !important;

  border-radius: 11px !important;

  background: rgba(245,248,250,.92) !important;

  color: #435b70 !important;

  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 650 !important;

  cursor: pointer !important;

  transition:
    background .15s ease,
    transform .15s ease;
}

#galleryUnlockCancel:hover {
  background: #edf4f7 !important;
  transform: translateY(-1px);
}


/* ----------------------------------------------------------
   Animation légère
   ---------------------------------------------------------- */

#galleryUnlockDialog[open] {
  animation: lliGalleryLockOpen .18s ease-out;
}

@keyframes lliGalleryLockOpen {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.975);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* Mobile */

@media (max-width: 520px) {
  #galleryUnlockForm {
    padding: 25px 21px 21px !important;
  }

  #galleryUnlockPassword + div,
  #galleryUnlockForm > div:last-child {
    grid-template-columns: 1fr !important;
  }
}
