:root {
    --primary: #452676;
    --step2: #5A3794;
    --step3: #6C4AB6;
    --step4: #8D72E1;
    --step5: #B9A7F5;
    --step6: #EDE9FF;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

body {
    height: 100vh;
    background-color: var(--white);
    overflow: hidden;
}

.login-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    position: relative;
}

.login-left {
    width: 45%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 40px;
}

.form-container {
    width: 100%;
    max-width: 400px;
}

.brand-header {
    margin-bottom: 45px;
}

.brand-header img {
    width: 400px;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 15px rgba(69, 38, 118, 0.1));
}

/* Champs de saisie */
.input-box {
    margin-bottom: 25px;
}

.input-box label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.custom-input {
    width: 100%;
    padding: 18px 22px;
    border-radius: 16px;
    border: 2px solid var(--step6);
    background: var(--step6);
    color: var(--primary);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-input:focus {
    outline: none;
    background: var(--white);
    border-color: var(--step3);
    box-shadow: 0 10px 25px rgba(108, 74, 182, 0.1);
    transform: translateY(-2px);
}

.btn-action {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary), var(--step2));
    color: var(--white);
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 10px 20px rgba(69, 38, 118, 0.2);
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(69, 38, 118, 0.3);
    filter: brightness(1.1);
}

.login-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 65%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--step2), var(--step3));
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

.bg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, transparent, transparent 100px, rgba(139, 114, 225, 0.05) 100px, rgba(139, 114, 225, 0.05) 200px);
}
.css-star {
    position: absolute;
    background: var(--white);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    opacity: 0.4;
}

.star-1 {
    width: 30px;
    height: 30px;
    top: 15%;
    left: 25%;
    animation: twinkle 4s infinite;
}
.star-2 {
    width: 20px;
    height: 20px;
    top: 40%;
    right: 15%;
    animation: twinkle 5s infinite 1s;
}
.star-3 {
    width: 40px;
    height: 40px;
    bottom: 15%;
    left: 35%;
    animation: twinkle 6s infinite 2s;
}

/* ========== PLANÈTES ========== */

/* Planète 1 - Grande planète avec anneaux */
.planet-1 {
    position: absolute;
    width: 180px;
    height: 180px;
    bottom: 5%;
    left: -60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 35%, var(--step5), var(--step3));
    box-shadow: 0 0 30px rgba(185, 167, 245, 0.5);
    animation: planetFloat 8s ease-in-out infinite;
}

.planet-1::before {
    content: '';
    position: absolute;
    width: 240px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(185, 167, 245, 0.6), transparent);
    border-radius: 50%;
    top: 50%;
    left: -30px;
    transform: translateY(-50%) rotate(15deg);
    filter: blur(4px);
}

.planet-1::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 30px;
    background: radial-gradient(ellipse, rgba(141, 114, 225, 0.5), transparent);
    border-radius: 50%;
    top: 50%;
    left: -20px;
    transform: translateY(-50%) rotate(-5deg);
    filter: blur(3px);
}


.planet-2 {
    position: absolute;
    width: 100px;
    height: 100px;
    top: 20%;
    right: 10%;
    border-radius: 50%;
    background: radial-gradient(circle at 65% 40%, var(--step4), var(--step2));
    box-shadow: 0 0 25px rgba(108, 74, 182, 0.5);
    animation: planetSpin 12s linear infinite, planetFloat 6s ease-in-out infinite;
}

.planet-2::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    top: 25%;
    left: 20%;
    box-shadow: 35px 40px 0 0 rgba(0, 0, 0, 0.15), 55px 15px 0 0 rgba(0, 0, 0, 0.1), 15px 65px 0 0 rgba(0, 0, 0, 0.12);
}


.planet-3 {
    position: absolute;
    width: 140px;
    height: 140px;
    top: 25%;
    right: 25%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--step5), var(--step3), var(--step4));
    box-shadow: 0 0 30px rgba(141, 114, 225, 0.6);
    animation: planetFloat 7s ease-in-out infinite reverse;
}

.planet-3::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    top: 30%;
    left: 0;
    border-radius: 10px;
    filter: blur(3px);
}

.planet-3::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 15px;
    background: rgba(255, 255, 255, 0.2);
    top: 60%;
    left: 0;
    border-radius: 10px;
    filter: blur(2px);
}

/* Planète 4 - Petite lune */
.moon {
    position: absolute;
    width: 45px;
    height: 45px;
    top: 70%;
    left: 20%;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 45%, var(--step6), var(--step4));
    box-shadow: 0 0 15px rgba(185, 167, 245, 0.5);
    animation: moonOrbit 15s linear infinite;
}

.moon::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    top: 30%;
    left: 25%;
    box-shadow: 12px 20px 0 0 rgba(0, 0, 0, 0.15), 25px 10px 0 0 rgba(0, 0, 0, 0.1);
}

.planet-5 {
    position: absolute;
    width: 110px;
    height: 110px;
    bottom: 20%;
    right: 40%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--step6), var(--step3));
    box-shadow: 0 0 20px rgba(185, 167, 245, 0.6);
    animation: planetFloat 9s ease-in-out infinite;
}

.planet-5::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 25px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.5), transparent);
    border-radius: 50%;
    top: 50%;
    left: -20px;
    transform: translateY(-50%) rotate(35deg);
    filter: blur(3px);
}


.orbit-ring {
    position: absolute;
    width: 280px;
    height: 280px;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid rgba(185, 167, 245, 0.3);
    border-radius: 50%;
    animation: orbitRotate 20s linear infinite;
}

.orbit-ring::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--step5);
    border-radius: 50%;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--step5);
}


.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white;
    animation: shooting 3s linear infinite;
    opacity: 0;
}

.shooting-star-1 {
    top: 10%;
    left: -20px;
    animation-delay: 0s;
}

.shooting-star-2 {
    top: 30%;
    left: -20px;
    animation-delay: 2s;
}

.shooting-star-3 {
    top: 50%;
    left: -20px;
    animation-delay: 4s;
}

.rocket-container {
    position: absolute;
    bottom: 60%;
    left: 25%;
    z-index: 20;
    animation: rocketFloat 4s ease-in-out infinite;
}

.rocket-container img {
    width: 400px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.rocket-container:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 25px 40px rgba(215, 46, 225, 0.4));
}

/* ANIMATIONS */
@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

@keyframes planetFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes planetSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes moonOrbit {
    from {
        transform: rotate(0deg) translateX(80px) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(80px) rotate(-360deg);
    }
}

@keyframes orbitRotate {
    from {
        transform: translateX(-50%) rotate(0deg);
    }
    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

@keyframes shooting {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0;
        width: 2px;
    }
    10% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateX(400px) translateY(100px);
        opacity: 0;
        width: 0;
    }
}

@keyframes rocketFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

/* Alert Style */
.alert-message {
    padding: 16px;
    background: var(--step6);
    border-radius: 12px;
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 25px;
    border-left: 5px solid var(--step4);
}

.alert-info {
    padding: 16px;
    background: var(--step6);
    border-radius: 12px;
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 25px;
    border-left: 5px solid var(--step3);
}

@media (max-width: 1024px) {
    .login-right {
        display: none;
    }
    .login-left {
        width: 100%;
    }
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--step3);
}

.small {
    font-size: 12px;
}

.mt-3 {
    margin-top: 20px;
}