/* Reset et polices */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background-color: #f0f1f1;
    position: relative;
    min-height: 100vh;
}

/* Conteneur principal */
.login-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
}

/* Carte de login */
.login-container {
    background: white;
    /* border-radius: 10px; */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    /* Augmenté pour accueillir les deux colonnes */
    width: 100%;
    height: auto;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.login-footer {
    text-align: center;
    align-items: center;
    margin-top: 1.5rem;
}

.login-footer p {
    margin-bottom: 0;
}

.login-form {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Info Panel */
.info-panel {
    background: linear-gradient(135deg, #0C2D48 0%, #145DA0 100%);
    color: white;
    padding: 3rem 2rem;
    /* border-radius: 0 10px 10px 0; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.info-panel h3 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.info-panel h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.5);
}

.info-panel ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.info-panel li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
}

.info-panel li i {
    margin-right: 10px;
    margin-top: 4px;
    color: #7ec8e3;
}

.responsible-section {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.responsible-section h5 {
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.responsible-section h5 i {
    margin-right: 8px;
}

.responsible-section p {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

/* Éléments du formulaire */
.brand-logo {
    margin-top: -30px;
    max-width: 100px;
    height: auto;
}

.form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #0C2D48;
    box-shadow: none !important;
}

.btn-login {
    background-color: #0C2D48;
    color: white;
    padding: 0.75rem;
    margin-top: 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
}

.btn-login:disabled {
    background-color: #0C2D48;
    color: white;
    padding: 0.75rem;
    margin-top: 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
}

.btn-login:hover {
    background-color: #145DA0;
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 5px 15px rgba(3, 127, 16, 0.3);
}

.input-group-text {
    background-color: white;
    border-right: none;
}

.input-group .form-control {
    border-left: none;
}

.toggle-password {
    border-left: none;
    background-color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .login-form {
        padding: 2rem;
    }

    .info-panel {
        display: none;
    }
}

/* Alertes */
#alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
}

.alert {
    display: flex;
    align-items: center;
    min-width: 300px;
}

.btn-close {
    margin-left: auto;
}

/* -------------------------------------------------- */
/* ANIMATIONS D'ARRIÈRE-PLAN */
/* -------------------------------------------------- */

.background-effects {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

/* Système de bulles */
.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    animation: rise 15s infinite ease-in;
    opacity: 0.6;
    filter: blur(1px);
    will-change: transform;
}

/* Configuration des 20 bulles */
.bubble:nth-child(1) {
    width: 40px;
    height: 40px;
    left: 5%;
    bottom: -100px;
    background-color: rgba(36, 5, 136, 0.15);
    animation-duration: 18s;
}

.bubble:nth-child(2) {
    width: 25px;
    height: 25px;
    left: 15%;
    bottom: -100px;
    background-color: rgba(3, 13, 127, 0.2);
    animation-duration: 10s;
    animation-delay: 2s;
}

.bubble:nth-child(3) {
    width: 60px;
    height: 60px;
    left: 25%;
    bottom: -100px;
    background-color: rgba(65, 76, 145, 0.15);
    animation-duration: 12s;
    animation-delay: 1s;
}

.bubble:nth-child(4) {
    width: 80px;
    height: 80px;
    left: 35%;
    bottom: -100px;
    background-color: rgba(79, 88, 209, 0.1);
    animation-duration: 15s;
}

.bubble:nth-child(5) {
    width: 35px;
    height: 35px;
    left: 45%;
    bottom: -100px;
    background-color: rgba(34, 43, 139, 0.2);
    animation-duration: 9s;
    animation-delay: 3s;
}

.bubble:nth-child(6) {
    width: 50px;
    height: 50px;
    left: 55%;
    bottom: -100px;
    background-color: rgba(0, 18, 100, 0.15);
    animation-duration: 11s;
    animation-delay: 0.5s;
}

.bubble:nth-child(7) {
    width: 70px;
    height: 70px;
    left: 65%;
    bottom: -100px;
    background-color: rgba(152, 169, 251, 0.1);
    animation-duration: 14s;
    animation-delay: 2s;
}

.bubble:nth-child(8) {
    width: 30px;
    height: 30px;
    left: 75%;
    bottom: -100px;
    background-color: rgba(0, 0, 128, 0.2);
    animation-duration: 8s;
    animation-delay: 1.5s;
}

.bubble:nth-child(9) {
    width: 45px;
    height: 45px;
    left: 85%;
    bottom: -100px;
    background-color: rgba(58, 50, 205, 0.15);
    animation-duration: 10s;
}

.bubble:nth-child(10) {
    width: 65px;
    height: 65px;
    left: 95%;
    bottom: -100px;
    background-color: rgba(144, 164, 238, 0.1);
    animation-duration: 13s;
    animation-delay: 1s;
}

.bubble:nth-child(11) {
    width: 20px;
    height: 20px;
    left: 8%;
    bottom: -100px;
    background-color: rgba(0, 13, 255, 0.1);
    animation-duration: 7s;
    animation-delay: 2.5s;
}

.bubble:nth-child(12) {
    width: 55px;
    height: 55px;
    left: 22%;
    bottom: -100px;
    background-color: rgba(64, 60, 179, 0.15);
    animation-duration: 11s;
    animation-delay: 0.5s;
}

.bubble:nth-child(13) {
    width: 40px;
    height: 40px;
    left: 38%;
    bottom: -100px;
    background-color: rgba(51, 46, 139, 0.2);
    animation-duration: 9s;
    animation-delay: 1s;
}

.bubble:nth-child(14) {
    width: 30px;
    height: 30px;
    left: 42%;
    bottom: -100px;
    background-color: rgba(104, 102, 205, 0.15);
    animation-duration: 8s;
    animation-delay: 3s;
}

.bubble:nth-child(15) {
    width: 75px;
    height: 75px;
    left: 58%;
    bottom: -100px;
    background-color: rgba(32, 44, 178, 0.1);
    animation-duration: 12s;
}

.bubble:nth-child(16) {
    width: 25px;
    height: 25px;
    left: 62%;
    bottom: -100px;
    background-color: rgba(0, 14, 209, 0.1);
    animation-duration: 7s;
    animation-delay: 2s;
}

.bubble:nth-child(17) {
    width: 50px;
    height: 50px;
    left: 78%;
    bottom: -100px;
    background-color: rgba(96, 95, 160, 0.15);
    animation-duration: 10s;
    animation-delay: 1.5s;
}

.bubble:nth-child(18) {
    width: 35px;
    height: 35px;
    left: 82%;
    bottom: -100px;
    background-color: rgba(127, 138, 255, 0.1);
    animation-duration: 8s;
    animation-delay: 0.5s;
}

.bubble:nth-child(19) {
    width: 60px;
    height: 60px;
    left: 12%;
    bottom: -100px;
    background-color: rgba(0, 7, 139, 0.1);
    animation-duration: 13s;
    animation-delay: 1s;
}

.bubble:nth-child(20) {
    width: 45px;
    height: 45px;
    left: 28%;
    bottom: -100px;
    background-color: rgba(0, 8, 255, 0.15);
    animation-duration: 9s;
    animation-delay: 2s;
}

@keyframes rise {
    0% {
        transform: translateX(0) scale(0.8);
        opacity: 0.2;
    }

    50% {
        transform: translateX(100px) scale(1.1);
        opacity: 0.7;
    }

    100% {
        bottom: 120vh;
        transform: translateX(-200px) scale(0.9);
        opacity: 0;
    }
}

/* Système de lignes */
.lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.line {
    position: absolute;
    height: 2px;
    animation: flow 20s infinite linear;
    transform-origin: left center;
    opacity: 0;
    background: linear-gradient(90deg,
            rgba(30, 32, 65, 0) 0%,
            rgba(30, 31, 65, 0.5) 50%,
            rgba(30, 34, 65, 0) 100%);
    filter: drop-shadow(0 0 3px rgba(30, 31, 65, 0.4));
    will-change: transform;
}

/* Configuration des 10 lignes */
.line:nth-child(1) {
    --angle: 5deg;
    top: 15%;
    width: 40vw;
    animation-duration: 22s;
}

.line:nth-child(2) {
    --angle: -3deg;
    top: 30%;
    width: 60vw;
    animation-duration: 18s;
    animation-delay: 2s;
}

.line:nth-child(3) {
    --angle: 8deg;
    top: 45%;
    width: 50vw;
    animation-duration: 25s;
    animation-delay: 4s;
}

.line:nth-child(4) {
    --angle: -2deg;
    top: 60%;
    width: 70vw;
    animation-duration: 20s;
    animation-delay: 1s;
}

.line:nth-child(5) {
    --angle: 4deg;
    top: 75%;
    width: 55vw;
    animation-duration: 28s;
    animation-delay: 3s;
}

.line:nth-child(6) {
    --angle: -6deg;
    top: 20%;
    width: 65vw;
    animation-duration: 30s;
    animation-delay: 5s;
}

.line:nth-child(7) {
    --angle: 10deg;
    top: 50%;
    width: 45vw;
    animation-duration: 24s;
    animation-delay: 2s;
}

.line:nth-child(8) {
    --angle: -8deg;
    top: 80%;
    width: 75vw;
    animation-duration: 32s;
    animation-delay: 6s;
}

.line:nth-child(9) {
    --angle: 2deg;
    top: 25%;
    width: 50vw;
    animation-duration: 26s;
    animation-delay: 3s;
}

.line:nth-child(10) {
    --angle: -5deg;
    top: 65%;
    width: 60vw;
    animation-duration: 34s;
    animation-delay: 7s;
}

@keyframes flow {
    0% {
        transform: translateX(-30%) scaleX(0.3) rotate(var(--angle));
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }

    80% {
        opacity: 0.6;
    }

    100% {
        transform: translateX(130vw) scaleX(1.2) rotate(var(--angle));
        opacity: 0;
    }
}


/* Styles pour l'alerte flottante */
.alert-floating {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    animation: slideInRight 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}


/* Styles pour les formulaires */
.form-control:valid {
    border-color: #28a745;
}

.form-control:invalid {
    border-color: #dc3545;
}

.form-control:focus:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}