body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.3rem;
    font-size: 0.8rem;
    font-weight: 400;
    color: #525252;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}
html, body {
    height: 100%;
    margin: 0;
}

.row.h-100 {
    height: 100vh;
}

.fixed-background {
    background: url(https://dashboard-staging.ipay88.co.th/assets/img/map-bg.svg) no-repeat center center fixed;
    opacity: 1;
}
.default-transition{
    opacity: 1;
}
.card.neu-flat {
    transition: all 0.4s ease;
    min-height: 500px;
    overflow: visible;
    height: auto !important;
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 900px;
}
.card.neu-flat.expanded .form-container,
.card.neu-flat.expanded .overlay-container {
    min-height: 600px;
}

.neu-flat {
    background-color: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    width: 100%;
    max-width: 900px;
}

#container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    transition: all 0.4s ease;


}
.form-group.has-float-label {
    display: flex;
    flex-direction: column-reverse;
    justify-content: start;
    align-items: start;
}
.form-container {
    transition: all 0.4s ease;
    flex: 1 1 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
    box-sizing: border-box;
    min-height: 500px;
    height: auto !important;
    min-width: 400px;
    display: flex;
    flex-direction: column;
}
.form-container.sign-in-container {
    transition: all 0.3s ease;
    position: relative;
}
.overlay-container {
    order: 2;
    overflow: hidden;
    flex: 1 1 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
    min-height: 500px;
    box-sizing: border-box;
    height: auto !important;
    min-width: 400px;
    transition: all 0.4s ease;
}
@media (max-width: 790px) {
    .container  {
        padding-left: 20px;
        flex-direction: column;
        justify-content: center;
        flex-wrap: wrap;
    }
    .fixed-background {
        background: url(https://dashboard-staging.ipay88.co.th/assets/img/map-bg.svg) no-repeat center center fixed;
        opacity: 1;
    }
    .lod{
        margin-top: 45px;
    }
    .row.h-100 {
        height: auto !important;
        min-height: 100vh;
    }

    body {
        height: auto;
        min-height: 100vh;
        display: block;
        padding: 20px 0;
    }

    .card.neu-flat {
        height: auto !important;
        min-height: auto;
        flex-direction: column;
    }

    .card.neu-flat.expanded {
        min-height: auto;
        height: auto !important;
    }

    .form-container,
    .overlay-container {
        height: auto !important;
        min-height: auto;
    }

    .card.neu-flat.expanded .sign-in-container {
        min-height: 650px;
    }

    .card.neu-flat.expanded .overlay-container {
        min-height: 300px;
    }


    #2fa-container.active {
        max-height: 450px;
        margin: 15px 0;
    }

    #verify-2fa-button,
    #back-to-login {
        width: 100%;
        max-width: 200px;
        margin: 0 auto !important;
    }

}

.sign-in-container {
    order: 1;
    padding: 3rem;
    transition: all 0.4s ease;
}
.container.right-panel-active{
    flex: 1 1 300px;
}

.container.right-panel-active .sign-in-container {
    display: none;
}

.sign-up-container {
    order: 3;
    display: none;
    align-items: center;
    width: 100%;
    padding: 2rem;
}

.container.right-panel-active .sign-up-container {
    flex: 1 1 300px !important;
}
.container.right-panel-active .overlay-container {
    flex: 1 1 300px !important;
}
.right-panel-active .sign-in-container {
    display: none;
}

.right-panel-active .sign-up-container {
    display: block;
}

.validation-summary-errors ul {
    list-style: none;
    margin-left: -40px
}

input.form-control {
    padding-right: 2.3rem;
}

h3 {
    font-size: 1.3rem;
    margin-top: -5px;
    padding-bottom: 10px;
    color: #00c300;
}
h1 {
  font-size: 1.3rem;
  margin-top: -15px;
  top: 50%;
  left: 50%;
}
h2 {
  font-size: 1.6rem;
  margin-top: -15px;
  margin-bottom: 17px;
  top: 50%;
  left: 50%;
  color: #00c300;
}

.base {
    margin: 0;
    padding: 0;
    top: 50%;
    left: 50%;
    font-family: "Inter", sans-serif;}


.base h2 {
    font-size: 0.8rem;
    display: flex;
    justify-content: end
}


button.ghost {
    border: 1px solid #00c300;
    font-size: 1.0rem;
    color: #00c300;
    background: linear-gradient(145deg, #e0e0e0, #ffffff) !important;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

button.ghost:hover {
    background: #00c300;
    color: #00c300;
}

.btn {
    box-shadow: 0 5px 15px 0 rgba(0, 195, 0, 1);
    transition: 0.5s;
    border-radius: 10px;
    height: 40px;
    width: 160px;
    font-size: 1rem;
    color: #FFFFFF;
    border-color: #82d35e;
    background-color: #7dd96b !important;
}

.btn:hover {
    transform: translate(0, -3px);
    box-shadow: 0 20px 40px 0 rgba(0, 195, 0, 1);
}


.line {
    display: flex;
    align-items: center;
    justify-content: start;
}
.st0 {
  fill: none;
}

.st1 {
  fill: #010101;
}

.icon {
    position: absolute;
    display: flex;
    transform: translateY(-15%);
    pointer-events: none;
    padding-top: 20px;
    padding-left: 10px;

    svg {
        height: 30px;
        width: 30px;
        margin: auto;
        opacity: .15;
        transition: all .3s ease;

        path {
            transition: all .3s ease;
        }
    }
}


.container.right-panel-active .overlay-container {
    left: 0;
}

.overlay {
    background: #79d67d;
    background: -webkit-linear-gradient(to right, #70db83, #00c300);
    background: linear-gradient(to right, #82d35e, #71e65a);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #FFFFFF;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;

}

.container.right-panel-active .overlay {
    left: 0;
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;

}
.overlay-panel .overlay-left{
    flex: 1 1 300px !important;
}

.overlay-left {
    left: 0;
}

.overlay-right {
    right: 0;

}

.form-control {
    font-size: 1.0rem;
    border-radius: 10px;
    padding-left: 45px;

}

.form-control.error {
    border-color: #e74c3c;
    background: rgba(244, 91, 83, 0.4) !important;
    margin-bottom: 25px;
}

.error-message {
    color: red;
    text-align: center;
    display: none;
    position: absolute;
    bottom: 220px;
}
.col-12{
    text-align: center;
    padding-bottom: 5rem;
}
.lod{
    height: 100px;
    margin-bottom: 35px;
}
.mb-4{
    position: relative;
}
.style-orange {
  margin-left: auto;
  margin-bottom: 0;
  white-space: nowrap;
}

.label-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: -19px;
}

.timer{
    margin: 10px 0;
    font-weight: bold;
}
.checking-message{
    display: none;
    text-align: center;
    margin: 10px 0;
    color: #00c300;
    font-weight: bold;
    font-size: 0.8rem;
}
.validation-summary-valid{
    list-style: none;
}
#login-form {
    transition: opacity 0.3s ease;
}

#2fa-section {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    z-index: 1000;
}
#2fa-container {
    transition: all 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#2fa-container.active {
    max-height: 600px;
    opacity: 1;
    margin-top: 20px;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 600px;
    }
}

#2fa-container.active {
    animation: slideDown 0.4s ease-out;
}
p {
    font-size: 0.8rem;
    line-height: 1.3rem;
    font-family: 'Noto Sans JP', sans-serif;
    margin-bottom: 35px;
}

#resend-code-button, #back-to-login,
#verify-2fa-button{
    transition: 0.5s;
    border-radius: 10px;
    margin-top: -8px !important;
    height: 30px;
    width: 150px;
    font-size: 12px;
    color: #FFFFFF;
    border-color: #82d35e;
    background-color: #7dd96b !important;
}
.base .otp-base {
    width: auto;
    display: flex;
    align-items: start;
    justify-content: space-evenly;
    gap: 0.7rem;
    margin-bottom: 10px;
}
@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}


.base .otp-base input {
    width: 30px;
    min-width: 40px;
    text-align: center;
    padding: 0.5rem;
    border-radius: 4px;
    border: none;
    outline: none;
    font-size: 1.2rem;
    transition: all .2s ease;
    background: #f5f5f5;
    box-shadow: inset 3px 3px 5px #c7c7c7, inset -3px -3px 5px #ffffff;
}
.base .otp-base input:focus {
    outline: none;
}



.base .otp-base .otp-input.correct {
    background: #f0fff0 !important;
    box-shadow: inset 3px 3px 5px #c7c7c7,
    inset -3px -3px 5px #ffffff,
    0 0 15px rgba(0, 195, 0, 0.3) !important;
    border: 1px solid #00c300 !important;
}


.base .otp-base .otp-input.incorrect {
    background: #fff0f0 !important;
    box-shadow: inset 3px 3px 5px #c7c7c7,
    inset -3px -3px 5px #ffffff,
    0 0 15px rgba(220, 53, 69, 0.3) !important;
    border: 1px solid #dc3545 !important;
}

.base .otp-error {
    animation: shake .3s ease forwards;
    pointer-events: none;
}
