/* body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #b8995f70;
    position: relative;
    min-height: 100vh;
} */


/* .container::before {
    left: 0;
    background-image: url(../media/login/lefthright.png);
} 

.container::before {
    content: '';
    position: absolute;
    top: 53%;
    bottom: 0;
    width: 100%;
    background-repeat: no-repeat;
    z-index: 0;
}  

.containerkk::after {
    right: 0;
    background-image: url(../media/login/carreeright.png);
    
} 

.containerkk::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 204px;
    background-repeat: no-repeat;
    z-index: 0;
} */

/* .image-container{
    min-height: 100vh;
} */

/* .image-container::before,
.image-container::after {
  content: '';
  position: absolute;
  width: 100%;
  background-size: cover;
}

.image-container::before {
  background-image: url(../media/login/lefthright.png);
  left: 0;
  bottom: 0;
  background-repeat: no-repeat;
}

.image-container::after {
  background-image: url(../media/login/carreeright.png);
  bottom: 0;
  right: 0;
  background-repeat: no-repeat;
} */

body {
    font-family: Arial, sans-serif;
    text-align: center;
    position: relative;
    min-height: 100vh;
    background-color: #b8995f70;
    margin: 0;
  }
.container {
    width: 80%;
    margin: 0 auto;

    /* display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh; */
}
.page-background::before,
.page-background::after {
    content: '';
    position: absolute;
    background-size: cover;
    z-index: -1; /* Envoyer en arrière-plan */
}

.page-background::before {
    background-image: url(../media/login/carreeright.png);
    top: 0;
    right: 0;
    width: 202px;
    height: 413px;
}

.page-background::after {
    background-image: url(../media/login/lefthright.png);
    bottom:0;
    left:0;
    width: 339px;
    height: 434px;
}





header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    opacity: 0; /* Caché au départ */
    transform: translateY(-20px); /* Décalé légèrement vers le haut */
    animation: fadeInDown 1.5s ease-out forwards; /* Animation fluide */
}
.login-titre {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre verticalement */
    align-items: center; /* Centre horizontalement */
    min-height: 150vh; /* Prend toute la hauteur de l'écran */
    text-align: center; /* Centre le texte */
    padding: 20px;
}
.logo {
    width: 260px;
    max-width: 100%;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 1.5s ease-out forwards;
    animation-delay: 0.5s; /* Légère attente après le chargement */
}


.generation-logo {
    width: 120px;
    max-width: 100%;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 1.5s ease-out forwards;
    animation-delay: 0.5s; /* Légère attente après le chargement */
}
/* .logo {
    width: 150px;
}

.generation-logo {
    width: 120px;
} */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 35px;
    color: #003300;
    font-weight: bold;
    margin-top: 120px;
}

.terroir-logo {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    color: #b38e5d;
    text-align: center;
    opacity: 0; /* Caché au départ */
    animation: fadeIn 1.5s ease-in-out forwards;
    z-index: -1;
}

/* Animation de fondu */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
.login-container {
    background: #f5f5f526;
    padding: 20px;
    width: 300px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
.input-field {
    width: 93%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.btn {
    background-color: #004d00;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 65%;
}
.btn:hover {
    background-color: #002d0d;
}
@media screen and (max-width: 1980px) {

    .login-titre {
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centre verticalement */
        align-items: center; /* Centre horizontalement */
        min-height: 64vh; /* Prend toute la hauteur de l'écran */
        text-align: center; /* Centre le texte */
        padding: 20px;
    }
    h1 {
        font-size: 28px;
        margin-top: 50px;
    }

    .login-container {
        width: 80%;
        max-width: 300px;
    }

}

@media screen and (max-width: 1024px) {
    .page-background::before,
    .page-background::after {
        width: 150px;
        height: auto;
    }
    .login-titre {
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centre verticalement */
        align-items: center; /* Centre horizontalement */
        min-height: 120vh; /* Prend toute la hauteur de l'écran */
        text-align: center; /* Centre le texte */
        padding: 20px;
    }
    h1 {
        font-size: 28px;
        margin-top: 50px;
    }

    .login-container {
        width: 80%;
        max-width: 300px;
    }


}

@media screen and (max-width: 768px) {
    .page-background::before,
    .page-background::after {
        display: none; /* Cache les images de fond pour les petits écrans */
    }
    .login-titre {
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centre verticalement */
        align-items: center; /* Centre horizontalement */
        min-height: 65vh; /* Prend toute la hauteur de l'écran */
        text-align: center; /* Centre le texte */
        padding: 20px;
    }
    h1 {
        font-size: 24px;
        margin-top: 40px;
    }

    h2 {
        font-size: 22px;
        bottom: 5px;
    }

    .login-container {
        width: 90%;
    }

    .logo {
        width: 150px;
        max-width: 100%;
        opacity: 0;
        transform: translateY(-20px);
        animation: fadeInUp 1.5s ease-out forwards;
        animation-delay: 0.5s; /* Légère attente après le chargement */
    }
    
    
    .generation-logo {
        width: 100px;
        max-width: 100%;
        opacity: 0;
        transform: translateY(-20px);
        animation: fadeInUp 1.5s ease-out forwards;
        animation-delay: 0.5s; /* Légère attente après le chargement */
    }
}

@media screen and (max-width: 480px) {
    .login-titre {
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centre verticalement */
        align-items: center; /* Centre horizontalement */
        min-height: 65vh; /* Prend toute la hauteur de l'écran */
        text-align: center; /* Centre le texte */
        padding: 20px;
    }
    h1 {
        font-size: 14px;
        /* margin-top: 80px; */

    }
    /* .logo-left {
        width: 150px;
        position: absolute;
        left: 0;
    }
    .generation-logo-right {
        width: 120px;
        position: absolute;
        right: 0;
    } */
    h2 {
        font-size: 18px;
        bottom: 5px;
    }

    .btn {
        width: 80%;
    }

    .logo {
        width: 90px;
        max-width: 100%;
        opacity: 0;
        transform: translateY(-20px);
        animation: fadeInUp 1.5s ease-out forwards;
        animation-delay: 0.5s; /* Légère attente après le chargement */
    }
    
    
    .generation-logo {
        width: 60px;
        max-width: 100%;
        opacity: 0;
        transform: translateY(-20px);
        animation: fadeInUp 1.5s ease-out forwards;
        animation-delay: 0.5s; /* Légère attente après le chargement */
    }
    .terroir-logo {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 18px;
        color: #b38e5d;
        text-align: center;
        opacity: 0; /* Caché au départ */
        animation: fadeIn 1.5s ease-in-out forwards;
        z-index: -1;
    }
}
