/* ── Login page ──────────────────────────────────────────────── 
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    padding: 1rem;
}
    */


.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a1f14; /* ← fond sombre */
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.login-wrap {
    display: flex;
    width: 100%;
    max-width: 860px;
    min-height: 520px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.12);
}

/* ── Panneau gauche ──────────────────────────────────────────── */
.login-left {
    flex: 1;
    background: linear-gradient(145deg, #0e8c38, #0a6e2c);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}

.login-left::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: rgba(249,115,22,0.08);
    pointer-events: none;
}

.ll-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.ll-logo-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.ll-logo-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.ll-logo-sub {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.55);
    margin-top: 1px;
}

.ll-body { position: relative; z-index: 1; }

.ll-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.ll-title span { color: #fbbf24; }

.ll-desc {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.65;
    margin-bottom: 2rem;
}

.ll-stats { display: flex; gap: 1.5rem; }
.ll-stat { display: flex; flex-direction: column; }

.ll-stat-val {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fbbf24;
    line-height: 1;
}

.ll-stat-lbl {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.45);
    margin-top: 4px;
}

.ll-footer {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    position: relative;
    z-index: 1;
}

/* ── Panneau droit ───────────────────────────────────────────── */
.login-right {
    width: 380px;
    flex-shrink: 0;
    padding: 2.5rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lr-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #0e8c38;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.lr-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #0e8c38;
}

.lr-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.lr-sub {
    font-size: 0.825rem;
    color: #6b7280;
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

.lr-alert {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.825rem;
    margin-bottom: 1rem;
    background: rgba(239,68,68,0.06);
    border: 1px solid rgba(239,68,68,0.2);
    color: #b91c1c;
}

.lr-alert-success {
    background: rgba(22,163,74,0.06);
    border-color: rgba(22,163,74,0.2);
    color: #15803d;
}

.lr-field { margin-bottom: 0.875rem; }

.lr-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #4b5563;
    margin-bottom: 5px;
}

.lr-input-wrap { position: relative; display: flex; align-items: center; }

.lr-input-icon {
    position: absolute;
    left: 0.75rem;
    color: #9ca3af;
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 1;
}

.lr-input {
    width: 100%;
    padding: 0.6rem 2.5rem 0.6rem 2.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    color: #111827;
    background: #f8fafc;
    outline: none;
    transition: all 0.15s;
}

.lr-input:focus {
    border-color: #0e8c38;
    box-shadow: 0 0 0 3px rgba(14,140,56,0.1);
    background: #fff;
}

.lr-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
}

.lr-eye {
    position: absolute;
    right: 0.625rem;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.15s;
    padding: 2px 4px;
}

.lr-eye:hover { color: #0e8c38; }

.lr-forgot {
    text-align: right;
    margin-top: 5px;
}

.lr-forgot a {
    font-size: 0.775rem;
    color: #0e8c38;
    text-decoration: none;
}

.lr-forgot a:hover { opacity: 0.75; }

.lr-remember {
    margin-bottom: 0.25rem;
}

.lr-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.825rem;
    color: #4b5563;
}

.lr-check input { accent-color: #0e8c38; }

.lr-btn {
    width: 100%;
    padding: 0.7rem;
    margin-top: 1rem;
    border-radius: 8px;
    border: none;
    background: #0e8c38;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.lr-btn:hover { background: #0a7530; }
.lr-btn:active { transform: scale(0.98); }
.lr-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.lr-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1rem 0;
    font-size: 0.75rem;
    color: #9ca3af;
}

.lr-divider::before,
.lr-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.lr-public {
    width: 100%;
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #4b5563;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.825rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.15s;
}

.lr-public:hover {
    background: #fff;
    border-color: #0e8c38;
    color: #0e8c38;
}

.lr-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 1rem;
    font-size: 0.7rem;
    color: #9ca3af;
}

.lr-secure i { color: #0e8c38; font-size: 0.75rem; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 700px) {
    .login-left { display: none; }
    .login-right { width: 100%; padding: 2rem 1.5rem; }
}





/* nouveaux codes pour login */
#login-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.login-wrap {
    position: relative;
    z-index: 1; /* ← par-dessus le canvas */
    /* ... reste inchangé ... */
}


/* ── Lien retour ─────────────────────────────────────────────── */
.lr-back {
    margin-bottom: 1.25rem;
}

.lr-back a {
    font-size: 0.8rem;
    color: #6b7280;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.15s;
}

.lr-back a:hover { color: #0e8c38; }

/* ── Icône carte ─────────────────────────────────────────────── */
.lr-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f97316, #ea6c0a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 14px rgba(249,115,22,0.3);
}

/* ── Étapes (forgot password) ────────────────────────────────── */
.ll-steps {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ll-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ll-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    flex-shrink: 0;
}

.ll-step.active .ll-step-num {
    background: #fbbf24;
    border-color: #fbbf24;
    color: #0a1f14;
}

.ll-step-text {
    font-size: 0.775rem;
    color: rgba(255,255,255,0.55);
}

.ll-step.active .ll-step-text {
    color: #fff;
    font-weight: 600;
}

.ll-step-arrow {
    color: rgba(255,255,255,0.25);
    font-size: 0.7rem;
}

/* ── Critères panneau gauche (reset) ─────────────────────────── */
.ll-criteria {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.ll-criterion {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    transition: color 0.2s;
}

.ll-criterion i {
    font-size: 0.45rem;
    color: rgba(255,255,255,0.3);
    transition: color 0.2s;
}

.ll-criterion.valid {
    color: rgba(255,255,255,0.9);
}

.ll-criterion.valid i {
    color: #4ade80;
    font-size: 0.75rem;
}