:root{
    --fcolor : rgb(53, 36, 32);
    --scolor : rgb(16, 124, 40);
    --dcolor : rgba(255, 255, 255, 0.897);
    --ecolor : rgb(173, 173, 173); 

    --primary-green: #14772a;
    --primary-color: #0468eb;
    --secondary-color: #0468eb;
    --background-color: #f7f9fc;

    --text-color: #ffffff;
    --text-muted: #dfdfdf;
    --border-color: #e2e8f0;
    --success-color: #079707;
    --error-color: #ff0000;
    --box-shadow: 0 10px 25px rgba(74, 108, 247, 0.1);
}

li{
    list-style: none;
}

*{margin: 0;padding: 0; box-sizing: border-box;}


body{
    height: 100%;
    width: 100%;
    min-height: 400px !important;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    background: url(/static/assets/files/images/bg3.jpg) no-repeat;
    background-size: cover;
    background-position-x: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
   
}

.mainer{
    height: 100vh;
    width: 100vw;
    max-height: 1000px;
    max-width: 1500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(1px);
    border: 0.2px solid #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.637);
    border-radius: 4px;
}

.mainer.dark{
    background-color: #272626a2;
}
.body-nav{
    position: relative;
    box-shadow: 0px 2px 4px rgb(184, 183, 183);
    margin-bottom: 2px;
    height: 55px;
    min-height: 55px !important;
    display: flex;
    width: 100%;
    background-color: #272626cb;
    backdrop-filter: blur(8px);
    flex-direction: row;
    justify-content: space-between;
    color: white;
    border-bottom: 0.5px solid #f8f7f7;
    overflow: hidden;
    padding:0% 10px;
}


.logo-app{
    padding-right: 4px;
    text-shadow: 3px 2px 2px rgb(20, 20, 20);
    display: flex;
    z-index: 10;
    height: 100%;
    width: 18%;
    min-width: 230px;
    position: relative;
}
.logo-app::after{
    position: absolute;
    content: '';
    height: 70%;
    width: 2px;
    background-color: #fff;
    right: 0;
    bottom: 0;
}
.logo-app::before{
    position: absolute;
    content: '';
    height: 70%;
    width: 2px;
    background-color: #fff;
    right: 5px;
    top: 0;
}
.logo {
    width: 100%;
    /* position: absolute; */
    transition: all 0.8s;
    filter: brightness(110%);
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 88888;
    overflow: hidden;
    cursor: pointer;
    }

.logo-title{
    color: #fff;
    font-size: 25px;
    bottom:1px;
    margin-left: 2px;
    text-shadow: 1px 1px 1px black;
    padding: 1px;
   text-decoration: underline;

}

.logo img{
    height: 48px;
    z-index: 888888;    
    margin-right: 5px
}


.logo .slogon{
    position: absolute;
    width: 90%;
    font-size: 9px;
    font-style: italic;
    left: 44px;
    right: 0;
    bottom: 0;
    z-index: 2;
    opacity: 0;
    animation:sloganView 1.5s 1.5s ease forwards;
    transform: translateY(50px)
}
@keyframes sloganView {
    0% { transform: scale(0) translateY(50px); }
    100% { transform: scale(1) translateY(0px);opacity: 1;; }
}


.header-content{
    width: calc(100% - 270px);
    text-shadow: 1px 1px 2px rgb(0, 0, 0);
    z-index: 40;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 2px;

}

@keyframes grower {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1);opacity: 1; }
}

.header-title {
    font-weight: bold;
    opacity: 1;
    animation:grower  1.5s 0.3s ease forwards;
    opacity: 0;
    font-size: 1.4rem ;
    text-align: center;
}
      
.logo-civ{
    height: 100%;
    min-width: 60px;
    max-width: 80px;
    font-size: 28px;
    color: rgb(255, 255, 255);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-bottom: 0.5px;
}
.logo-civ .logo{
    padding: 0 !important;
    justify-content: center;
}

.drapeauDiv{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 4px;
    margin-top: 0.5px 0;
}
.drapeauDiv span{
    display:block;
    width: 50px;
    height: 100%;
}
.drapeauDiv span:nth-child(1){
    background-color: #ff6600;
}

.drapeauDiv span:nth-child(2){
    background-color: #ffffff;
}*
.drapeauDiv span:nth-child(3){
    background-color: #189100;
}


.body-container{
    height:calc(100% - 90px);
    display: flex;
    justify-content: center;
    align-items: center; 
    background-color: #00000000;
    position: relative;
}


.container {
    border: 1px solid #e7e7e7c9;
    position: relative;
    border-radius: 10px;
    box-shadow: 0px 1px 8px rgba(255, 255, 255, 0.616);
    position: relative;
    overflow: hidden;
    width: 50%;
    min-width:800px;
    max-width:880px;
    height:90%;
    min-height: 400px;
    max-height: 500px;
    background-color: #252525ad;
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(2px);
}


.form-container {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    transition: all 0.6s ease-in-out;
    z-index: 2;  
}


.login-form {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 0px;
    height: 100%;
    width: 100%;
}
.formHeader{
    height: 100px;
    width: 100%;
    color: #ffffff;
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    text-transform: uppercase;
}

.formContent{
    z-index: 55;
    border-radius: 15px 15px 0 0;
    height: calc(100% - 90px);
    width: 100%;
    min-width: 300px !important;
    align-items: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 40px;
    padding-top: 40px;
    border-right: 1px solid #ffffff;
    border-top: 1px solid #ffffff;
    box-shadow: 0 1px 4px rgb(73, 73, 73) inset;
    -webkit-border-radius: 15px 15px 0 0;
    -moz-border-radius: 15px 15px 0 0;
    -ms-border-radius: 15px 15px 0 0;
    -o-border-radius: 15px 15px 0 0;
}

.formContent  .inputDiv{
    border: 1px solid #e4e1e1ea;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.267);
    display: flex;
    width: 100%;
    height: 50px;
    max-width: 380px !important;
    margin-top: 30px;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    position: relative;
}

.formContent  .iconDiv{
    width: 50px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 1px 1px 2px black;
    z-index: 888;
    cursor: pointer;
}
.formContent  .iconDiv i{
    color: white;
}
.formContent input {
    padding-left: 20px;
    width: 100%;
    height: 100%;
    min-height: 35px !important;
    max-width: 350px !important;
    outline: none;
    background-color: #d8d8d8 !important;
    border: 1px solid #575757;
}
.formContent input:active,.formContent input:focus{
    background-color: #fff;
}


.btn-grad {
   border: 1px solid #707070;
   margin: 10px;
   margin-top: 30px;
   padding: 10px 25px;
   text-align: center;
   text-transform: uppercase;
   color: white;
   display: block;
   cursor: pointer;
   background-image: linear-gradient(to right, #222121 0%, var(--scolor)  60%);
   background-size: 200% auto;
   border-radius: 4px;
   -webkit-border-radius: 4px;
   -moz-border-radius: 4px;
   -ms-border-radius: 4px;
   -o-border-radius: 4px;
   transition: all 0.4s ease ;
   -webkit-transition: 0.3s;
   -moz-transition: 0.2s;
   -ms-transition: 0.2s;
   -o-transition: 0.2s;
}
.btn-grad:hover {
    box-shadow: 0 0px 8px rgba(255, 255, 255, 0.397);
    border: 1px solid #dadada;
}
.btn-grad:hover > span i{
    /* margin-left: 10px; */
   transform: translateX(5px);
}
.btn-grad:disabled {
  background-image: linear-gradient(to right, black, grey 51%);
  cursor: not-allowed;
}



/* ----------------------- */
.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}


.overlay {
    color: #ffffff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    opacity: 0.7;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}


.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}


.overlay-right {
    right: 0;
    transform: translateX(0);
}

.container.right-panel-active .overlay-right {
    transform: translateX(20%);
}



/* -------------------------------- */
.body-footer{
    height: 40px;
    display: flex;
    z-index: 8888;    
    background-color: #252525ad;
    backdrop-filter: blur(3px);
    border-top: 1px solid #e2e2e2;
    box-shadow: 0px -2px 2px rgba(75, 74, 74, 0.473);
    overflow: hidden;
    position: relative;
}

.footer-actions{
    position: absolute;
    left: 0px;
    height: 100%;
    width: 120px;
    color: white;
    border-radius: 3px;
    border-right: 1px solid #ffffff;
    background-color: #383838a8;
    backdrop-filter: blur(300px);
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1px 4px;
}

.footer-actions div{
    font-size: 22px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    padding: 2px;
    border: 1px solid #f0f0f0;
    background-color: #f7f7f7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:  0 0 4px grey inset;
    transform: all ease 0.5s;
}
.footer-actions i{
    font-size: 22px;
    color: rgb(255, 255, 255);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.603);
}
.footer-actions div:hover{
    transform: scale(1.2);
}
.footer-actions div:nth-child(1){background-color: #168ae9;}
.footer-actions div:nth-child(2){background-color: #a11c1c;}
.footer-actions div:nth-child(3){background-color: #2c8b19;}



.footer-sliderZone{
    display: flex;
    align-items: center;
}
.footer-slider {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    animation: 40s sliding infinite ease-in;
    transform: translateX(130%);
    font-size: 30px;
    font-weight: bold;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 4px 4px 8px rgb(32, 31, 31);
    overflow: hidden;
}
.footer-slider span{
    padding-top: 10px;
    font-size: 16px;
    opacity: 1;
    z-index: 8;
    font-weight: bold;
    min-width: 1000px;
}

@keyframes sliding {
    0%{ transform: translateX(130%) }
    100% {transform: translateX(-100%);}
}



@media screen and (max-width: 1500px) {
    .mainer{border:0px solid rgba(255, 255, 255, 0);}
}

@media screen and (max-width: 1200px) {
    .header-title{font-size: 1.1rem; text-align: center;}
    .container{min-width:800px;height:90%}
    .footer-slider span{font-size: 16px}
    .overlay-right img{transform: scale(0.8);}
}
@media screen and (max-width: 1000px) {
    .logo-zone{min-width: 240px};
    .overlay-right img{transform: scale(0.7);}
}
@media screen and (max-width: 900px) {
    .container{min-width:500px;height:80%}
    .logo-zone{ border-right: 4px solid #c5bfbf00;}
    .overlay-right {display: none;}
    .overlay-right {display: none;}
    .header-title{display: none;}
    .overlay-container{display: none;}
    .form-container{width: 85%;;}
    .footer-slider span{font-size: 13px;text-align: center;display: inline; }
 }
@media screen and (max-width: 500px) {
    .container{width:450px;height:80%}
 }



 
    @keyframes welcomeModal {
        0% { transform: translate(-50%, -50%) scale(0); }
        100% { transform: translate(-50%, -50%) scale(1); }
    }


    .welcome-modal {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0);
            width: 380px;
            height: 400px;
            background: rgba(53, 53, 53, 0.205);
            backdrop-filter: blur(10px);
            border-radius: 10px;
            box-shadow: 0 15px 20px rgba(255, 255, 255, 0.158);
            text-align: center;
            border: 1px solid rgb(255, 255, 255);
            opacity: 0;
            visibility: hidden;
            z-index: 100;
            color: white ;
        }

        .welcome-modal.show {
            animation: modalAppear 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }

        @keyframes modalAppear {
            0% {
                transform: translate(-50%, -50%) scale(0);
                opacity: 0;
                visibility: hidden;
            }
            100% {
                transform: translate(-50%, -50%) scale(1);
                opacity: 1;
                visibility: visible;
            }
        }

        .structure-logo {
            position: absolute;
            top: 5px;
            left: 5px;
            height: 34px;
            width: auto;
            opacity: 0;
            transform: scale(0);
            z-index: 10;
        }

      .user-role {
            position: absolute;
            top: 4px;
            right: 4px;
            padding: 1px 6px;
            opacity: 0;
            width: fit-content;
            max-width: 200px;
            overflow: hidden;
            text-transform: capitalize;
            color: white ;
            background-color: #40ce5831;
            border-radius: 8px;
        }
        
        .structure-logo.show, .user-role.show{
            animation: logoAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
        }

        @keyframes logoAppear {
            0% {
                opacity: 0;
                transform: scale(0);
            }
            100% {
                opacity: 1;
                transform: scale(1);
            }
        }

        .profile-image {
            width: 160px;
            height: 160px;
            margin: 10px auto;
            margin-top: 5px;
            text-align: center;
            overflow: hidden;
            position: relative;
            opacity: 0;
            transform: scale(0);
            padding: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .profile-image.show {
            animation: imageGrowFade 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s forwards;
        }

        @keyframes imageGrowFade {
            0% {
                opacity: 0;
                transform: scale(0);
            }
            100% {
                opacity: 1;
                transform: scale(1);
            }
        }

        .profile-image img {
            height: 80%;
            object-fit: cover;
            filter: drop-shadow(1px 1px 10px rgba(255, 255, 255, 0.322));
        }

        .user-name {
            font-size: 26px;
            font-weight: 700;
            color: white ;
            margin-bottom: 8px;
            opacity: 0;
            transform: translateX(-60px);
        }

        .user-name.show {
            animation: slideInLeft 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.1s forwards;
        }

        @keyframes slideInLeft {
            0% {
                opacity: 0;
                transform: translateX(-60px);
            }
            100% {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .user-fonction {
            font-size: 16px;
            color: white ;;
            font-weight: 600;
            margin-bottom: 12px;
            opacity: 0;
            transform: translateX(60px);
            text-transform: uppercase;
        }

        .user-fonction.show {
            animation: slideInRight 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.3s forwards;
        }

        @keyframes slideInRight {
            0% {
                opacity: 0;
                transform: translateX(60px);
            }
            100% {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .user-structure {
            font-size: 20px;
            color: white ;
            font-weight: 500;
            margin-bottom: 40px;
            opacity: 0;
            transform: translateY(15px);
            text-transform: capitalize;
        }

        .user-structure.show {
            animation: fadeInUp 0.6s ease-out 1.5s forwards;
        }

        .user-structure i {
            color:  var(--primary-green);
            margin-right: 6px;
        }

        .username-display {
            color: white ;
            border-radius: 12px;
            padding: 12px 20px;
            margin-bottom: 30px;
            font-size: 20px;
            font-weight: 600;
            opacity: 0;
            transform: translateY(20px);
            font-style: italic;
        }

        .username-display.show {
            animation: fadeInUp 0.6s ease-out 1.7s forwards;
        }

        .username-display i {
            color: #3dbd3d;
            margin-right: 8px;
        }

        @keyframes fadeInUp {
            0% {
                opacity: 0;
                transform: translateY(15px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }
        @keyframes fadeIn {
            0% {
                opacity: 0;
            }
            100% {
                opacity: 1;
            }
        }

        .progress-section {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 25px;
        }

        .auth-progress-bar {
            width: 100%;
            height: 10px;
            background: #e2e8f0;
            border-radius: 4px;
            overflow: hidden;
            position: relative;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
        }
        .success-icon {
            position: absolute;
            bottom: 20%;
            left: 50%;
            width: 90px;
            height: 90px;
            transform: translateX(-50%);
            background: var(--primary-green);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 4rem;
            font-weight: bold;
            z-index: 888888;
            border: 1px solid white;
            box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
            opacity: 0;
        }
        .success-icon.active{animation: fadeIn 1s ease-in-out forwards;}
        .progress-fill {
            height: 100%;
            background: var(--primary-green);
            background-size: 200% 100%;
            border-radius: 4px;
            width: 0%;
            position: relative;
            overflow: hidden;
            animation: gradientShift 2s ease-in-out infinite;
        }

        .progress-fill.animate {
            animation: progressLoad 3s ease-out 1.2s forwards, gradientShift 2s ease-in-out infinite;
        }

        @keyframes progressLoad {
            0% { width: 0%; }
            25% { width: 30%; }
            50% { width: 60%; }
            75% { width: 85%; }
            100% { width: 100%; }
        }

        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .progress-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
            animation: shimmer 1.5s infinite 1.9s;
        }

        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        .authOverlay{
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 99;
        }

        .authOverlay.show {
            opacity: 1;
            visibility: visible;
        }