/* Présentation de connexion ZotNumérik : indépendante des sites clients. */
.app-shell[data-authenticated="false"] { background: #f6f8fc; }
.app-shell[data-authenticated="false"] main { padding: 1.5rem 1rem 3rem; align-content: center; gap: 0; }
.app-shell[data-authenticated="false"] [data-install-open] { position: fixed; right: .5rem; bottom: .5rem; z-index: 2; padding: .4rem .6rem; min-height: 32px; font-size: .7rem; color: #687795; background: #f6f8fc; }
.login-screen { width: min(100%, 32rem); padding: 0; background: transparent; border: 0; box-shadow: none; color: #183156; }
.login-intro { text-align: center; margin-bottom: 1.75rem; }
.login-brand { margin: 0 auto .5rem; }
.login-brand img { display: block; width: 180px; height: 120px; object-fit: contain; margin: 0 auto; mix-blend-mode: multiply; }
.login-intro h1 { margin: .3rem 0 .65rem; color: #071d40; text-transform: uppercase; font-size: clamp(1.05rem, 4.5vw, 1.65rem); line-height: 1.3; letter-spacing: -.02em; font-weight: 800; }
.login-intro h2 { margin: 0; font-size: 1.4rem; color: #6b7896; font-weight: 500; }
.login-panel .login-card { padding: clamp(1.25rem, 5vw, 2rem); gap: 1.2rem; border: 1px solid #e9edf5; border-radius: 1.35rem; background: #fff; box-shadow: 0 12px 42px #17325a06; }
.login-card label { color: #344b70; font-size: .95rem; font-weight: 550; }
.login-card .auth-field { position: relative; display: flex; align-items: center; min-width: 0; }
.auth-field > svg { position: absolute; left: .85rem; width: 21px; height: 21px; color: #52668a; pointer-events: none; }
.login-card svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.login-card .auth-field input { width: 100%; height: 3.25rem; padding: .7rem 2.8rem .7rem 2.8rem; border: 1px solid #d9e1ef; border-radius: .55rem; background: #fff; color: #263e64; box-shadow: none; font-size: 1rem; }
.login-card input::placeholder { color: #a1aec5; }
.login-card .password-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: -.8rem; }
.login-card .auth-link { min-height: 32px; padding: .2rem 0; border: 0; border-radius: .25rem; background: transparent; color: #0065ff; font-weight: 500; font-size: .86rem; white-space: normal; }
.login-card .password-toggle { position: absolute; right: .35rem; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #52668a; }
.password-toggle svg { width: 24px; height: 24px; }
.login-card .remember-device { font-size: .86rem; font-weight: 400; line-height: 1.5; gap: .7rem; }
.login-card .remember-device input { width: 20px; height: 20px; accent-color: #183862; }
.login-card > button[type="submit"] { min-height: 3.4rem; border-radius: .75rem; border: 1px solid #173860; background: linear-gradient(115deg, #193b69, #17335b); font-size: 1.08rem; font-weight: 600; }
.login-card > button[type="submit"]::after { content: " →"; margin-left: .7rem; }
.login-divider { display: flex; align-items: center; gap: 1rem; color: #9aa8c1; font-size: .8rem; margin: .1rem 0; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: #e7ecf4; }
.login-first-time { margin: 0; text-align: center; color: #465b80; font-size: .86rem; line-height: 1.6; }
.login-first-time .auth-link { font-size: inherit; }
@media (max-width: 360px) { .login-card .password-heading { flex-wrap: wrap; } }
@media (max-height: 740px) { .app-shell[data-authenticated="false"] main { align-content: start; padding-top: .5rem; } .login-brand img { width: 150px; height: 100px; } .login-intro { margin-bottom: 1.25rem; } }

/* Continuité entre l’écran natif du téléphone et le contrôle de session. */
[data-session-pending="true"] .topbar,
[data-session-pending="true"] [data-install-open],
[data-session-pending="true"] [data-install-help] { display: none; }
.session-splash:not([hidden]) { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100vh; height: 100dvh; max-width: none; padding: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: #fff; overflow: hidden; }
.session-splash-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(88vw, 360px); }
.session-splash-logo img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.session-splash-progress { position: absolute; left: 1rem; right: 1rem; top: calc(50% + min(29.34vw, 120px)); display: grid; justify-items: center; gap: 1.3rem; padding-top: 1rem; }
.session-spinner { display: block; width: 34px; height: 34px; border: 2px solid #dadddf; border-top-color: #102b4a; border-right-color: #102b4a; border-radius: 50%; animation: session-spin 1s linear infinite; }
.session-splash h2 { margin: 0; color: #4b6584; font-size: .95rem; line-height: 1.5; font-weight: 400; text-align: center; }
@keyframes session-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .session-spinner { animation: none; } }
@media (max-height: 480px) { .session-splash-logo { width: min(45vw, 220px); top: 40%; } .session-splash-progress { top: calc(40% + 74px); gap: .5rem; } }
.email-action-page { min-height: 100vh; min-height: 100dvh; background: #f6f8fc; }
.email-action { display: grid; justify-items: center; align-content: center; gap: 1rem; width: min(100%, 36rem); max-width: none; min-height: 100vh; min-height: 100dvh; margin: auto; padding: 1.5rem 1rem; }
.email-action .login-intro { margin: 0; }
.email-action-logo { display: block; width: 180px; height: 120px; object-fit: contain; margin: auto; mix-blend-mode: multiply; }
.email-action-card h2 { color: #142e50; font-size: 1.35rem; line-height: 1.35; }
.email-action-card > p { color: #5d6d84; line-height: 1.6; }
.email-action-card form { margin-top: 1.4rem; }
.email-action-return { display: inline-block; padding: .8rem 0; color: #0065ff; font-weight: 600; }
.email-action-footer { margin: .25rem 0; text-align: center; color: #6b7896; font-size: .8rem; }
