/* TraLIS — page d'authentification (skin "Connexion") — v01.02.00
   Deux panneaux : marque à gauche, formulaire à droite. Habille aussi le module de connexion DNN (.dnnLoginService). */
.tl-page.tl-login { display: flex; flex-wrap: wrap; min-height: 100vh; background: #F0F8F7; }

/* ---- Panneau de marque ---- */
.tl-login__brand { flex: 1 1 520px; min-height: 360px; box-sizing: border-box; padding: clamp(24px, 3.2vw, 56px) clamp(24px, 4vw, 72px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; color: #fff; position: relative; overflow: hidden; background: linear-gradient(150deg, #005060 0%, #12707A 55%, #3CB6C4 100%); }
.tl-login__brand::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--tl-grad); }
.tl-page.tl-login .tl-login__logo { height: 54px; width: auto; max-width: 100%; align-self: flex-start; }
.tl-login__pitch { max-width: min(46rem, 100%); }
.tl-page.tl-login .tl-login__pitch h1 { color: #fff; margin: 0 0 16px; font-size: clamp(1.7rem, 1.1rem + 1.7vw, 3.1rem); line-height: 1.15; text-wrap: balance; font-weight: 800; letter-spacing: -.02em; }
.tl-page.tl-login .tl-login__pitch p { margin: 0; font-size: 1.05rem; line-height: 1.55; color: #DEF3F5; }
.tl-login__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tl-login__chips li { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: .88rem; font-weight: 600; animation: tl-chip 15s ease-in-out infinite; }
.tl-login__chips li:nth-child(2) { animation-delay: 3s; } .tl-login__chips li:nth-child(3) { animation-delay: 6s; } .tl-login__chips li:nth-child(4) { animation-delay: 9s; } .tl-login__chips li:nth-child(5) { animation-delay: 12s; }

/* ---- Panneau du formulaire ---- */
.tl-login__side { flex: 1 1 440px; box-sizing: border-box; padding: clamp(20px, 2.4vw, 40px) clamp(20px, 2.4vw, 40px); display: flex; flex-direction: column; background: #fff; }
.tl-login__lang { display: flex; justify-content: flex-end; gap: 6px; font-size: .88rem; font-weight: 700; }
.tl-login__lang a, .tl-login__lang .tl-lang { padding: 6px 10px; border-radius: 8px; color: #4F6B70; text-decoration: none; }
.tl-login__lang a:hover { background: #E6F4F1; color: #0B5A66; }
.tl-login__lang .language-object, .tl-login__lang span { display: inline-flex; }
.tl-login__center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 0; }
.tl-login__box { width: 100%; max-width: 380px; }
.tl-page.tl-login .tl-login__title { margin: 0 0 6px; font-size: 1.75rem; font-weight: 800; color: var(--tl-indigo); letter-spacing: -.01em; }
.tl-login__sub { margin: 0 0 22px; color: var(--tl-muted); font-size: .95rem; }
.tl-login__help { margin: 28px 0 0; font-size: .82rem; line-height: 1.5; color: var(--tl-muted); text-align: center; }
.tl-login__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: .82rem; color: var(--tl-muted); }
.tl-login__foot a { color: #1F8A86; text-decoration: none; }
.tl-login__foot a:hover { text-decoration: underline; }

/* ---- Module de connexion DNN ---- */
.tl-login .dnnLoginService { width: 100%; }
.tl-login .dnnLoginService .dnnFormItem { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; padding: 0; width: 100%; float: none; }
.tl-login .dnnLoginService .dnnLabel { width: auto; float: none; margin: 0; padding: 0; text-align: left; }
.tl-login .dnnLoginService .dnnFormLabel, .tl-login .dnnLoginService label { display: block; float: none; width: auto; margin: 0; padding: 0; font-size: .88rem; font-weight: 700; color: var(--tl-ink); text-align: left; }
.tl-login .dnnLoginService .dnnFormLabel:empty { display: none; }
.tl-login .dnnLoginService input[type="text"], .tl-login .dnnLoginService input[type="password"] { width: 100%; height: 48px; box-sizing: border-box; padding: 0 14px; border: 1.5px solid #C8E7EA; border-radius: 10px; font: inherit; font-size: .95rem; color: var(--tl-ink); background: #fff; float: none; }
.tl-login .dnnLoginService input[type="text"]:focus, .tl-login .dnnLoginService input[type="password"]:focus { outline: 3px solid var(--tl-blue); outline-offset: 1px; border-color: var(--tl-blue); }

/* « Se souvenir de moi » : case + libellé sur une ligne */
.tl-login .dnnLoginService .dnnLoginRememberMe, .tl-login .dnnLoginService .dnnLoginRememberMe > span { display: flex; align-items: center; gap: 10px; }
.tl-login .dnnLoginService .dnnLoginRememberMe input { width: 18px; height: 18px; margin: 0; accent-color: #1A7F7C; }
.tl-login .dnnLoginService .dnnLoginRememberMe label { display: inline; font-weight: 500; font-size: .88rem; color: #385558; cursor: pointer; }

/* Bouton principal */
.tl-login .dnnLoginService a.dnnPrimaryAction { display: flex; align-items: center; justify-content: center; height: 50px; width: 100%; box-sizing: border-box; margin: 4px 0 0; padding: 0 16px; border: 0; border-radius: 10px; font-size: 1rem; font-weight: 800; color: #fff; text-decoration: none; cursor: pointer; background: linear-gradient(100deg, #12707A, #1A7F7C 55%, #40BAC7); box-shadow: 0 6px 16px rgba(26, 127, 124, .28); }
.tl-login .dnnLoginService a.dnnPrimaryAction:hover { filter: brightness(1.08); color: #fff; }
.tl-login .dnnLoginService a.dnnPrimaryAction:focus-visible { outline: 3px solid var(--tl-blue); outline-offset: 2px; }
.tl-login .dnnLoginService a.dnnDisabledAction { opacity: .6; pointer-events: none; }

/* Liens secondaires : « Mot de passe oublié ? », annuler, créer un compte */
.tl-login .dnnLoginService a.dnnSecondaryAction { display: inline-block; margin: 0; padding: 0; border: 0; background: none; font-size: .85rem; font-weight: 700; color: #1F8A86; text-decoration: none; }
.tl-login .dnnLoginService a.dnnSecondaryAction:hover { color: #0B5A66; text-decoration: underline; }
.tl-login .dnnLoginService .dnnLoginActions { width: 100%; }
.tl-login .dnnLoginService .dnnLoginActions ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }
.tl-login .dnnLoginService .dnnLoginActions li { margin: 0; padding: 0; list-style: none; }
.tl-login .dnnLoginService .dnnFormItem > .dnnFormLabel:only-child, .tl-login .dnnLoginService .dnnFormItem > span.dnnFormLabel { display: none; }
.tl-login .dnnLoginService .dnnFormItem:has(.dnnLoginActions) { margin: 14px 0 0; }

/* Messages d'erreur / d'information */
.tl-login .dnnFormMessage, .tl-login .dnnFormValidationSummary { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; font-size: .88rem; line-height: 1.45; }
.tl-login .dnnFormError, .tl-login .dnnFormValidationSummary { background: #FDECEC; color: #9B1C1C; border: 1px solid #F5B5B5; }
.tl-login .dnnFormSuccess { background: #E8F7EC; color: #1E6B35; border: 1px solid #A8DDB5; }

@media (max-width: 720px) {
  .tl-login__brand { flex-basis: 100%; min-height: 0; padding: 24px; gap: 20px; }
  .tl-login__chips, .tl-login__pitch p { display: none; }
  .tl-page.tl-login .tl-login__logo { height: 40px; }
  .tl-login__side { flex-basis: 100%; padding: 20px 20px 24px; }
}

/* ================= Animations (page de connexion) ================= */
/* Contenu du panneau de marque au-dessus du fond */
.tl-login__brand > .tl-login__logo, .tl-login__brand > .tl-login__pitch, .tl-login__brand > .tl-login__chips, .tl-login__brand > .tl-login__map { position: relative; z-index: 1; }

/* Lueurs qui dérivent */
.tl-login .tl-orb { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: 0; }
.tl-login .tl-orb--a { width: 420px; height: 420px; left: -120px; top: -100px; background: radial-gradient(circle, #6FD3C0 0%, rgba(111, 211, 192, 0) 70%); opacity: .45; animation: tl-drift-a 18s ease-in-out infinite alternate; }
.tl-login .tl-orb--b { width: 520px; height: 520px; right: -160px; bottom: -140px; background: radial-gradient(circle, #0F766E 0%, rgba(15, 118, 110, 0) 70%); opacity: .6; animation: tl-drift-b 22s ease-in-out infinite alternate; }
@keyframes tl-drift-a { from { transform: translate(0, 0); } to { transform: translate(160px, 120px); } }
@keyframes tl-drift-b { from { transform: translate(0, 0); } to { transform: translate(-140px, -110px); } }

/* Carte du monde en points + arcs de données + cœur IA */
.tl-login__map { flex: 1 1 auto; min-height: clamp(200px, 32vh, 560px); width: 100%; position: relative; }
.tl-login__mapsvg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tl-login .tl-land { fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; opacity: .22; }
.tl-login .tl-land--scan { stroke: #E3F2EF; opacity: .85; }
.tl-login .tl-arc { fill: none; stroke: #A8E6D8; stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; opacity: .8; animation: tl-draw 6s ease-in-out infinite; }
.tl-login .tl-arc--b { stroke: #B7E4DC; stroke-width: 1; opacity: .55; stroke-dasharray: 4 7; stroke-dashoffset: 0; animation: tl-flow 2.6s linear infinite; }
@keyframes tl-draw { 0% { stroke-dashoffset: 260; opacity: 0; } 20% { opacity: .85; } 55% { stroke-dashoffset: 0; opacity: .85; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes tl-flow { to { stroke-dashoffset: -22; } }
.tl-login .tl-node { fill: #fff; }
.tl-login .tl-ring { fill: none; stroke: #fff; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: tl-pulse 3.2s ease-out infinite; }
.tl-login .tl-ring--core { stroke: #6FD3C0; stroke-width: 1.6; animation-duration: 2.6s; }
@keyframes tl-pulse { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(4.5); opacity: 0; } }
.tl-login .tl-halo { transform-box: fill-box; transform-origin: center; animation: tl-breathe 3.6s ease-in-out infinite; }
@keyframes tl-breathe { 0%, 100% { transform: scale(.85); opacity: .7; } 50% { transform: scale(1.15); opacity: 1; } }

/* Pastilles : la rubrique active défile */
@keyframes tl-chip { 0%, 18% { background: #fff; color: #005060; } 24%, 100% { background: rgba(255, 255, 255, .12); color: #fff; } }

/* Entrée en cascade */
@keyframes tl-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes tl-fade { from { opacity: 0; } to { opacity: 1; } }
.tl-login__logo, .tl-login__map, .tl-login__lang { animation: tl-fade 1s ease both; }
.tl-login__pitch { animation: tl-rise .7s cubic-bezier(.2, .7, .2, 1) .3s both; }
.tl-login__chips { animation: tl-rise .7s cubic-bezier(.2, .7, .2, 1) .5s both; }
.tl-login__title { animation: tl-rise .7s cubic-bezier(.2, .7, .2, 1) .2s both; }
.tl-login__sub { animation: tl-rise .7s cubic-bezier(.2, .7, .2, 1) .3s both; }
.tl-login .dnnLoginService .dnnFormItem { animation: tl-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.tl-login .dnnLoginService .dnnFormItem:nth-child(1) { animation-delay: .4s; }
.tl-login .dnnLoginService .dnnFormItem:nth-child(2) { animation-delay: .5s; }
.tl-login .dnnLoginService .dnnFormItem:nth-child(3), .tl-login .dnnLoginService .dnnFormItem:nth-child(4) { animation-delay: .6s; }
.tl-login .dnnLoginService .dnnFormItem:nth-child(5), .tl-login .dnnLoginService .dnnFormItem:nth-child(6) { animation-delay: .75s; }
.tl-login__help { animation: tl-fade 1s ease 1s both; }

/* Champs et bouton */
.tl-login .dnnLoginService input[type="text"], .tl-login .dnnLoginService input[type="password"] { transition: border-color .2s, box-shadow .2s; }
.tl-login .dnnLoginService input[type="text"]:hover, .tl-login .dnnLoginService input[type="password"]:hover { border-color: #9BD9E0; }
.tl-login .dnnLoginService input[type="text"]:focus, .tl-login .dnnLoginService input[type="password"]:focus { border-color: #1A7F7C; box-shadow: 0 0 0 4px rgba(26, 127, 124, .14); }
.tl-login .dnnLoginService a.dnnPrimaryAction { position: relative; overflow: hidden; transition: transform .15s, box-shadow .2s, filter .2s; }
.tl-login .dnnLoginService a.dnnPrimaryAction:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(26, 127, 124, .34); }
.tl-login .dnnLoginService a.dnnPrimaryAction:active { transform: translateY(0); }
.tl-login .dnnLoginService a.dnnPrimaryAction::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; left: -80px; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); animation: tl-shine 4.5s ease-in-out 2s infinite; }
@keyframes tl-shine { 0% { left: -80px; } 30%, 100% { left: 120%; } }

/* Mobile : la carte est masquée, le panneau de marque se réduit */
@media (max-width: 720px) { .tl-login__map { display: none; } }

/* Accessibilité : aucun mouvement si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
  .tl-login *, .tl-login *::before, .tl-login *::after { animation: none !important; transition: none !important; }
  .tl-login .tl-vehicle, .tl-login .tl-land--scan { display: none; }
  .tl-login .tl-arc { stroke-dashoffset: 0; }
}

/* ================= Version 01.03.01 ================= */
/* « Annuler » masqué : la page de connexion n'a pas de page précédente utile */
.tl-login .dnnLoginService a[id$="cancelLink"] { display: none; }

/* Libellés du skin (remplacent ceux de DNN) : français par défaut, anglais si la page est en anglais */
.tl-login .dnnLoginService label[for$="txtUsername"],
.tl-login .dnnLoginService label[for$="txtPassword"],
.tl-login .dnnLoginService .dnnLoginRememberMe label { font-size: 0; }
.tl-login .dnnLoginService label[for$="txtUsername"]::after { content: "Identifiant"; font-size: .88rem; font-weight: 700; }
.tl-login .dnnLoginService label[for$="txtPassword"]::after { content: "Mot de passe"; font-size: .88rem; font-weight: 700; }
.tl-login .dnnLoginService .dnnLoginRememberMe label::after { content: "Se souvenir de moi"; font-size: .88rem; font-weight: 500; }
.tl-login .dnnLoginService a.dnnPrimaryAction { font-size: 0; }
.tl-login .dnnLoginService a.dnnPrimaryAction::before { content: "Se connecter"; font-size: 1rem; font-weight: 800; }
html[lang^="en"] .tl-login .dnnLoginService label[for$="txtUsername"]::after { content: "Username"; }
html[lang^="en"] .tl-login .dnnLoginService label[for$="txtPassword"]::after { content: "Password"; }
html[lang^="en"] .tl-login .dnnLoginService .dnnLoginRememberMe label::after { content: "Remember me"; }
html[lang^="en"] .tl-login .dnnLoginService a.dnnPrimaryAction::before { content: "Sign in"; }

/* Écrans larges : zone de formulaire un peu plus ample, carte qui grandit avec le panneau */
@media (min-width: 1700px) { .tl-login__box { max-width: 440px; } }
/* Écrans bas (portables) : carte plus compacte pour tout garder à l'écran */
@media (max-height: 760px) and (min-width: 721px) { .tl-login__map { min-height: 180px; } .tl-login__brand { gap: 20px; } }
/* Tablette : le panneau de marque passe au-dessus du formulaire, carte réduite */
@media (max-width: 959px) and (min-width: 721px) { .tl-login__brand { flex-basis: 100%; } .tl-login__map { min-height: 240px; max-height: 340px; } .tl-login__side { flex-basis: 100%; } }

/* ================= Version 01.03.02 : état « connexion en cours » =================
   DNN pose la classe dnnDisabledAction sur le bouton au clic ou à la touche Entrée ; on s'en sert (CSS seul). */
.tl-login .dnnLoginService a.dnnPrimaryAction.dnnDisabledAction { opacity: 1; pointer-events: none; cursor: default; gap: 10px; transform: none; box-shadow: 0 4px 12px rgba(26, 127, 124, .22); filter: saturate(.85); }
.tl-login .dnnLoginService a.dnnPrimaryAction.dnnDisabledAction::before { content: "Connexion en cours…"; }
html[lang^="en"] .tl-login .dnnLoginService a.dnnPrimaryAction.dnnDisabledAction::before { content: "Signing in…"; }
/* Le reflet du bouton devient une roue de chargement, placée avant le texte */
.tl-login .dnnLoginService a.dnnPrimaryAction.dnnDisabledAction::after { position: static; order: -1; flex: 0 0 auto; width: 16px; height: 16px; box-sizing: border-box; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; background: none; transform: none; animation: tl-spin .8s linear infinite; }
@keyframes tl-spin { to { transform: rotate(360deg); } }

/* Champs verrouillés pendant l'envoi */
.tl-login:has(a.dnnDisabledAction) .dnnLoginService input { opacity: .6; pointer-events: none; }

/* Le réseau s'accélère : l'IA « se connecte » */
.tl-login:has(a.dnnDisabledAction) .tl-arc { animation-duration: 1.8s; }
.tl-login:has(a.dnnDisabledAction) .tl-arc--b { animation-duration: 1s; }
.tl-login:has(a.dnnDisabledAction) .tl-ring--core { animation-duration: 1.1s; }
.tl-login:has(a.dnnDisabledAction) .tl-halo { animation-duration: 1.4s; }
.tl-login:has(a.dnnDisabledAction) .tl-orb--a, .tl-login:has(a.dnnDisabledAction) .tl-orb--b { animation-duration: 8s; }

/* Pastille d'état au bas de la carte */
.tl-login__map::after { content: "Authentification en cours…"; position: absolute; left: 50%; bottom: 6px; transform: translate(-50%, 6px); padding: 6px 16px 6px 32px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #E3F2EF; font-size: .8rem; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; background-image: radial-gradient(circle at 14px 50%, #6FD3C0 0 4px, transparent 5px); }
html[lang^="en"] .tl-login__map::after { content: "Signing in…"; }
.tl-login:has(a.dnnDisabledAction) .tl-login__map::after { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .tl-login .dnnLoginService a.dnnPrimaryAction.dnnDisabledAction::after { animation: tl-spin 1.6s linear infinite !important; }
}
.tl-login:has(a.dnnDisabledAction), .tl-login:has(a.dnnDisabledAction) * { cursor: default !important; }

/* ===== 01.00.04 : connexion — titre du module masqué (le titre « Connexion » est déjà affiché), cadre allégé, lignes vides supprimées ===== */
.tl-login .tl-card { border: 0; box-shadow: none; background: transparent; padding: 0; }
.tl-login .tl-card::before, .tl-login .tl-card::after { display: none; }
.tl-login .tl-card__head, .tl-login .tl-card__tools { display: none; }
.tl-login .tl-card__body { padding: 0; }
.tl-login .dnnLoginService .dnnFormItem:not(:has(input:not([type="hidden"]), a, img, select, textarea, canvas, ul)) { display: none; }
.tl-login .dnnLoginService .dnnFormSectionHead, .tl-login .dnnLoginService h2.dnnFormSectionHead { display: none; }

