﻿
body:has(.login-layout) {
    background: url("/images/background-gradient.png") no-repeat !important;
    background-size: 40% !important;
    background-color: var(--primary-color) !important;
}

.login-box {
    /*width: 410px;*/
    width: clamp(330px, 80vw, 430px);
    margin: 7% auto;
    background-color: #fff;
/*    padding: 30px 0px;*/
    border-radius: 30px;
}

.login-box .logo{
    width: 80px;
}

    .login-box form {
        padding: 10px 40px 20px 40px;
    }

.login-title {
    font-size: 20px;
    color: #2C364A;
    font-weight: 500;
    margin: 10px 0px;
}

.login-link {
    color: var(--warning-color) !important;
    font-weight: 500;
    text-decoration: underline;
}

.registration-closed-box {
    padding: 40px;
}

.registration-closed-box .logo {
    margin-bottom: 24px;
}

.registration-closed-message {
    margin: 0;
    color: #2C364A;
    font-size: 14px;
    font-weight: 500;
}

.registration-closed-login-link {
    display: inline-block;
    margin-top: 24px;
    font-size: 13px;
}

.captchaImage {
    display: flex;
    border: 1px dashed #1F4397;
    border-bottom: 0;
    padding-top: 10px;
    margin: 10px 10px 0 12px;
    width: 93%;
}

.captchaImage img{
    margin:auto;
}
    /*Auth Layout Style*/
    .mia-auth-container {
    display: flex;
    width: 100%;
    height: 100vh;
    margin: 0;
    background-color: #fff;
    overflow: hidden;
}

.mia-auth-left {
    width: 75%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mia-auth-body {
    width: 100%;
    max-width: 500px;
    margin-right:300px;
}

.mia-auth-right {
    width: 25%;
    background-image: url("/assets/images/bgImages/gradient 2-03 1.png");
    background-color: #1F4397;
    background-size: cover;
    background-position: center;
    position: relative;
}

.mia-login-vector {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 45rem;
}

.generate-btn{
    background-color:#1F4397 !important; 
    color:#fff !important;
    width: 30px;
    height: 30px;
}

.login-btn{
    width: 100% !important;
    background-color: #0f3da9 !important;
    font-size: 13px;
}

.register-type-btn{
    width: 100%;
    border: 1px solid #0f3da9 !important;
}

.register-type-btn:hover{
    /*background: #e6f5ff !important;*/
    border: 1px solid #6a7fb0 !important;
    box-shadow: 0 4px 12px rgba(106, 127, 176, 0.35);
}

.mia-registration-type {
    margin-bottom: 150px;
}

.mia-registration-type-options {
    padding: 40px;
}

.mia-login-captcha-value {
    flex: 1;
    min-width: 0;
}

/* ------------------- Responsive ------------------- */
@media (max-width: 1170px) {
    .mia-login-vector {
        width: 40rem;
    }
}

    @media (max-width: 995px) {
        .mia-auth-container {
            flex-direction: column;
            height: auto;
        }

        .mia-auth-right{
            display:none;
        }

        .mia-auth-left {
            width: 100%;
            height: auto;
        }

        .mia-auth-right {
            height: 200px;
        }

        .mia-auth-body {
            max-width: 90%;
            margin: 30px auto;
        }

        .mia-login-vector {
            width: 20rem;
        }
        body{
            background : #fff;
        }
    }

    /* Mobile portrait */
    @media (max-width: 576px) {
        .mia-auth-right {
            height: 150px;
        }

        .mia-login-vector {
            display: none;
        }
    }

/* Center auth pages in the viewport and allow taller forms to scroll. */
@media (max-width: 995px) {
    .mia-auth-container:has(.mia-responsive-auth) {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
    }

    .mia-auth-container:has(.mia-responsive-auth) > .mia-auth-left {
        min-width: 0;
        padding: 24px 16px;
    }

    .mia-auth-body:has(.mia-responsive-auth) {
        width: 100%;
        max-width: 460px;
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    .mia-auth-body .login-box.mia-responsive-auth {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 auto !important;
    }
}

@media (max-width: 767.98px) {
    .mia-responsive-auth .login-title {
        font-size: clamp(16px, 4.5vw, 20px);
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .mia-responsive-auth form {
        padding: 10px 12px 20px;
    }

    .mia-responsive-auth .row > *,
    .mia-responsive-auth .app-password-container {
        min-width: 0;
    }

    .mia-responsive-auth .validation-message,
    .mia-responsive-auth .form-label,
    .mia-responsive-auth .login-link,
    .mia-responsive-auth .registration-closed-message {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .mia-responsive-auth .app-input-text {
        min-width: 0;
        min-height: 44px;
        font-size: 16px !important;
    }

    .mia-login-page .captchaImage {
        width: calc(100% - 24px);
        margin: 10px 12px 0;
    }

    .mia-login-page .captchaImage img {
        max-width: 100%;
        height: auto;
    }

    .mia-login-captcha-input .generate-btn {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
    }

    .mia-responsive-auth button[type="submit"],
    .mia-responsive-auth .register-type-btn {
        min-height: 44px;
        white-space: normal;
    }

    .mia-registration-type .mia-registration-type-options {
        padding: 24px 12px !important;
    }

    .mia-responsive-auth.registration-closed-box {
        padding: 24px 16px;
    }

    .mia-responsive-auth .registration-closed-login-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
    }
}

