﻿.kt-login__options {
    text-align: center;
}

canvas {
    /*prevent interaction with the canvas*/
    pointer-events: none;
}

.lblCaptchaError {
    color: red;
}

#captcha {
    margin-top: 10px;
}

.divCaptchaRow {
    width: 100%;
}

.has-error {
    border: 1px solid red !important;
}

.custom-tooltip {
    position: absolute;
    z-index: 1030;
    display: block;
    text-align: left;
    right: 0;
}

    .custom-tooltip p {
        margin: 5px 0;
    }

    .custom-tooltip.top > .tooltip-arrow {
        top: 0;
        position: relative;
        margin-left: -5px;
        border-top-color: #B5B5B5;
        border-width: 8px 8px 0;
    }

    .custom-tooltip.bottom > .tooltip-arrow {
        top: 0;
        position: relative;
        margin-left: -5px;
        border-bottom-color: #f1f1f1;
        border-width: 0 8px 8px;
    }

    .custom-tooltip > .tooltip-inner {
        background-color: #f1f1f1;
        text-align: center;
        text-align: left;
        max-width: 300px;
        color: #666;
        opacity: 1;
        box-shadow: 0 3px 6px rgba(0,0,0,.16),0 3px 6px rgba(0,0,0,.22) !important;
        background-color: #E6E6FA !important;
    }

        .custom-tooltip > .tooltip-inner p.valid {
            color: green;
        }

            .custom-tooltip > .tooltip-inner p.valid:before {
                position: relative;
                margin-right: 8px;
                content: "?";
            }

        .custom-tooltip > .tooltip-inner p.invalid {
            color: red;
        }

            .custom-tooltip > .tooltip-inner p.invalid:before {
                position: relative;
                margin-right: 8px;
                content: "?";
            }

.fade:not(.show) {
    opacity: 1;
}

.kt-login__options {
    margin-top: 2rem;
}

body {
    background: #fff;
}

.mainLoginWrapper {
    background: #F0F4F9;
}

    .mainLoginWrapper .mainLoginChild {
        height: 100%;
       
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 110px;
    }

        .mainLoginWrapper .mainLoginChild .logoWrapper {
            width: 100%;
            height: 60%;
            background: linear-gradient(to top left, #fff 0%, #fff 50%, #000 50%, #000 100%);
            position: relative;
        }

            .mainLoginWrapper .mainLoginChild .logoWrapper img {
                position: absolute;
                top: 10%;
                left: 10%;
            }

.loginSignUpWrapper {
    align-self: center;
    width: 60%;
    background: #fff;
    padding: 25px;
    border-radius: 8px 8px 0px 0px;
    margin-top:20px;
}
@media only screen and (max-width: 786px) {
    .loginSignUpWrapper {
        width: 90%;
    }
}



.loginSignUpWrapper .form-control {
    height: 46px;
    border-radius: 10px !important;
    border: none;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-top: 1.5rem;
    color: #212529;
}

    .loginSignUpWrapper .kt-login__title {
        text-align: center;
        font-size: 2em;
    }

    .loginSignUpWrapper .kt-login__desc {
        margin-top: 1.5rem;
        text-align: center;
        font-size: 1.1rem;
        font-weight: 400;
        color: #212529;
    }

    .loginSignUpWrapper .kt-link {
        color: #212529;
    }

    .loginSignUpWrapper .kt-login__extra {
        padding-left: 7px;
        padding-right: 7px;
        margin: 15px auto;
        color: #212529;
        font-size: 1rem;
        margin-bottom: 0px;
        line-height: 1;
    }

        .loginSignUpWrapper .kt-login__extra .kt-checkbox {
            display: inline-block;
            position: relative;
            padding-left: 30px;
            margin-bottom: 10px;
            text-align: left;
            cursor: pointer;
            font-size: 1rem;
            -webkit-transition: all 0.3s ease;
            transition: all 0.3s ease;
        }

    .loginSignUpWrapper .kt-login__actions {
        text-align: center;
        margin-top: 2% !important;
    }

        .loginSignUpWrapper .kt-login__actions .kt-login__btn-primary, .loginSignUpWrapper .kt-login__actions .kt-login__btn-secondary {
            height: 46px;
            display: inline-block;
            text-align: center;
            padding-left: 4rem;
            padding-right: 4rem;
            margin-top: 0.6rem;
            border-radius: 60px;
            background: #212529;
            color: #fff;
            border-color: #212529;
        }

            .loginSignUpWrapper .kt-login__actions .kt-login__btn-primary:hover, .loginSignUpWrapper .kt-login__actions .kt-login__btn-secondary:hover {
                background: #fff;
                color: #212529;
                border-color: #212529;
            }

    .loginSignUpWrapper .kt-login__account {
        text-align: center;
        margin-top: 2rem;
    }

        .loginSignUpWrapper .kt-login__account .kt-login__account-msg {
            font-size: 1.1rem;
            font-weight: 500;
            color: #db3536;
        }

        .loginSignUpWrapper .kt-login__account .kt-login__account-link {
            font-size: 1.1rem;
            font-weight: 500;
            color: #212529;
        }

/*input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}*/

.inputPassword {
    padding-right: 40px !important;
}

.showPasswordEye {
    position: absolute;
    right: 15px;
    top: 43px;
    font-size: 18px;
    cursor: pointer;
    z-index: 11;
}

/* The password-visibility toggle is a real <button> for keyboard and
   screen-reader access; strip default button chrome so it renders as
   the same bare icon as before. */
button.eye-toggle-btn {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    line-height: 1;
    color: inherit;
    -webkit-appearance: none;
    appearance: none;
}

/* Keeps the OTP / verification card readable on all screen widths
   (replaces the old inline width:50%). */
.otp-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}
#alert-box {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 30em;
    height: 18em;
    margin-top: -9em; /*set to a negative number 1/2 of your height*/
    margin-left: -15em; /*set to a negative number 1/2 of your width*/
    /*border: 1px solid #ccc;
            background-color: #f3f3f3;*/
}

.swal2-container {
    z-index: 5000 !important;
}

.divOuterPopup {
    display: none;
    position: fixed;
    left: 0px;
    top: 0px;
    vertical-align: middle;
    text-align: center;
    width: 100%;
    height: 100%;
    background: #000;
    filter: alpha(Opacity=100);
    opacity: 0.6;
    -moz-opacity: 0.6;
    -khtml-opacity: 0.6;
    float: left;
    z-index: 99999;
    -webkit-transform: translate3d(0,0,0);
    top: 0;
    bottom: 0;
}

.divInnerPopup {
    color: Black;
    display: none;
    position: absolute;
    z-index: 1102;
    opacity: 0.9;
    filter: alpha(opacity=90);
    left: 24%;
    -webkit-transform: translate3d(0,0,0);
    padding: 10px;
    top: 40vh !important;
    background-color: #fff;
}

    .divInnerPopup.ProgressBar {
        z-index: 100000;
    }

    .divInnerPopup.MessageBox {
        z-index: 1103;
        background: #fff none;
    }

        .divInnerPopup.MessageBox h2 {
            line-height: 1.38462 !important;
            margin-top: 10px !important;
        }

.fs-14 {
    font-size: 14px !important;
}

.theme-btn {
    background: #1212D7 !important;
    padding: 8px 12px;
    gap: 5px !important;
    border-radius: 6px !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 19.36px !important;
    text-align: center !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    width: fit-content;
    cursor: pointer !important;
    justify-content: center;
}

    .theme-btn:hover {
        color: #fff;
    }

.form-control {
    background: #eaf6ff78 !important;
    border: 1px solid #DEE9FE;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #666 !important;
    height: 36px;
}

    .form-control:focus {
        background: #fff !important;
    }

.fw-500 {
    font-weight: 500;
}

.fw-600 {
    font-weight: 600;
}

.text-black {
    color: #000;
}

.custom-chk {
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: fit-content;
    line-height: 23px;
}

    .custom-chk input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

    .custom-chk .checkmark {
        position: absolute;
        top: 0px;
        left: 0;
        height: 20px;
        width: 20px;
        background-color: #EAF1FB;
        border-radius: 4px;
        border: 1px solid #0253f1b0;
    }

    .custom-chk input:checked ~ .checkmark {
        background-color: #1212D7;
    }

    .custom-chk .checkmark:after {
        content: "";
        position: absolute;
        display: none;
    }

    .custom-chk input:checked ~ .checkmark:after {
        display: block;
    }

    .custom-chk .checkmark:after {
        left: 6px;
        top: 3px;
        width: 6px;
        height: 10px;
        border: solid white;
        border-width: 0 3px 3px 0;
        -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    .custom-chk .partial:after {
        left: 8px;
        top: 4px;
        width: 0px;
        height: 10px;
        border: solid white;
        border-width: 0 2px 3px 0;
        -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        transform: rotate(90deg);
    }

.clsLoadingMsg {
    font-size: 13px !important;
}

.ProgressBar img {
    height: 30px;
    width: 30px;
}

/* Later in CommonNew.css (overrides previous .clsLoadingMsg) */
.clsLoadingMsg {
    font-weight: bold;
    color: #000;
    font-size: 18px;
}

@media (max-width: 786px) {
    .clsLoadingMsg {
        font-size: 13px !important;
    }

    .ProgressBar img {
        height: 30px;
        width: 30px;
    }
}
/* ==========================================================================
   Auth V2 enhancement layer
   Login / Sign Up / Forgot Password / Reset Password / OTP Verification.
   Appended last and scoped to .mainLoginWrapper so nothing here leaks into
   the in-app pages that also load login.css (Reports, Account settings,
   password pages inside the portal).
   Self-contained: the standalone auth pages do not load ui-foundation.css,
   so literal color values are used instead of the --ks-* tokens.
   ========================================================================== */

/* ---- Page canvas: soft brand-tinted backdrop --------------------------- */
.mainLoginWrapper {
    background: linear-gradient(180deg, #F8FBFF 0%, #EFF4FB 55%, #E9F0F9 100%);
    min-height: 100vh;
}

    .mainLoginWrapper .mainLoginChild {
        padding-top: 6vh;
        padding-bottom: 48px;
    }

    /* Logo: centered and consistent on every auth page (replaces the legacy
       black diagonal panel on the reset/OTP pages, which did not match the
       main login page) */
    .mainLoginWrapper .mainLoginChild .logoWrapper {
        height: auto;
        background: none;
        display: flex;
        justify-content: center;
        margin-bottom: 8px;
    }

        .mainLoginWrapper .mainLoginChild .logoWrapper img {
            position: static;
            max-height: 60px;
        }

/* ---- Card: focused column with real elevation --------------------------- */
.mainLoginWrapper .loginSignUpWrapper {
    width: 100%;
    max-width: 480px;
    padding: 40px 36px;
    margin-top: 24px;
    border-radius: 16px;
    border: 1px solid rgba(9, 23, 60, 0.05);
    box-shadow: 0 16px 44px rgba(9, 23, 60, 0.10), 0 2px 6px rgba(9, 23, 60, 0.05);
}

/* ---- Typography hierarchy ----------------------------------------------- */
.mainLoginWrapper .loginSignUpWrapper h1,
.mainLoginWrapper .loginSignUpWrapper .kt-login__title {
    font-size: 24px;
    font-weight: 700;
    color: #1F2430;
    letter-spacing: -0.01em;
    text-align: center;
    margin-bottom: 2px;
}

.mainLoginWrapper .loginSignUpWrapper .kt-login__desc {
    font-size: 14px;
    color: #5F6B7A;
    margin-top: 0.75rem;
}

/* ---- Inputs: defined fields with a clear focus ring --------------------- */
.mainLoginWrapper .form-control {
    background: #F7F9FC !important;
    border: 1px solid #DEE9FE;
    height: 46px;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1F2430 !important;
    padding-left: 1rem;
    padding-right: 1rem;
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

    .mainLoginWrapper .form-control::placeholder {
        color: #97A3B8 !important;
        font-weight: 400 !important;
        opacity: 1;
    }

    .mainLoginWrapper .form-control:focus {
        background: #fff !important;
        border-color: #1212D7 !important;
        box-shadow: 0 0 0 3px rgba(18, 18, 215, 0.13) !important;
        outline: 0;
    }

    /* Validation: softer red, still unmistakable; smooth appearance via the
       transition already on the field */
    .mainLoginWrapper .form-control.has-error {
        border-color: #E14B4B !important;
        background: #FEF7F7 !important;
    }

        .mainLoginWrapper .form-control.has-error:focus {
            box-shadow: 0 0 0 3px rgba(225, 75, 75, 0.14) !important;
        }

/* ---- Buttons: one obvious primary action -------------------------------- */
.mainLoginWrapper .theme-btn {
    min-height: 46px;
    border-radius: 10px !important;
    font-size: 14px !important;
    box-shadow: 0 8px 20px rgba(18, 18, 215, 0.20);
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

    .mainLoginWrapper .theme-btn:hover {
        background: #0F0FB8 !important;
        box-shadow: 0 10px 24px rgba(18, 18, 215, 0.25);
    }

    .mainLoginWrapper .theme-btn:active {
        transform: translateY(1px);
        box-shadow: 0 4px 10px rgba(18, 18, 215, 0.20);
    }

/* Sign Up / Forgot Password actions: primary is brand, secondary is quiet
   (previously both were identical black pills) */
.mainLoginWrapper .kt-login__actions .kt-login__btn-primary {
    background: #1212D7;
    border: 1px solid #1212D7;
    color: #fff;
    height: 46px;
    border-radius: 10px;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    box-shadow: 0 8px 20px rgba(18, 18, 215, 0.18);
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

    .mainLoginWrapper .kt-login__actions .kt-login__btn-primary:hover {
        background: #0F0FB8;
        border-color: #0F0FB8;
        color: #fff;
    }

.mainLoginWrapper .kt-login__actions .kt-login__btn-secondary {
    background: #fff;
    border: 1px solid #C6D2E9;
    color: #3F4A5A;
    height: 46px;
    border-radius: 10px;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    transition: background-color 160ms ease, color 160ms ease;
}

    .mainLoginWrapper .kt-login__actions .kt-login__btn-secondary:hover {
        background: #F1F4F9;
        border-color: #C6D2E9;
        color: #1F2430;
    }

/* ---- Links and password visibility -------------------------------------- */
.mainLoginWrapper .kt-link {
    color: #1212D7;
    font-weight: 500;
    transition: color 150ms ease;
}

    .mainLoginWrapper .kt-link:hover {
        color: #0F0FB8;
        text-decoration: underline;
    }

.mainLoginWrapper .showPasswordEye {
    color: #5F6B7A;
    transition: color 150ms ease;
}

    .mainLoginWrapper .showPasswordEye:hover {
        color: #1212D7;
    }

/* ---- Password rules tooltip: white surface instead of lavender ---------- */
.mainLoginWrapper .custom-tooltip > .tooltip-inner {
    background-color: #fff !important;
    border: 1px solid #E1E9F8;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(9, 23, 60, 0.14) !important;
    color: #3F4A5A;
    padding: 10px 14px;
}

/* ---- Responsive tuning --------------------------------------------------- */
@media (max-width: 786px) {
    .mainLoginWrapper .mainLoginChild {
        padding-top: 4vh;
    }

    .mainLoginWrapper .loginSignUpWrapper {
        max-width: 92%;
        padding: 28px 20px;
        margin-top: 16px;
    }

        .mainLoginWrapper .loginSignUpWrapper h1,
        .mainLoginWrapper .loginSignUpWrapper .kt-login__title {
            font-size: 20px;
        }

    /* Stacked full-width actions are easier to tap */
    .mainLoginWrapper .kt-login__actions .kt-login__btn-primary,
    .mainLoginWrapper .kt-login__actions .kt-login__btn-secondary {
        width: 100%;
        margin: 6px 0 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ---- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .mainLoginWrapper *,
    .mainLoginWrapper *::before,
    .mainLoginWrapper *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
