/* =========================================================================
   Pacific Admin 0.30.1 — écran de connexion : cartes d'exemple, logo à l'ouverture
   Servie UNIQUEMENT aux visiteurs non connectés (index.php), ou ajoutée par login()
   quand une session expire : la Gestion, Clair, la compta et le cabinet ne la
   chargent jamais.
   Coût : transform et opacity, joués une fois à l'arrivée (moins d'une seconde) ;
   ensuite seule la carte « dernière opération » change toutes les 4 s, 15 fois au
   plus, jamais onglet caché ; au bout d'une minute, plus aucune animation.
   Cartes masquées sur téléphone et sur les écrans très bas.
   ========================================================================= */

/* Repère lu par login() : sans cette feuille, pas de cartes ni d'écran d'ouverture. */
:root{--lg-connexion:1}

/* ----- Zone des cartes : la place libre du panneau, entre le logo et le titre ----- */
/* Masquée par login() (style en ligne) tant que cette feuille n'est pas appliquée ; business.css force déjà [hidden]. */
/* Taille réglée sur l'écran (pas de requête de conteneur : dans Chrome, elle relançait les animations des
   cartes à chaque changement de la page, un travail inutile). */
.lg-login-scene{display:block!important;flex:1 1 auto;min-height:0;position:relative;margin:10px 0;pointer-events:none}
.lg-login-stage{position:absolute;left:50%;top:50%;width:420px;height:280px;margin:-140px 0 0 -210px;color:#141413;font-family:var(--lg-font)}
@media (min-width:1360px) and (min-height:860px){.lg-login-stage{transform:scale(1.1)}}
@media (min-width:1700px) and (min-height:1000px){.lg-login-stage{transform:scale(1.3)}}
@media (max-height:720px),(max-width:1000px){.lg-login-stage{transform:scale(.84)}}
@media (max-height:650px),(max-width:900px){.lg-login-stage{transform:scale(.7)}}
@media (max-height:600px){.lg-login-scene{display:none!important}}

/* ----- Cartes ----- */
.lg-lc,.lg-login-pill{position:absolute;background:rgba(255,255,255,.96);box-shadow:inset 0 1px 0 #fff,0 2px 6px rgba(0,0,0,.16),0 24px 46px -18px rgba(0,0,0,.62);animation:lg-lc-in .8s var(--lg-ease) both}
.lg-lc{border-radius:18px}
.lg-lc.is-sales{left:0;top:40px;width:268px;padding:15px 16px 10px;animation-delay:.1s}
.lg-lc.is-feed{right:0;top:0;width:240px;padding:10px 12px;border-radius:16px;z-index:2;animation-delay:.28s}
.lg-lc.is-ring{left:-14px;top:182px;width:172px;padding:11px 13px;border-radius:16px;z-index:2;display:flex;align-items:center;gap:10px;animation-delay:.44s}
.lg-login-pill{right:34px;top:176px;z-index:3;display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 14px 0 6px;border-radius:99px;font-size:12.5px;font-weight:550;animation-delay:.58s}
.lg-login-pill i{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#E07A55;color:#fff}
.lg-login-pill svg,.lg-lc-ico svg,.lg-lc-dot svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.lg-login-pill svg{width:12px;height:12px}
@keyframes lg-lc-in{from{opacity:0;transform:translate3d(0,16px,0) scale(.97)}to{opacity:1;transform:none}}

/* Ventes du mois */
.lg-lc-head{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:550;color:#3C3B38}
.lg-lc-ico{width:24px;height:24px;border-radius:7px;display:grid;place-items:center;background:#141413;color:#fff}
.lg-lc-ico svg{width:13px;height:13px}
.lg-lc-head em{margin-left:auto;font-style:normal;font-size:11px;font-weight:500;color:#76736C;background:#F2F0EB;border-radius:99px;padding:3px 8px}
.lg-lc-value{display:flex;align-items:center;gap:8px;margin:10px 0 2px;font-size:27px;font-weight:600;letter-spacing:-.03em;font-variant-numeric:tabular-nums;white-space:nowrap}
.lg-lc-value b{font-size:11px;font-weight:600;letter-spacing:0;color:#075C55;background:rgba(11,122,113,.11);border-radius:99px;padding:3px 7px}
.lg-lc-spark{display:block;width:100%;height:56px;overflow:visible}
.lg-lc-spark .line{fill:none;stroke:#0B7A71;stroke-width:2.2;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;animation:lg-lc-draw 1.3s var(--lg-ease) .45s forwards}
.lg-lc-spark .area{opacity:0;animation:lg-lc-fade .8s ease .9s forwards}
.lg-lc-spark .end{fill:#fff;stroke:#0B7A71;stroke-width:2;opacity:0;animation:lg-lc-fade .3s ease 1.55s forwards}

/* Dernière opération (la seule carte qui change) */
.lg-lc-feed{display:flex;align-items:center;gap:10px}
.lg-lc-dot{flex:0 0 auto;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:#fff;background:#2A7A45}
.lg-lc-dot svg{width:14px;height:14px}
.lg-lc-dot.is-teal{background:#0B7A71}.lg-lc-dot.is-violet{background:#6E56CF}.lg-lc-dot.is-coral{background:#E07A55}
.lg-lc-txt{min-width:0;flex:1;display:grid;line-height:1.3}
.lg-lc-txt strong,.lg-lc-txt small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-lc-txt strong{font-size:12.5px;font-weight:600}
.lg-lc-txt small{font-size:11px;color:#76736C}
.lg-lc-amt{font-size:12.5px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}

/* Factures réglées */
.lg-lc-ring{width:38px;height:38px;flex:0 0 auto;transform:rotate(-90deg)}
.lg-lc-ring circle{fill:none;stroke-width:4.5}
.lg-lc-ring .track{stroke:#ECE9E3}
.lg-lc-ring .fill{stroke:#13A193;stroke-linecap:round;stroke-dasharray:96 100;stroke-dashoffset:96;animation:lg-lc-draw 1.2s var(--lg-ease) .75s forwards}
.lg-lc.is-ring span{display:grid;line-height:1.25}
.lg-lc.is-ring strong{font-size:17px;font-weight:600;letter-spacing:-.02em}
.lg-lc.is-ring small{font-size:11px;color:#76736C}
@keyframes lg-lc-draw{to{stroke-dashoffset:0}}
@keyframes lg-lc-fade{to{opacity:1}}

/* ----- Bouton pendant la vérification du mot de passe ----- */
html body.lg-platform .lg-login button[type="submit"].is-busy{opacity:1;cursor:wait}
html body.lg-platform .lg-login button[type="submit"].is-busy::before{content:"";width:14px;height:14px;border-radius:50%;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;animation:lg-login-spin .7s linear infinite}
@keyframes lg-login-spin{to{transform:rotate(360deg)}}

/* ----- Connexion réussie : le logo au milieu pendant que l'espace s'ouvre ----- */
.lg-login-go{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;animation:lg-go-in .28s ease both;
  background:radial-gradient(50vmax 40vmax at 14% 6%,var(--verre-halo-1,transparent),transparent 66%),radial-gradient(48vmax 38vmax at 90% 10%,var(--verre-halo-2,transparent),transparent 66%),radial-gradient(52vmax 44vmax at 76% 96%,var(--verre-halo-3,transparent),transparent 66%),radial-gradient(44vmax 38vmax at 12% 92%,var(--verre-halo-4,transparent),transparent 66%),var(--verre-fond,var(--lg-bg))}
.lg-go-logo{position:relative;display:block;width:min(250px,62vw);aspect-ratio:520/190}
.lg-go-logo img{position:absolute;inset:0;width:100%;height:100%}
.lg-go-logo .is-mark{clip-path:inset(0 63.8% 0 0);transform-origin:20% 54%;animation:lg-go-mark .7s var(--lg-spring) .1s both}
.lg-go-logo .is-words{clip-path:inset(0 0 0 36.2%);animation:lg-go-words .65s var(--lg-ease) .3s both}
html[data-pti-theme="dark"] .lg-go-logo img{filter:invert(1) brightness(1.1)}
.lg-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@keyframes lg-go-in{from{opacity:0}}
@keyframes lg-go-mark{from{opacity:0;transform:scale(.7)}}
@keyframes lg-go-words{from{opacity:0;transform:translate3d(-14px,0,0)}}

/* Le fond du panneau dérivait sans fin : il s'arrête maintenant au bout d'environ une minute,
   comme la carte « dernière opération ». Page laissée ouverte = plus aucune animation. */
.lg-login-art::before{animation-iteration-count:2}

@media (max-width:820px){.lg-login-scene{display:none!important}}
@media (prefers-reduced-motion:reduce){
  .lg-lc,.lg-login-pill,.lg-lc-spark .line,.lg-lc-spark .area,.lg-lc-spark .end,.lg-lc-ring .fill,.lg-login-go,.lg-go-logo img{animation:none!important}
  .lg-lc-spark .line,.lg-lc-ring .fill{stroke-dashoffset:0}.lg-lc-spark .area,.lg-lc-spark .end{opacity:1}
}
