:root {
    --swiper-theme-color: #fd550c;
    --primary: #fd550c;
}

.custom-control.custom-checkbox .custom-control-input:checked~.custom-control-label::before {
    background-color: var(--primary);
}

a,
a:hover {
    color: var(--primary);
}

.btn {
    transition: .2s;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary);
    box-shadow: none !important;
    border-radius: 5px;
}

.btn-primary:focus {
    border: 1px solid #eb5413;
    transform: scale(1.01);
    filter: brightness(1.05);

}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
}

body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: #fff;
}

body::-webkit-scrollbar-thumb {
    background-color: #90BABA;
    border-radius: 1px;
    border: none;
}

header {
    position: absolute;
    right: 30px;
    top: 20px;
    filter: brightness(100);
}

header img {
    max-width: 100px;
}

main {
    display: grid;
    grid-template-columns: 490px 1fr;
    grid-gap: 0;
    width: 100%;
    min-height: 100vh;
}

main>section {
    padding: 10px 80px;
}

main>section:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url("../../assets/img/login/bg.svg");
    background-size: cover;
}

footer {
    display: grid;
    grid-template-columns: 320px 1fr;
    grid-gap: 16px 100px;
    width: 1000px;
    margin: 20px 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form h2 {
    font-size: 20px;
    font-weight: 600;
}

.login-form p {
    font-size: 14px;
    font-weight: 600;
}

.form-label {
    font-size: 1rem;
    font-weight: 600;
}

label.error {
    font-size: .8rem;
    position: relative;
    top: -12px;
    margin-bottom: 0;
    color: var(--danger)
}

.form-control {
    font-weight: 500;
    color: #4E5155;
    background: #FFF;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, .05);
}

.form-control:focus {
    color: #4E5155;
    background: #FFF;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, .1);
}

.form-group.pwd {
    position: relative;
}

#dataPassword {
    padding-right: 38px;
}

#dataPassword+svg {
    width: 34px;
    padding: 6px;
    position: absolute;
    right: 3px;
    top: 31px;
    cursor: pointer;
}

#dataPassword+svg:active {
    transform: scale(.9);
}

#dataPassword+svg g {
    transform-origin: center;
    transition: .2s .05s;
}

#dataPassword[type="text"]+svg g {
    transform: scale(0);
}

.custom-checkbox {
    display: inline-block;
}

.forgot-pwd {
    font-size: 14px;
    font-weight: 600;
    margin: -4px 0 20px;
}

.forgot-pwd a {
    text-decoration: none;
}

.remember {
    margin-bottom: 20px;
    float: right;
}

.remember-text {
    font-size: .8rem;
    font-weight: 600;
}

input[type="checkbox"]:checked+.remember-text {
    color: var(--primary);
}

.app {
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.app>div:first-child a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, .8);
    padding: 6px;
    border-radius: 50%;
    margin-left: 12px;
}

.app>div:first-child a svg {
    color: var(--primary);
    height: 20px;
}

.app>div:first-child a:first-child svg {
    height: 18px;
}

.app img {
    height: 42px;
    margin-left: 10px;
}

.app>div:first-child {
    margin: 0 30px;
}

.chat {
    position: relative;
}

.chatbox {
    background: rgba(253, 220, 214, 0.4);
    padding: 10px 10px 10px 13px;
    border-radius: 10px;
    box-shadow: 0 0 4px rgba(0, 0, 0, .05);
    height: 84px;
    width: 100%;
    position: relative;
    right: -40px;
    opacity: 0;
    transform: scale(.3, .7);
    animation: chat forwards .3s 1s ease-in-out;
    transform-origin: right center;
}

.chatbox>div {
    width: 100%;
    height: 64px !important;
    padding-right: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #FDDCD6;
}

.chatbox>div::-webkit-scrollbar {
    width: 2.5px;
}

.chatbox>div::-webkit-scrollbar-track {
    background: #ffe4e0;
    border-radius: 5px;
}

.chatbox>div::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 5px;
}

.chatbox:after {
    content: '';
    display: block;
    position: absolute;
    left: 100%;
    top: 50%;
    margin-top: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid rgba(253, 220, 214, 0.4);
}

.chatbox p {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.38;
    color: var(--primary);
}

.login-form .alert {
    padding: 6px 10px;
}

.swiper-wrapper {
    height: auto !important;
}

.swiper-container {
    max-width: 760px;
    margin: 30px auto;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    margin: auto;
}

.swiper-button-next,
.swiper-button-prev {
    transform: scale(0.75);
}

.contact {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    background: rgba(255, 255, 255, .8);
    padding: 10px;
    border-radius: 20px;
}

.contact span {
    margin: 0 6px;
}

.contact a {
    color: var(--primary);
}

.contact svg {
    width: 20px;
    height: 20px;
}

.cs {
    width: 115px;
    height: auto;
    z-index: 10;
    position: absolute;
    top: 17px;
    right: -60px;
    opacity: 0;
    transform: scale(.5);
    transform-origin: right bottom;
    animation: cs forwards .3s .7s ease-in-out;
    pointer-events: none;
}

marquee {
    user-select: none;
}

@media screen and (max-width: 1366px) {

    header img {
        max-width: 90px;
    }

    main {
        grid-template-columns: 460px 1fr;
    }

    .swiper-container {
        max-width: 750px;
        width: 100%;
        margin: 55px auto 20px;
    }

    .chatbox {
        background: rgba(253, 220, 214, 0.4);
        padding: 9px;
    }

    .chatbox p {
        font-size: 11.5px;
    }
}

@media screen and (max-width: 1080px) {

    header {
        position: relative;
        margin-top: 30px;
        right: auto;
        top: auto;
        filter: none;
    }

    main {
        display: grid;
        grid-template-columns: 100%;
        width: 100%;
    }

    main>section {
        padding: 30px;
    }

    main>section:last-child {
        padding: 20px 0;
    }

    .swiper-container {
        margin-top: 30px;
        max-width: 600px;
    }

    .chatbox {
        width: calc(100% - 25px);
    }

    .chatbox:after {
        left: 100%;
    }

    .cs {
        right: -38px;
    }

    footer {
        display: grid;
        grid-template-columns: 100%;
        grid-gap: 0;
        width: 100%;
        margin: 0 0 10px;
        padding: 20px;
    }

    .login-form {
        margin: auto;
        max-width: 400px;
    }

    .app {
        justify-content: center;
        margin-top: 0;
    }

    .app>div:first-child {
        margin: 30px;
    }

    .app img {
        height: 38px;
        margin: 0 6px;
    }

    .contact {
        padding: 5px 20px;
    }

    .contact span {
        margin: 10px 0;
        display: block;
    }

}

@media screen and (max-width: 760px) {
    .swiper-container {
        max-width: 100vw;
    }
}


@keyframes cs {
    0% {
        transform: scale(.5);
        opacity: 0;
    }

    80% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes chat {
    0% {
        right: -40px;
        opacity: 0;
    }

    80% {
        transform: scale(1);
        right: 5px;
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        right: 0;
        opacity: 1;
        transform: scale(1);
    }
}