/* SoluSoa — pages de connexion / inscription */
:root { --au-navy: #071238; --au-navy-2: #0b2a8f; --au-blue: #0a6cff; --au-grad: linear-gradient(135deg, #0047ff 0%, #0a6cff 50%, #00c8ff 100%); }
* { box-sizing: border-box; }
body.ss-auth {
    margin: 0; min-height: 100vh; font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    background: #f4f7fb; color: #0f172a; -webkit-font-smoothing: antialiased;
    display: block !important;
}
.auth-wrap { display: grid; grid-template-columns: minmax(380px, 46%) 1fr; min-height: 100vh; }

/* Panneau de marque */
.auth-brand {
    position: relative; overflow: hidden; color: #cbd5e1; padding: 48px 56px;
    display: flex; flex-direction: column; justify-content: space-between;
    background: radial-gradient(600px 360px at 0% 0%, rgba(0, 200, 255, .28), transparent 70%),
                radial-gradient(520px 320px at 100% 100%, rgba(10, 108, 255, .35), transparent 70%),
                linear-gradient(150deg, #071238 0%, #0b2a8f 100%);
}
.auth-brand::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand .logo { height: 52px; width: auto; }
.auth-brand h2 { color: #fff; font-weight: 800; font-size: clamp(1.7rem, 2.6vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 14px; }
.auth-brand h2 span { background: linear-gradient(135deg, #7fe3ff, #00c8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-brand p { font-size: 1.02rem; line-height: 1.7; margin: 0 0 28px; max-width: 460px; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 14px; align-items: center; color: #e2e8f0; font-weight: 600; }
.auth-points i { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: #00d4ff; flex: 0 0 40px; }
.auth-brand small { color: #94a3b8; }
.auth-float { position: absolute; right: -60px; bottom: 90px; width: 260px; opacity: .08; z-index: 0 !important; }

/* Zone du formulaire */
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 440px; animation: authIn .6s cubic-bezier(.22,.61,.36,1) both; }
.auth-card.wide { max-width: 500px; }
@keyframes authIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.auth-card .m-logo { display: none; height: 42px; margin-bottom: 26px; }
.auth-card h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; color: var(--au-navy); margin: 0 0 6px; }
.auth-card .lead-txt { color: #64748b; margin-bottom: 26px; }
.auth-field { position: relative; margin-bottom: 14px; }
.auth-field > i.lead-ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; transition: color .2s; }
.auth-field .form-control {
    height: 52px; padding: 0 46px 0 44px; border: 1px solid #d7dee8; border-radius: 14px; background: #fff;
    font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.auth-field .form-control:focus { border-color: var(--au-blue); box-shadow: 0 0 0 4px rgba(10,108,255,.14); }
.auth-field:focus-within > i.lead-ic { color: var(--au-blue); }
.auth-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent; color: #94a3b8; border-radius: 10px; }
.auth-eye:hover { background: #f1f5f9; color: #0f172a; }
.auth-btn {
    width: 100%; height: 52px; border: 0; border-radius: 14px; margin-top: 6px;
    background: var(--au-grad); color: #fff; font-weight: 800; font-size: 1rem;
    box-shadow: 0 12px 26px rgba(10,108,255,.28); transition: transform .2s, box-shadow .2s, filter .2s;
    position: relative; overflow: hidden;
}
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(10,108,255,.34); filter: brightness(1.04); }
.auth-btn::after { content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .7s; }
.auth-btn:hover::after { left: 130%; }
.auth-alert { display: flex; gap: 10px; align-items: flex-start; border-radius: 14px; padding: 12px 14px; margin-bottom: 18px; font-size: .92rem; font-weight: 600; }
.auth-alert.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.auth-alert.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.auth-alt { text-align: center; margin-top: 22px; color: #64748b; font-size: .93rem; }
.auth-alt a { color: var(--au-blue); font-weight: 700; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }
.auth-back { display: inline-flex; gap: 8px; align-items: center; color: #64748b; text-decoration: none; font-size: .88rem; font-weight: 600; margin-bottom: 30px; }
.auth-back:hover { color: var(--au-navy); }
.auth-hint { font-size: .8rem; color: #94a3b8; margin: -4px 0 12px 4px; }

@media (max-width: 991.98px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-main { align-items: flex-start; padding: 32px 20px 40px; background: radial-gradient(500px 260px at 100% 0%, rgba(0,200,255,.12), transparent 70%), #f4f7fb; }
    .auth-card .m-logo { display: block; }
    .auth-card h1 { font-size: 1.6rem; }
}

/* Pages simples (connexion administrateur, double authentification) */
body.ss-auth-simple { min-height: 100vh; display: flex !important; align-items: center; justify-content: center; padding: 24px;
    background: radial-gradient(600px 360px at 0% 0%, rgba(0,200,255,.25), transparent 70%), linear-gradient(150deg, #071238 0%, #0b2a8f 100%) !important;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif !important; }
body.ss-auth-simple .login-box, body.ss-auth-simple > .card {
    width: 100%; max-width: 420px; background: #fff; border: 0; border-radius: 22px; padding: 34px 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,.3); animation: authIn .6s cubic-bezier(.22,.61,.36,1) both;
}
body.ss-auth-simple h3, body.ss-auth-simple h4 { font-weight: 800; color: var(--au-navy); letter-spacing: -0.02em; }
body.ss-auth-simple .form-control { height: 50px; border-radius: 14px; border: 1px solid #d7dee8; }
body.ss-auth-simple .form-control:focus { border-color: var(--au-blue); box-shadow: 0 0 0 4px rgba(10,108,255,.14); }
body.ss-auth-simple label { font-weight: 600; color: #334155; font-size: .9rem; margin-bottom: 6px; }
body.ss-auth-simple .btn-primary { height: 50px; border: 0; border-radius: 14px; background: var(--au-grad); font-weight: 800; box-shadow: 0 12px 26px rgba(10,108,255,.28); }
body.ss-auth-simple .ss-simple-logo { display: block; height: 40px; margin: 0 auto 18px; }
@media (prefers-reduced-motion: reduce) { .auth-card, body.ss-auth-simple .login-box, body.ss-auth-simple > .card { animation: none; } }
