/* =====================================================================
   css/login_hitech.css — page de connexion du web au style de l'écran de
   connexion de l'application mobile (2026-10-08).

   « Nous devons aussi faire la page de connexion du web, celle du mobile est
   correcte » : fond bleu nuit en dégradé avec trois halos lumineux (cyan,
   indigo, bleu), logo et titre en dégradé AU-DESSUS de la carte, carte en
   verre dépoli, champs translucides au contour cyan au focus, bouton
   « Connexion » en dégradé lumineux, Google en blanc, Apple en noir.

   Chargée par login.php APRÈS css/main.net.css; toutes les règles visent
   `body.login-ht` (login.php est la seule page qui charge ces feuilles).
   Aucun identifiant, nom de champ ni comportement ne change.
   ===================================================================== */

body.login-ht {
  --lg-cyan: #22d3ee;
  --lg-cyan-clair: #67e8f9;
  --lg-texte: #f1f6ff;
  --lg-attenue: rgba(255, 255, 255, 0.64);
  --lg-verre: rgba(255, 255, 255, 0.07);
  --lg-trait: rgba(255, 255, 255, 0.16);
  --lg-neon: linear-gradient(120deg, #06b6d4 0%, #3b82f6 55%, #6366f1 100%);
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(135deg, #060b1a 0%, #0b1b3a 55%, #122b5c 100%) fixed;
  color: var(--lg-texte);
  font-family: "Poppins", system-ui, sans-serif;
}

body.login-ht,
body.login-ht :is(input, button, a, span, p, strong, div) {
  font-family: "Poppins", system-ui, sans-serif;
}

/* --- Halos du fond ------------------------------------------------------ */
body.login-ht .login-halo {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

body.login-ht .login-halo--cyan {
  top: -120px;
  left: -90px;
  width: 360px;
  height: 360px;
  background: rgba(34, 211, 238, 0.24);
}

body.login-ht .login-halo--indigo {
  top: 22%;
  right: -130px;
  width: 320px;
  height: 320px;
  background: rgba(99, 102, 241, 0.26);
}

body.login-ht .login-halo--bleu {
  bottom: -150px;
  left: 12%;
  width: 400px;
  height: 400px;
  background: rgba(59, 130, 246, 0.2);
}

/* --- Mise en page : en-tête puis carte, centrés ------------------------- */
body.login-ht .limiter {
  position: relative;
  z-index: 1;
}

body.login-ht .container-login100 {
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: clamp(22px, 5vh, 46px);
  padding: clamp(22px, 5vh, 56px) 16px 32px;
  background: transparent;
}

/* Logo, nom et accueil centrés, PLUS HAUT dans la page (2026-10-08) :
   l'ensemble part du haut au lieu d'être centré verticalement, avec plus
   d'air entre l'en-tête et la carte. */
body.login-ht .login-entete {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

body.login-ht .login-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

body.login-ht .login-logo-inline {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18), 0 12px 26px -10px rgba(34, 211, 238, 0.6);
}

body.login-ht .login-brand-text {
  background: linear-gradient(90deg, #67e8f9 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body.login-ht .login-bienvenue {
  margin: 0;
  color: var(--lg-attenue);
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* --- Carte en verre ----------------------------------------------------- */
body.login-ht .wrap-login100 {
  width: 420px;
  max-width: 100%;
  padding: 30px 28px 26px;
  overflow: visible;
  border: 1.2px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px -6px rgba(14, 165, 233, 0.18), 0 14px 30px rgba(0, 0, 0, 0.45);
}

body.login-ht .wrap-login100::before {
  display: none;
}

/* --- Champs : verre, libellé flottant, contour cyan au focus ------------ */
body.login-ht .wrap-input100 {
  height: 58px;
  margin-bottom: 14px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: var(--lg-verre);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.login-ht .wrap-input100:focus-within {
  border-color: var(--lg-cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

body.login-ht .login-input-icon {
  left: 15px;
}

body.login-ht .login-input-icon-svg {
  width: 20px;
  height: 20px;
  fill: var(--lg-attenue);
}

body.login-ht .wrap-input100:focus-within .login-input-icon-svg {
  fill: var(--lg-cyan-clair);
}

body.login-ht .input100 {
  height: 100%;
  padding: 18px 14px 2px 48px;
  border: 0;
  border-radius: 16px;
  outline: none;
  background: transparent;
  color: #ffffff;
  caret-color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

body.login-ht #password.input100 {
  padding-right: 52px;
}

body.login-ht .input100::selection {
  background: rgba(103, 232, 249, 0.33);
}

/* Navigateurs qui remplissent les champs : pas de bloc jaune sur le verre. */
body.login-ht .input100:-webkit-autofill,
body.login-ht .input100:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  box-shadow: 0 0 0 1000px rgba(15, 30, 62, 0.96) inset;
  transition: background-color 9999s ease-out;
}

body.login-ht .focus-input100::before {
  display: none;
}

/* main.net.css impose sa police aux libellés flottants (pseudo-élément). */
body.login-ht .focus-input100::after {
  font-family: "Poppins", system-ui, sans-serif;
  top: 19px;
  padding-left: 48px;
  color: var(--lg-attenue);
  font-size: 14px;
}

body.login-ht .input100:focus + .focus-input100::after,
body.login-ht .has-val.input100 + .focus-input100::after,
body.login-ht .input100:-webkit-autofill + .focus-input100::after {
  top: 8px;
  color: var(--lg-cyan-clair);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

body.login-ht .btn-show-pass {
  right: 10px;
  color: var(--lg-attenue);
}

body.login-ht .btn-show-pass:hover,
body.login-ht .btn-show-pass[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Œil bloqué (aucune vérification de l'appareil, js/login_oeil_securise.js) :
   un cadenas atténué; le clic explique pourquoi. Vérification en cours :
   légère pulsation. */
body.login-ht .btn-show-pass.btn-show-pass--bloque {
  color: rgba(255, 255, 255, 0.38);
  cursor: not-allowed;
}

body.login-ht .btn-show-pass.btn-show-pass--bloque:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
}

body.login-ht .btn-show-pass[aria-busy="true"] {
  color: var(--lg-cyan-clair);
  animation: lgOeilVerif 1s ease-in-out infinite;
}

@keyframes lgOeilVerif {
  50% { opacity: 0.45; }
}

body.login-ht .btn-show-pass:focus-visible {
  outline-color: var(--lg-cyan);
  color: #ffffff;
}

/* Champ vide à la validation (main.net.css `.alert-validate`) : contour
   rouge comme le mobile, pastille « ! » dessinée en CSS (l'icône d'origine
   dépendait de FontAwesome, sur un carré noir), message sombre lisible.
   Champ du mot de passe : décalés pour laisser l'œil cliquable. */
body.login-ht .wrap-input100.alert-validate {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.14);
}

body.login-ht .alert-validate::after {
  content: "!";
  display: grid;
  place-items: center;
  right: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f87171;
  color: #ffffff;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

/* Le message s'écrit SOUS le champ, toujours visible, comme le mobile :
   dans le champ, il chevauchait le libellé (toujours affiché au téléphone). */
body.login-ht .wrap-input100.alert-validate {
  margin-bottom: 34px;
}

body.login-ht .alert-validate::before {
  top: calc(100% + 6px);
  right: auto;
  left: 14px;
  max-width: calc(100% - 28px);
  padding: 0;
  border: 0;
  background: transparent;
  color: #fca5a5;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  transform: none;
  visibility: visible;
  opacity: 1;
}

body.login-ht .alert-validate:has(.btn-show-pass)::after {
  right: 52px;
}

body.login-ht #errorMessage {
  margin: 6px 0 0;
  color: #fca5a5 !important;
  font-size: 13.5px;
  font-weight: 600;
}

body.login-ht #errorMessage:empty {
  display: none;
}

/* --- Bouton « Connexion » ----------------------------------------------- */
body.login-ht .container-login100-form-btn {
  padding-top: 8px;
}

body.login-ht .wrap-login100-form-btn {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 14px 28px -12px rgba(34, 211, 238, 0.65);
}

/* Dégradé du mobile, entier : main.net.css le décalait (260 % de large,
   glissé au survol) et le cyan restait hors du bouton. */
body.login-ht .login100-form-bgbtn {
  left: 0;
  width: 100%;
  background: var(--lg-neon);
  transition: filter 0.2s ease;
}

body.login-ht .wrap-login100-form-btn:hover .login100-form-bgbtn {
  left: 0;
  filter: brightness(1.08);
}

body.login-ht .login100-form-btn {
  font-family: "Poppins", system-ui, sans-serif;
  height: 56px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.login-ht .login100-form-btn:focus-visible {
  outline: 3px solid rgba(103, 232, 249, 0.7);
  outline-offset: 3px;
}

/* --- « ou », Google, Apple ---------------------------------------------- */
body.login-ht .login-or-separator span {
  background: rgba(255, 255, 255, 0.16);
}

body.login-ht .login-or-separator strong {
  color: var(--lg-attenue);
  font-weight: 600;
  text-transform: lowercase;
}

body.login-ht .login-google-btn {
  height: 52px;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  background: #ffffff;
  color: #1f2937;
  font-weight: 600;
}

body.login-ht .login-google-btn.login-apple-btn {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

body.login-ht .login-google-btn:hover {
  transform: translateY(-1px);
}

body.login-ht .login-after-sso-separator {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

/* --- Mot de passe oublié : lien cyan, comme le mobile ------------------- */
body.login-ht #openResetPassword {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--lg-cyan-clair);
  font-size: 14px;
  text-decoration: underline;
}

body.login-ht #openResetPassword:hover,
body.login-ht #openResetPassword:focus-visible {
  background: rgba(103, 232, 249, 0.1);
  color: #ffffff;
}

/* --- Aide, réseaux, mentions -------------------------------------------- */
body.login-ht .login-support-row,
body.login-ht .login-support-row span {
  color: var(--lg-attenue);
}

body.login-ht .login-support-row a,
body.login-ht .login-support-links a {
  color: var(--lg-cyan-clair);
  font-weight: 600;
}

body.login-ht .login-support-row a:hover,
body.login-ht .login-support-links a:hover {
  color: #ffffff;
}

body.login-ht .login-social-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.8);
}

body.login-ht .login-rights {
  color: rgba(255, 255, 255, 0.45);
}

/* --- « Connexion en cours… » : verre sombre ----------------------------- */
body.login-ht .login-loading-overlay {
  background: rgba(6, 11, 26, 0.72);
}

body.login-ht .login-loading-card {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(19, 42, 77, 0.96), rgba(11, 27, 58, 0.96));
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

body.login-ht .login-loading-brand {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 800;
}

body.login-ht .login-loading-message {
  color: var(--lg-attenue);
}

body.login-ht .login-loading-spinner {
  border-color: rgba(255, 255, 255, 0.14);
  border-top-color: var(--lg-cyan);
  border-right-color: #6366f1;
}

/* --- Téléphone ---------------------------------------------------------- */
@media (max-width: 576px) {
  body.login-ht .container-login100 {
    padding: 22px 12px;
  }

  body.login-ht .wrap-login100 {
    padding: 24px 18px 22px;
    border-radius: 26px;
  }

  body.login-ht .login-brand-text {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.login-ht .login-google-btn:hover {
    transform: none;
  }
}
