﻿/*  */
.login-wrapper {
    display: grid;
    grid-template-rows: 1fr 1.5fr;
    align-items: center;
}


/* -------- LOGO and message container -------- */
.Title_logo {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    align-items: center;
}
/* --------  message container -------- */
.welcome-message {
    color: var(--qdv-background-color-main);
    font-size: x-large;
    font-weight: bolder;
    text-align: left;
    margin-left: 10%;
    }

/* -------- LOGO container -------- */
.login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .login-logo img {
        width: 100%;
        max-width: 380px;
        height: auto;
    }


/* -------- left message and login card container -------- */
.center_part {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    align-items: center;
}

/* --------  left message container -------- */
.left-message {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
    justify-content: center;
    align-items: center;
    margin-left: 10%;
 
}
.left-message1 {
    display: flex;
    align-items: center; 
    gap: 10px; 
    margin-bottom: 25px; 
}
    .left-message1 p {
        margin: 0;
        line-height: 1.2; 
    }

.icon-container1 {
    display: flex;
    align-items: center;
    justify-content: center;
    --fa-primary-color: var(--qdv-background-color-main);
    --fa-secondary-color: var(--qdv-background-color-main);
}
    .icon-container1 i {
        font-size: 1.5rem;
     }
    
/* --------  login card container -------- */
.card.bg-login {
    display: flex;
    margin-left: 25%;
    margin-right: 25%;
    justify-content: center;
    align-items: center;
    min-width: 200px;
}

.bg-login {
    display: flex;
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .bg-login:hover {
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
    }


/* -------- LOGIN ICON -------- */
.icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    --fa-primary-color: var(--bs-gray-200);
    --fa-secondary-color: var(--qdv-background-color-main);

}

    .icon-container i {
        font-size: 5rem;
        --fa-primary-color: var(--bs-gray-200);
        --fa-secondary-color: var(--qdv-background-color-main);
    }


/* -------- LOGIN INPUTS -------- */
.input-group {
    margin-bottom: 1.2rem;
    border-color: var(--qdv-background-color-main);
}

.input-group-text i.fa-user {
    color: var(--qdv-background-color-main);
    
}

.input-group-text i.fa-lock-keyhole {
    color: var(--qdv-background-color-main);
  }

.form-control {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
}


/* -------- REMEMBER ME and FORGOT PASSWORD ROW -------- */
.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}
.form-check-input {
    border-color: var(--bs-gray-500);
}
.form-check-input:checked {
    background-color: var(--qdv-background-color-main);
}
.forgot-password {
    font-size: 0.9rem;
    color: var(--qdv-background-color-main);
    text-decoration: none;
}
    .forgot-password:hover {
        text-decoration: underline;
    }


/* -------- LOGIN BUTTON -------- */
button.btn-primary {
    background-color: var(--qdv-background-color-main);
    color: #fff;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    border-radius: 2rem 2rem 2rem 2rem;
    margin-left: auto;
}
    button.btn-primary:hover {
        background-color: var(--bs-gray-500);
    }

/* -------- DELETING MENU NAVBAR ON THE LOGIN PAGE -------- */
.navbar-toggler {
    display: none !important;
}

/* ----------------------------------------------------------- */
/* --------------------- ANIMATION --------------------------- */
/* ----------------------------------------------------------- */

/* --- ANIMATION ZOOM-IN  --- */
@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Application of animation  --- */
.login-logo,
.welcome-message,
.card.bg-login,
.left-message {
    opacity: 0;
    animation: zoomIn 0.6s ease-out forwards;
}


/* ----------------------------------------------------------- */
/* --------------------- MEDIA QUERIES ----------------------- */
/* ----------------------------------------------------------- */

/* -------- TABLETTES + SMARTPHONES (<= 992px) -------- */
@media (max-width: 992px) {
    .login-wrapper {
        display: flow;
    }

    .Title_logo {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .center_part {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    /* Réorganizing the appearing order */
    .login-logo {
        order: 2;
        justify-content: center;
        max-width: 70%;
        margin: 0.5rem 0 0.5rem 0;
    }

    .welcome-message {
        order: 1;
        margin-left: 0;
        margin: 0.3rem 0 1rem 0;
        font-size: 1.3rem;
        text-align: center;
    }

    .card.bg-login {
        order: 3;
        width: 100%;
        margin: 0 auto;
    }

    .left-message {
        order: 4;
        margin-left: 0;
        text-align: left;
        width: 100%;
    }
}

/* -------- SMARTPHONES (<= 576px) -------- */
@media (max-width: 576px) {
    .bg-login {
        max-width: 95%;
        padding: 1.5rem;
    }

    .welcome-message {
        font-size: 1.1rem;
    }
}