﻿:root {
    --main: #6D33D9;
    --mainSub1: #4e73b2;
    --mainSub2: #ffcd00;
    --mainFont: #444444;
    --mainHeader: #444444;
    --mainForm: #444444;
    --mainBackground: #8D93EB;
    --mainBackground_login: linear-gradient(90deg, #8D93EB 0%, #CEB3FF 100%);
}

body {

    min-height: 100vh;
    font-family: 'Sarabun';
}

.body-content {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    height: 100vh;
    background: var(--mainBackground_login);
    background-repeat: inherit;
    background-size: cover;
    background-position: bottom left;
    min-height: 600px;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
}

/* Carousel */
.carousel-caption p {
    font-size: 20px;
    line-height: 1.4;
}

/* Make .svg files in the carousel display properly in older browsers */
.carousel-inner .item img[src$=".svg"] {
    width: 100%;
}

/* QR code generator */
#qrCode {
    margin: 15px;
}

/* Hide/rearrange for smaller screens */
@media screen and (max-width: 767px) {
    /* Hide captions */
    .carousel-caption {
        display: none;
    }
}


.login_page_wrapper {
    width: calc(100% - 40px);
    max-width: 350px;
    margin: 0;
    position: absolute;
    border-radius: 20px;
    background-color: #fff;
    padding: 20px;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-content: stretch;
}

.flex-column-space-between {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-content: stretch;
}
.button-signIn {
    border-radius: 6px;
    background-color: var(--main);
    width: 100%;
    font-size: 20px;
    color: #fff;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-shadow: 3px 3px 6px 0 #00000029;
    border: 0px;
    height: 50px;
    font-size: 16px;
    margin-top: 20px;
}
.button-signIn:active {
    box-shadow: 0 3px 6px rgb(0 0 0 / 16%), 0 3px 6px rgb(0 0 0 / 23%);
}

label {
    font-size: 16px;
    margin-bottom: 0px !important;
}
.waves-effect {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.form-control:focus {
    box-shadow: 1px 1px 2px 0 #00000029 !important;
    border-color: #ced4da !important;
    border-radius: 4px;
}
.signIn-error {
    text-align: center;
    font-size: 14px;
    color: #ff0000;
    margin: 10px 0px;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
}
.signIn-logo {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    height: 200px;
}
.signIn-logo img {
    max-width: 200px;
    max-height: 150px;
}
.signIn-forgot {
    font-size: 14px;
    color: #1787e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    cursor: pointer;
}
.grid-end {
    display: grid;
    align-items: end;
}

.two_line_overflow {
    white-space: normal !important;
    word-break: break-all;
    line-height: 1.5em !important;
    max-height: 3em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.form-control {
    height: 40px;
    padding: 10px 10px 8px 10px;
    font-size: 16px;
    line-height: 40px;
    border-radius: 4px;
}

.input-group input {
    padding-right: 40px;
    border-radius: 4px !important;
}
.input-group-addon {
    position: absolute;
    right: 0px;
    width: 40px;
    display: flex;
    height: 100%;
    align-content: center;
    align-items: center;
    justify-content: center;
    z-index: 4;
}
    .input-group-addon a {
        color: #bbbcbc !important;
    }
        .input-group-addon a i {
            font-size: 24px;
            position: relative;
            top: 4px;
        }

.login_type_wrapper {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.login_type_select {
    width: calc(50% - 10px);
    height: 160px;
    border-radius: 20px;
    border: solid 1px #fff;
    background-color: #f5f5f5;
    color: var(--mainFont);
}

    .login_type_select.active {
        border: solid 1px var(--main) !important;
        background-color: #ffe1d1 !important;
        color: var(--main) !important;
    }

.login_header_wrapper {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: space-between;
    align-items: center;
    height: 30px;
}

    .login_header_wrapper .selectLang {
        font-size: 14px;
        color: #727272;
    }

.iconback {
    color: #727272;
    font-size: 24px;
}

.textAction {
    color: #727272;
    cursor: pointer;
    text-decoration: none;
}
    .textAction.active {
        color: var(--main) !important;
        font-size: 16px;
        font-weight: bold;
    }
    .textAction:hover {
        color: var(--main) !important;
    }

.form-control::placeholder {
    color: #bbbcbc;
    font-size: 85%;
}

.field-validation-error {
    font-size: 14px;
}

a:hover {
    color: var(--main) !important;
    font-weight: bold;
}

a.iconAction {
    color: var(--main);
    text-decoration: none;
}
    a.iconAction:hover {
        color: var(--mainSub1) !important;
        font-weight: bold;
    }

.login_header_text {
    font-size: 24px;
    color: #444444;
}

.mainIcon {
    font-size: 140px !important;
    color: #ff5050;
}

.login_header_text .signIn-error {
    font-size: 24px;
}

.modal-backdrop {
    --bs-backdrop-bg: #00000030;
}

.bd-example-modal-lg .modal-dialog {
    display: table;
    position: relative;
    margin: 0 auto;
    top: calc(50% - 24px);
}

    .bd-example-modal-lg .modal-dialog .modal-content {
        background-color: transparent;
        border: none;
    }

.spinner-color {
    color: var(--main);
}


.full_page_wrapper {
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    background-color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-content: stretch;
    padding-bottom: 20px;
}

.mea_header_text {
    font-size: 24px;
    font-weight: bold;
    color: var(--main);
    text-align: center;

}

input::-ms-reveal,
input::-ms-clear {
    display: none;
}

.md-preloader {
    font-size: 0;
    display: contents;
    -webkit-animation: outer 6s linear infinite;
    animation: outer 6s linear infinite;
}
    .md-preloader svg {
        -webkit-animation: inner 1200ms linear infinite;
        animation: inner 1200ms linear infinite;
    }
        .md-preloader svg circle {
            fill: none;
            stroke: var(--main);
            stroke-linecap: round;
            -webkit-animation: arc 1200ms cubic-bezier(0.4, 0, 0.2, 1) infinite;
            animation: arc 1200ms cubic-bezier(0.4, 0, 0.2, 1) infinite;
        }
@-webkit-keyframes outer {
    0% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes outer {
    0% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-webkit-keyframes inner {
    0% {
        -webkit-transform: rotate(-64.8deg);
        transform: rotate(-64.8deg);
    }

    100% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }
}

@keyframes inner {
    0% {
        -webkit-transform: rotate(-64.8deg);
        transform: rotate(-64.8deg);
    }

    100% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }
}

@-webkit-keyframes arc {
    0% {
        stroke-dasharray: 1 210.48670779px;
        stroke-dashoffset: 0;
    }

    40% {
        stroke-dasharray: 172.59910039px, 210.48670779px;
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dasharray: 1 210.48670779px;
        stroke-dashoffset: -172.59910039px;
    }
}

@keyframes arc {
    0% {
        stroke-dasharray: 1 210.48670779px;
        stroke-dashoffset: 0;
    }

    40% {
        stroke-dasharray: 172.59910039px, 210.48670779px;
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dasharray: 1 210.48670779px;
        stroke-dashoffset: -172.59910039px;
    }
}