@charset "UTF-8";

/*
	CFDT-SG - nouvelle version : fenêtre « Identifiez-vous » (www/_ui/login.dialog.php, static/front/js/login.js), site (ordinateur)
	fenêtre (base : .dialog de front.css) - en-tête - champs - souvenir - code à 6 chiffres - règles du mot de passe - pied
*/

.lg { width: min(440px, calc(100% - 32px)); overflow: visible; }
.lg::before { content: ""; position: absolute; z-index: 7; inset: 0 22px auto; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--orange), var(--sand, #F2A65A) 60%, #F3C89B); }
.lg-in { position: relative; padding: 30px 32px 22px; border-radius: 20px; background: radial-gradient(120% 60% at 100% 0%, rgba(231, 89, 28, .08), rgba(255, 255, 255, 0) 60%), var(--bg); }
html.lg-lock { overflow: hidden; }
.lg-close { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--mute); cursor: pointer; transition: background .2s, color .2s; }
.lg-close:hover { background: var(--bg-soft); color: var(--ink); }
.lg-brand { position: sticky; top: -30px; z-index: 5; display: flex; align-items: center; justify-content: space-between; margin: -30px -32px 18px; padding: 30px 32px 10px; transition: box-shadow .2s, background .2s; }
.lg-in.dlg-scroll { max-height: calc(100dvh - 40px); }	/* petit écran : la fenêtre défile, logo et croix restent visibles (front.js : is-scrolled) */
.lg-in.is-scrolled .lg-brand { background: var(--bg); box-shadow: 0 1px 0 var(--line), 0 8px 18px rgba(27, 30, 35, .06); }
.lg-brand .lg-close { position: static; margin: -8px -14px 0 0; }
.lg-brand img { display: block; width: auto; height: 42px; }

.lg-view[hidden] { display: none; }
.lg-view { animation: lg-in .25s var(--ease); }
@keyframes lg-in { from { opacity: 0; transform: translateX(10px); } }
.lg-center { text-align: center; }
.lg-title { margin: 0; color: var(--ink); font-size: 1.45rem; letter-spacing: -0.02em; }
.lg-title:focus { outline: none; }
.lg-sub { margin: 6px 0 20px; color: var(--mute); font-size: .88rem; line-height: 1.5; }
.lg-sub b { color: var(--ink); }
.lg-note { display: flex; flex-direction: column; gap: 5px; margin: -8px 0 18px; padding: 10px 12px; border-radius: 10px; background: var(--orange-soft); color: var(--ink-2); font-size: .84rem; line-height: 1.35; }	/* espace réservé aux adhérent.es, puis l'entreprise */
.lg-note p { display: flex; align-items: center; gap: 8px; margin: 0; }
.lg-note .ic { flex: none; color: var(--orange); }
.lg-note b { color: var(--ink); font-weight: 600; }
.lg-note .lg-note-co b { color: var(--orange-dark); font-weight: 700; }
.lg-badge { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 16px; background: var(--orange); color: #FFF; box-shadow: 0 10px 22px rgba(231, 89, 28, .28); }
.lg-badge .ic { width: 24px; height: 24px; }
.lg-badge.is-ok { background: var(--ok, #2E9E5B); box-shadow: 0 10px 22px rgba(46, 158, 91, .25); }

/* champs */
.lg-field { display: block; margin-bottom: 14px; }
.lg-field > span:first-child { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; color: var(--ink-2); font-size: .8rem; font-weight: 600; }
.lg-field > span:first-child b { color: var(--ink); font-size: .95rem; }
.lg-input { position: relative; display: flex; align-items: center; }
.lg-input > .ic { position: absolute; left: 14px; color: var(--mute); pointer-events: none; transition: color .2s; }
.lg-input input { width: 100%; height: 48px; padding: 0 44px 0 40px; border: 1px solid transparent; border-radius: 12px; background: var(--bg-soft); color: var(--ink); font: inherit; font-size: .95rem; transition: border-color .2s, background .2s, box-shadow .2s; }
.lg-input input::placeholder { color: #A3A6AC; }
.lg-input input:hover { border-color: var(--line); }
.lg-input input:focus { border-color: var(--orange); outline: none; background: var(--bg); box-shadow: 0 0 0 4px rgba(231, 89, 28, .12); }
.lg-input:focus-within > .ic { color: var(--orange); }
.lg-eye { position: absolute; right: 6px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--mute); cursor: pointer; }
.lg-eye:hover { background: var(--line); color: var(--ink); }
.lg-eye .is-hide, .lg-eye[aria-pressed="true"] .is-show { display: none; }
.lg-eye[aria-pressed="true"] .is-hide { display: block; }
.lg-cap { margin-top: -2px; padding: 12px 14px 0; border-radius: 12px; background: #FFF7E6; }
.lg-cap[hidden] { display: none; }

/* se souvenir de moi : interrupteur */
.lg-remember { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; color: var(--ink-2); font-size: .88rem; cursor: pointer; }
.lg-remember input { position: absolute; opacity: 0; pointer-events: none; }
.lg-remember small { color: var(--mute); font-size: .78rem; }
.lg-switch { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: var(--line); transition: background .2s; }
.lg-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #FFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.lg-remember input:checked + .lg-switch { background: var(--orange); }
.lg-remember input:checked + .lg-switch::after { transform: translateX(16px); }
.lg-remember input:focus-visible + .lg-switch { box-shadow: 0 0 0 4px rgba(231, 89, 28, .2); }

/* message, bouton, liens */
.lg-msg { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ko) 8%, #FFF); color: var(--ko); font-size: .85rem; line-height: 1.45; }
.lg-msg[hidden] { display: none; }
.lg-msg.is-ok { background: color-mix(in srgb, var(--ok, #2E9E5B) 10%, #FFF); color: var(--ok, #2E9E5B); }
.lg-btn { width: 100%; min-height: 50px; font-size: 1rem; box-shadow: 0 12px 26px rgba(231, 89, 28, .28); }
.lg-btn[disabled] { box-shadow: none; opacity: .45; cursor: not-allowed; }
.lg-btn.is-busy { opacity: .7; cursor: progress; }
.lg-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; padding: 4px 6px; border: 0; background: none; color: var(--orange-dark); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; }
.lg-view > .lg-link { display: flex; width: 100%; }
.lg-link:hover { text-decoration: underline; }
.lg-link[disabled] { color: var(--mute); cursor: default; text-decoration: none; }
.lg-help { margin: 0 0 6px; color: var(--mute); font-size: .78rem; line-height: 1.5; }
.lg-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.lg-actions .lg-link { margin-top: 8px; }

/* code à 6 chiffres */
.lg-boxes { display: flex; justify-content: center; gap: 8px; margin: 4px 0 16px; }
.lg-boxes input { width: 48px; height: 58px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); color: var(--ink); font: inherit; font-size: 1.5rem; font-weight: 700; text-align: center; transition: border-color .2s, box-shadow .2s, background .2s; }
.lg-boxes input:focus { border-color: var(--orange); outline: none; background: var(--bg); box-shadow: 0 0 0 4px rgba(231, 89, 28, .12); }
.lg-boxes input.is-bad { border-color: var(--ko); animation: lg-shake .35s; }
@keyframes lg-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

/* règles du mot de passe */
.lg-rules { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; padding: 0; list-style: none; }
.lg-rules li { padding: 3px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--mute); font-size: .74rem; font-weight: 600; transition: background .2s, color .2s; }
.lg-rules li::before { content: "○ "; }
.lg-rules li.is-ok { background: color-mix(in srgb, var(--ok, #2E9E5B) 12%, #FFF); color: var(--ok, #2E9E5B); }
.lg-rules li.is-ok::before { content: "✓ "; }

/* pied */
.lg-foot { display: flex; flex-direction: column; gap: 8px; margin: 20px -32px -22px; padding: 16px 32px 18px; border-top: 1px solid var(--line); border-radius: 0 0 20px 20px; background: var(--bg-soft); }
.lg-foot[hidden] { display: none; }
.lg-foot a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: .84rem; transition: color .2s; }
.lg-foot a .ic { color: var(--orange); }
.lg-foot a:hover { color: var(--orange-dark); }

@media (prefers-reduced-motion: reduce) { .lg-view, .lg-boxes input.is-bad { animation: none; } }
