/*** LOGIN STYLES ***/

/* Container du formulaire de login */
.loginbox {
    position: relative;
    margin: 15% 0 0 10%;  /* Position par défaut */
    width: 100%;
    max-width: 400px;
}

/* Media queries pour la responsivité */
@media screen and (max-width: 1200px) {
    .loginbox {
        margin: 10% 0 0 10%;
    }
}

@media screen and (max-width: 992px) {
    .loginbox {
        margin: 12% 0 0 25%;
    }
}

@media screen and (max-width: 768px) {
    .loginbox {
        margin: 15% auto 0;
        width: 90%;
    }
}

@media screen and (max-width: 576px) {
    .content-wrapper {
        align-items: center;
        justify-content: center;
    }

    .loginbox {
        margin: 0;
        width: 95%;
    }
}

/* Ajustements pour les très grands écrans */
@media screen and (min-width: 1600px) {
    .loginbox {
        margin: 15% 0 0 15%;
    }
}

/* Ajustements pour la hauteur */
@media screen and (max-height: 700px) {
    .loginbox {
        margin-top: 5%;
    }
}

/* Support des orientations */
@media screen and (orientation: landscape) and (max-height: 600px) {
    .loginbox {
        margin: 3% 0 0 25%;
    }
}

.title-loginbox {
    text-transform: uppercase;
    color: #FFFFFF;
}

.logo {
    width: 100px;
    height: 55px;
    margin-left: 10%;
}

@media (max-width: 767px) {
    .loginbox {
        margin-top: 10%;
    }
}

.loginbox_content {
    background: white;
    color: black;
    padding: 20px;
    border-radius: 10px;
    min-height: 290px;
    width: 450px;
    box-shadow: 0 0 15px rgba(0, 0, 0, .25);
}

#form_login {
    padding: 5% 10% 0 10%;
}

.singtext {
    font-family: "Open Sans", sans-serif;
    font-size: 27px;
    color: #82C226;
    float: right;
    padding-right: 25%;
}

.submit-btn {
    float: right;
    margin-right: 23%;
}

.forgotpassword {
    padding-left: 5px;
}

@media (max-width: 800px) {
    .submit-btn {
        margin-right: 23%;
    }

}

#loginCarousel {
    position: fixed;
    z-index: 0;
}

.carousel,
.carousel-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-fade .carousel-inner .item {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    z-index: 0;
}

.carousel-fade .carousel-inner .active {
    opacity: 1;
}

.content-wrapper {
    position: absolute;
    z-index: 1 !important;
    min-width: 100%;
    min-height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.carousel-fade .carousel-inner .item {
    opacity: 0;
    transition-property: opacity;
}

.carousel-fade .carousel-inner .active {
    opacity: 1;
}

.carousel-fade .carousel-inner .active.left,
.carousel-fade .carousel-inner .active.right {
    left: 0;
    opacity: 0;
    z-index: 1;
}

.carousel-fade .carousel-inner .next.left,
.carousel-fade .carousel-inner .prev.right {
    opacity: 1;
}

.carousel-fade .carousel-control {
    z-index: 2;
}

@media all and (transform-3d),
(-webkit-transform-3d) {
    .carousel-fade .carousel-inner > .item.next,
    .carousel-fade .carousel-inner > .item.active.right {
        opacity: 0;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    .carousel-fade .carousel-inner > .item.prev,
    .carousel-fade .carousel-inner > .item.active.left {
        opacity: 0;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    .carousel-fade .carousel-inner > .item.next.left,
    .carousel-fade .carousel-inner > .item.prev.right,
    .carousel-fade .carousel-inner > .item.active {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

.carousel {
    z-index: -99;
}

.item {
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

i.flag-icon {
    position: relative;
    left: -22px;
    top: 0px;
    margin-right: -12px;
}
#language-selector {
    padding: 0;
    font-size: inherit;
    text-transform: none;
}
.active{
    background-color: #d3d4d6;
}

#mobileErrorMessage{
    display: none;
}

/******* NEW Styles *****/


html{
    font-size: 1rem !important; /* pour contrer Bootstrap */
}




#login-body{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    line-height: 1.5;
    font-size: 1rem !important;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-logo {
    display: block;
    width: 100%;
    margin: 0 auto 2rem;
}

.login-form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.login-form-control {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    font-size: 1rem !important;
    transition: all 0.2s;
    background: white;
}

.login-form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(117, 177, 67, 0.2);
}

.login-form-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
}

input#login, input#password{
    font-size: 1rem !important;
}

.login-submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.login-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.login-submit-btn:active {
    transform: translateY(0);
}

.login-forgot-password {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.875rem;
}

.login-forgot-password:hover {
    color: var(--primary-color);
}

.login-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.875rem;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
}

.login-legal-link {
    color: #4a5568;
    text-decoration: none;
}

.login-legal-link:hover {
    color: var(--primary-color);
}

.login-dropdown {
    margin-top: -1.5rem;
    margin-left: -0.5rem;
    padding: 0.7rem;
}

.dropdown-item{
    cursor: pointer;
}

.dropdown-item:first-child {
    border-bottom: 1px solid var(--border-color);
}

/* Messages */
.message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.message-error {
    background: var(--error-background-color);
    color: var(--error-color);
    border: 1px solid var(--error-border);
}

.message-success {
    background: var(--sucess-background-color);
    color: var(--success-color);
    border: 1px solid var(--sucess-border);
}

.message-warning {
    background: var(--warning-background-color);
    color: var(--warning-color);
    border: 1px solid var(--warning-border);
}

.message-info {
    background: var(--info-background-color);
    color: var(--info-color);
    border: 1px solid var(--info-border);
}

.message-icon {
    margin-right: 0.5rem;
}

@media (max-width: 640px) {
    .login-container {
        margin: 1rem;
        padding: 1.5rem;
    }
}

.powered-by-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;  /* Augmenté pour créer plus d'espace */
    margin-bottom: 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    width: 100%;       /* Assure que la div prend toute la largeur */
    clear: both;       /* Force le placement sous les éléments flottants */
}

.powered-text {
    font-size: 0.65rem;
    color: #666;
    font-weight: 400;
}

.powered-logo {
    height: 12px;
    width: auto;
}
