/* Qualitech Lift · bureau d'études : écrans de connexion, de création d'espace et de mot de passe (communs PC et mobile). */
html.qs-attente:not(.qs-local) body > :not(#qs):not(.qs-bandeau) { display: none !important; }
html.qs-attente.qs-local #qs ~ * { display: none !important; }
.qs-ecran.qs-dans { min-height: 100%; flex: 1; overflow-y: auto; }
.qs-ecran { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  background: radial-gradient(900px 500px at 15% 0%, #e6e9ff 0%, transparent 60%), #f4f6fa; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; color: #0f172a; }
.qs-carte { width: 100%; max-width: 440px; background: #fff; border-radius: 20px; padding: 28px 24px; box-shadow: 0 1px 2px rgb(15 23 42 / .05), 0 18px 50px -20px rgb(11 37 69 / .35); }
.qs-logo { display: flex; justify-content: center; margin-bottom: 10px; }
.qs-logo svg { width: 64px; height: 64px; }
.qs-sur { text-align: center; margin: 0 0 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5b3df0; }
.qs-carte h1 { text-align: center; font-size: 24px; margin: 0 0 8px; letter-spacing: -.01em; outline: none; }
.qs-sous { text-align: center; color: #475569; margin: 0 0 18px; font-size: 14px; line-height: 1.5; }
.qs-champ { margin-bottom: 14px; }
.qs-champ label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.qs-saisie { display: flex; align-items: stretch; border: 1px solid #94a3b8; border-radius: 12px; background: #fff; }
.qs-saisie:focus-within { border-color: #5b3df0; box-shadow: 0 0 0 3px #5b3df033; }
.qs-saisie input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px; color: #0f172a; border-radius: 12px; outline: none; }
.qs-oeil { flex: none; width: 48px; border: 0; background: none; color: #475569; border-radius: 0 12px 12px 0; cursor: pointer; display: grid; place-items: center; }
.qs-oeil svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.qs-oeil[aria-pressed="true"] { color: #5b3df0; }
.qs-oeil:focus-visible, .qs-btn:focus-visible, .qs-lien:focus-visible { outline: 3px solid #5b3df0; outline-offset: 2px; }
.qs-aide { margin: 4px 0 0; font-size: 12.5px; color: #475569; }
.qs-erreur { color: #b91c1c; font-weight: 600; font-size: 14px; margin: 4px 0 10px; min-height: 1px; }
.qs-erreur:empty { margin: 0; }
.qs-btn { width: 100%; min-height: 50px; border: 0; border-radius: 14px; background: #5b3df0; color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.qs-btn:hover { background: #4527d6; }
.qs-btn:disabled { background: #8f7ef0; cursor: progress; }
.qs-lien { display: block; width: 100%; text-align: center; margin-top: 16px; background: none; border: 0; color: #4527d6; font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px; }
.qs-bandeau { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 99999; padding: 10px 16px; border-radius: 12px;
  font: 14px/1.4 system-ui, sans-serif; box-shadow: 0 8px 30px rgb(0 0 0 / .2); max-width: 92vw; background: #0b2545; color: #fff; }
.qs-bandeau.grave { background: #fdecea; color: #7a1b12; border: 1px solid #f5b5ad; }
.qs-bandeau[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .qs-ecran * { transition: none !important; animation: none !important; } }
.qs-lien-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; margin-top: 8px; }
/* Connexion : case « se souvenir de cet appareil » */
.qs-case { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: 14px; line-height: 1.35; }
.qs-case input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--primary); }
/* Version + « Réalisé par Qualitech » : discret, en bas à gauche ; au-dessus de la barre d'onglets sur l'appli de terrain */
.qs-version { position: fixed; left: 10px; bottom: 8px; z-index: 5; font-size: 11px; line-height: 1.3; color: #64748b; background: rgb(255 255 255 / .85); border-radius: 8px; padding: 3px 8px; font-variant-numeric: tabular-nums; }
.qs-version a { color: inherit; }
.qs-version-mobile { bottom: calc(76px + env(safe-area-inset-bottom)); font-size: 10px; opacity: .8; }
@media print { .qs-version { display: none; } }
