/* ═══════════════════════════════════════════════════════════════
   DTISoft — Overlay de verrouillage de session (js/session-lock.js)
   Namespace : sl-
   ═══════════════════════════════════════════════════════════════ */

.sl-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;               /* au-dessus de TOUT (fiches z-index 8000) */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.sl-panel {
    width: 360px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    padding: 28px 26px 20px;
    text-align: center;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    animation: sl-pop 0.16s ease-out;
}

@keyframes sl-pop {
    from { transform: translateY(8px) scale(0.98); opacity: 0; }
    to   { transform: none; opacity: 1; }
}

.sl-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.sl-title {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
}

.sl-msg {
    margin: 0 0 16px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #475569;
}

.sl-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 auto 14px;
    padding: 5px 12px;
    background: #f1f5f9;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.sl-user i { color: #64748b; font-size: 12px; }

.sl-form { display: flex; flex-direction: column; gap: 10px; }

.sl-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.12s, box-shadow 0.12s;
}
.sl-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.sl-err {
    min-height: 16px;
    font-size: 12.5px;
    color: #dc2626;
    text-align: left;
}

.sl-btn {
    width: 100%;
    padding: 11px 14px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s;
}
.sl-btn:hover:not(:disabled) { background: #1d4ed8; }
.sl-btn:disabled { opacity: 0.65; cursor: default; }

.sl-logout {
    margin-top: 14px;
    background: none;
    border: 0;
    color: #64748b;
    font-size: 12.5px;
    text-decoration: underline;
    cursor: pointer;
}
.sl-logout:hover { color: #334155; }
