@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

* { box-sizing: border-box; }

body { 
    margin: 0; 
    padding: 0; 
    font-family: 'Ubuntu', sans-serif; /* Changé ici */
    background-color: #0a0b10; 
    height: 100vh; 
    overflow: hidden; 
}
.stars { position: absolute; width: 100%; height: 100%; background: url('https://www.transparenttextures.com/patterns/stardust.png'); opacity: 0.2; z-index: 1; }

.split-container { display: flex; width: 100%; height: 100vh; position: relative; z-index: 2; }

/* --- GAUCHE (RETRÉCIE À 40%) --- */
.side-left {
    flex: 0 0 40%;
    position: relative;
    background: #000;
}

.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; display: flex; align-items: center; justify-content: center; }
.slide.active { opacity: 1; }
.slide-overlay { position: absolute; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); }
.slide-content { position: relative; z-index: 5; text-align: center; max-width: 85%; color: #fff; }
.slide-content h2 { font-size: 28px; font-weight: 700; margin-bottom: 15px; }
.slide-content p { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.8); }

.slider-dots { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.dot { width: 8px; height: 8px; background: rgba(255,255,255,0.3); border-radius: 50%; transition: 0.3s; }
.dot.active { background: #6366f1; width: 25px; border-radius: 4px; }

/* --- DROITE (ÉLARGIE À 60%) --- */
.side-right {
    flex: 0 0 60%;
    background: #0d0e14;
    display: flex; align-items: center; justify-content: center;
    padding: 60px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.login-box { width: 100%; max-width: 400px; }
.logo-container { text-align: center; margin-bottom: 20px; }
.main-logo { width: 250px; filter: drop-shadow(0 0 2px #564f85) drop-shadow(0 0 15px #9465ad); }

.brand { text-align: center; margin-bottom: 40px; }
.brand h1 { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.brand p { color: #64748b; font-size: 14px; }
.brand p span { color: #818cf8; font-weight: 600; }

.input-field { margin-bottom: 22px; }
.input-field label { display: flex; align-items: center; font-size: 11px; text-transform: uppercase; font-weight: 700; color: #94a3b8; margin-bottom: 10px; }
.input-field label i { margin-right: 12px; color: #6366f1; font-size: 14px; }
.input-field input { width: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 15px; color: #fff; outline: none; transition: 0.3s; }
.input-field input:focus { border-color: #6366f1; background: rgba(255, 255, 255, 0.08); }

.password-wrapper { position: relative; }
.toggle-password { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #475569; cursor: pointer; }

.login-btn { width: 100%; padding: 16px; background: #6366f1; border: none; border-radius: 12px; color: #fff; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; transition: 0.3s; }
.login-btn:hover { background: #4f46e5; transform: translateY(-2px); }

.error-msg { background: rgba(239, 68, 68, 0.1); color: #f87171; padding: 14px; border-radius: 10px; font-size: 13px; margin-bottom: 25px; border: 1px solid rgba(239, 68, 68, 0.2); }
.footer-links { text-align: center; margin-top: 35px; color: #475569; font-size: 12px; }

@media (max-width: 1024px) { .side-left { display: none; } .side-right { flex: 0 0 100%; } }