﻿html {
    height: 100%;
}

* {
    box-sizing: border-box;
    outline: none;
}

:root,
.theme-light {
    --brand-blue: #0053E9;
    --brand-blue-hover: #0243b9;
    --login-page-bg: linear-gradient(180deg, #f3f5ff 0%, #eff3ff 100%);
    --login-card-bg: #ffffff;
    --login-text: #111827;
    --login-muted: #6b7280;
    --login-copy: #4b5563;
    --login-border: #e5e7eb;
    --login-input-bg: #ffffff;
    --login-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    --login-card-radius: 20px;
    --login-control-radius: 8px;
    --login-control-height: 2.5rem;
    --top-bar-color: #334155;
    --surface-bg: #ffffff;
    --surface-border: #e2e8f0;
    --menu-hover-bg: #e7f1ff;
    --color-primary: #0053E9;
    --btn-primary-color: #0053E9;
    --btn-primary-hover-color: #0243b9;
}

.theme-dark {
    --brand-blue: #93c5fd;
    --brand-blue-hover: #bfdbfe;
    --login-page-bg: linear-gradient(180deg, #0f172a 0%, #152033 100%);
    --login-card-bg: #1a2438;
    --login-text: #f8fafc;
    --login-muted: #cbd5e1;
    --login-copy: #e2e8f0;
    --login-border: #3a4d6a;
    --login-input-bg: #243247;
    --login-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
    --login-card-radius: 20px;
    --login-control-radius: 8px;
    --login-control-height: 2.5rem;
    --top-bar-color: #f8fafc;
    --surface-bg: #1a2438;
    --surface-border: #3a4d6a;
    --menu-hover-bg: #2a3c57;
    --color-primary: #93c5fd;
    --btn-primary-color: #3b82f6;
    --btn-primary-hover-color: #2563eb;
    color-scheme: dark;
}

body {
    font-family: Poppins, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--login-page-bg);
    color: var(--login-text);
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    position: relative;
}

.login-theme-slot {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: 1px solid var(--surface-border);
    border-radius: 0.5rem;
    background: var(--surface-bg);
    color: var(--top-bar-color);
    cursor: pointer;
}

.theme-toggle-btn .theme-toggle-icon { display: none; }
.theme-light .theme-toggle-btn .theme-toggle-icon-moon,
.theme-dark .theme-toggle-btn .theme-toggle-icon-sun { display: block; }

.login-shell,
.wrapper {
    width: 100%;
    max-width: 960px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 20px;
    align-items: stretch;
    min-height: auto;
}

#app.login-shell,
#app {
    width: 100%;
    background: transparent;
    border-radius: 0;
    padding: 0;
    display: grid;
}

.hero-panel,
.auth-panel,
#formContent,
.login-right {
    background: var(--login-card-bg);
    border-radius: var(--login-card-radius);
    box-shadow: var(--login-shadow);
    padding: 28px 28px;
    width: auto;
    border: 1px solid var(--login-border);
    position: relative;
}

.hero-panel,
.login-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    align-items: flex-start;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-brand-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--login-text);
    letter-spacing: 0.04em;
}

.hero-brand-subtitle {
    color: var(--login-muted);
    font-size: 13px;
}

.hero-title {
    font-size: 32px;
    line-height: 1.15;
    color: var(--login-text);
    margin: 0;
    font-weight: 700;
    text-align: left;
    letter-spacing: 0;
    text-transform: none;
}

.hero-title span {
    display: block;
    color: var(--brand-blue);
}

.hero-copy,
.login-right p {
    color: var(--login-copy);
    font-size: 14px;
    line-height: 1.6;
    font-style: normal;
    text-align: left;
    word-spacing: normal;
    margin: 0;
}

.auth-welcome-copy {
    color: var(--login-muted);
    margin: 0 0 12px;
    font-size: 13px;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.field-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--login-muted);
    margin: 0 0 6px;
}

.auth-form .field-label:not(:first-child) {
    margin-top: 12px;
}

.login-input,
#formContent input[type=text],
#formContent input[type=password],
#formContent input[type=email] {
    height: var(--login-control-height);
    width: 100%;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--login-border);
    border-radius: var(--login-control-radius);
    background: var(--login-input-bg);
    color: var(--login-text);
    font-size: 14px;
    box-shadow: none;
}

.login-input::placeholder,
#formContent input[type=text]::placeholder,
#formContent input[type=password]::placeholder,
#formContent input[type=email]::placeholder {
    color: var(--login-muted);
    opacity: 1;
}

.login-input:hover,
#formContent input[type=text]:hover,
#formContent input[type=password]:hover,
#formContent input[type=email]:hover {
    border-color: var(--brand-blue);
}

.login-input:focus,
#formContent input[type=text]:focus,
#formContent input[type=password]:focus,
#formContent input[type=email]:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-blue) 18%, transparent);
}

.logo-wrapper {
    display: none;
}

.login-logo {
    transition-duration: 0.8s;
    transition-property: transform;
}

.login-logo:hover {
    transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
}





a {
    color: var(--brand-blue, #0053E9);
    display: inline-block;
    text-decoration: none;
    font-weight: 400
}
    a.forgot-password {
        color: var(--login-muted, #777);
        display: inline-block;
        position: relative;
        font-size:85%;
    }

        a.forgot-password:hover {
            color: var(--brand-blue, #333);
        }

        a.forgot-password::after {
            content: '';
            position: absolute;
            width: 100%;
            transform: scaleX(0);
            height: 1px;
            bottom: 0;
            left: 0;
            background-color: var(--login-muted, #777);
            transform-origin: bottom right;
            transition: transform 0.25s ease-out;
        }

        a.forgot-password:hover::after {
            transform: scaleX(1);
            transform-origin: bottom left;
        }
        a.forgot-password:focus {
            text-decoration:underline;
        }

.theme-dark a.forgot-password,
.theme-dark a {
    color: var(--login-muted);
}

.theme-dark a.btn-signup {
    color: #fff;
}

.theme-dark a.forgot-password:hover {
    color: var(--brand-blue);
}

.theme-dark .btn-otp {
    background: transparent;
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.theme-dark .ErrorMsg {
    background: #3f1d1d;
    border-color: #7f1d1d;
    color: #fecaca;
}

.hero-brand .login-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    color: var(--login-muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--login-border);
}

.login-page input[type=button],
.login-page input[type=reset],
.login-page input[type=submit],
.login-page .btn-custom,
.login-page .btn-otp,
.login-page .btn-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    height: var(--login-control-height);
    min-height: var(--login-control-height);
    margin: 0;
    padding: 0 16px;
    border-radius: var(--login-control-radius);
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.login-page input[type=submit],
.login-page input[type=button],
.login-page input[type=reset],
.login-page .btn-custom,
.login-page .btn-signup {
    background-color: var(--btn-primary-color);
    border-color: var(--btn-primary-color);
    color: #fff;
}

.login-page input[type=submit]:hover,
.login-page input[type=button]:hover,
.login-page input[type=reset]:hover,
.login-page .btn-custom:hover,
.login-page .btn-signup:hover,
.login-page .btn-signup:focus {
    background-color: var(--btn-primary-hover-color);
    border-color: var(--btn-primary-hover-color);
    color: #fff;
}

.login-page .auth-form input[type=submit] {
    margin-top: 14px;
}

.login-page .btn-otp {
    background: transparent;
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    margin: 0 0 8px;
}

.login-page .btn-otp:hover,
.login-page .btn-otp:focus {
    background: var(--menu-hover-bg);
    border-color: var(--brand-blue-hover);
    color: var(--brand-blue-hover);
}

.login-page input[type=submit]:focus,
.login-page .btn-custom:focus,
.login-page .btn-otp:focus,
.login-page .btn-signup:focus {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-blue) 22%, transparent);
}

.login-page input[type=submit]:disabled,
.login-page .btn-custom:disabled,
.login-page .btn-otp:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.forgot-password {
    display: inline-block;
    margin: 8px 0 0;
}

.ErrorMsg {
    color: #dc2626;
    text-align: center;
    border-radius: var(--login-control-radius);
    margin: 10px 0 0;
    font-size: 13px;
    display: block;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 900px) {
    .login-shell,
    .wrapper,
    #app.login-shell,
    #app {
        grid-template-columns: 1fr;
        max-width: 440px;
        gap: 16px;
    }

    .hero-panel,
    .login-right {
        display: flex;
        padding: 22px 22px 20px;
        gap: 12px;
    }

    .hero-title {
        font-size: 26px;
    }

    .auth-panel,
    #formContent {
        padding: 22px;
    }
}

@media (max-width: 640px) {
    .login-page {
        padding: 56px 12px 16px;
        align-items: flex-start;
    }

    .hero-panel,
    .auth-panel,
    #formContent {
        padding: 20px 18px;
        border-radius: 16px;
    }
}





    /****************** Popup ********************/
    /* Popup container */
    .popup {
        position: relative;
        display: inline-block;
        cursor: pointer;
        bottom: 41px;
    }

        /* The actual popup (appears on top) */
        .popup .popuptext {
            visibility: hidden;
            width: 500px;
            background-color: var(--login-card-bg, #ffffff);
            color: var(--login-text, #111827);
            text-align: left;
            border-radius: 6px;
            padding: 8px 0;
            position: absolute;
            z-index: 1;
            bottom: 125%;
            left: 50%;
            /*margin-left: -80px;*/
            box-shadow: var(--login-shadow, 0 0 8px 0 rgba(0, 0, 0, 0.2));
        }

            /* Popup arrow */
            .popup .popuptext::after {
                content: "";
                position: absolute;
                top: 100%;
                left: 50%;
                margin-left: -5px;
                border-width: 5px;
                border-style: solid;
                border-color: #e3e3e3 transparent transparent transparent;
            }

        /* Toggle this class when clicking on the popup container (hide and show the popup) */
        .popup .show {
            visibility: visible;
            -webkit-animation: fadeIn 1s;
            animation: fadeIn 1s
        }

    /* Add animation (fade in the popup) */
    @-webkit-keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }
    /****************** Popup - END ********************/
    /****************** Password Rules ********************/
    ul {
        list-style: none;
    }

    .pwd-rules .failed {
        color: red;
    }

    .pwd-rules .passed {
        color: green;
    }
    /****************** Password Rules ********************/
.msg-err, .msg-info {
    padding: 5px;
    font-size: 12px;
    margin-bottom: 10px;
    margin-top: 5px;
}

.msg-err {
    background-color: #ffdcdc;
    color: red;
}

.msg-info {
    background-color: #ddffdc;
    color: green;
}

.eye-open, .eye-close {
    display: inline-block;
    width: 22px;
    height: 22px;
    background-size: 100%;
    background-repeat: no-repeat;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    z-index: 2;
    cursor: pointer;
}

.eye-open {
    background-image: url('/images/Eye-Opened.png');
}

.eye-close {
    background-image: url('/images/Eye-Closed.png');
}

.cnt-pwd {
    position: relative;
}

.cnt-pwd input {
    padding-right: 40px;
}

.txt-otp {
    letter-spacing: 15px;
    border: 1px solid var(--login-border, gray) !important;
    font-size: 18px;
}

    /****************** Loader ******************************/
    #loader-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 100;
        /*background-color: white;*/
        opacity: 0.5;
    }

    #loader {
        border: 3px solid transparent;
        border-top-color: transparent;
        border-top-color: #28bebd;
        border-radius: 50%;
        display: block;
        margin: -75px 0 0 -75px;
        width: 150px;
        height: 150px;
        position: relative;
        top: 50%;
        left: 50%;
        animation: spin 2s linear infinite;
    }

        #loader::after {
            border: 3px solid transparent;
            border-top-color: #ec407a;
            border-radius: 50%;
            content: "";
            position: absolute;
            top: 15px;
            left: 15px;
            bottom: 15px;
            right: 15px;
            animation: spin 1.5s linear infinite;
        }

        #loader::before {
            border: 3px solid transparent;
            border-top-color: #48a6f2;
            border-radius: 50%;
            content: "";
            position: absolute;
            top: 5px;
            right: 5px;
            bottom: 5px;
            left: 5px;
            animation: spin 3s linear infinite;
        }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(1turn);
        }
    }
.random-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    margin: -27px 0 0 -27px;
    border-top: 3px solid #4DB3C1;
    border-left: 3px solid #4DB3C1;
    border-right: 3px solid transparent;
    height: 54px;
    width: 54px;
    border-radius: 50%;
    animation: rotate 1.0s linear infinite;
}

    .random-spinner::before {
        content: '';
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 11.6C20 10.96 19.44 10.4 18.8 10.4H14.4L10.4 4H8.8L10.8 10.4H6.4L5.2 8.8H4L4.8 11.6L4 14.4H5.2L6.4 12.8H10.8L8.8 19.2H10.4L14.4 12.8H18.8C19.44 12.8 20 12.24 20 11.6Z' fill='black'/%3E%3C/svg%3E");
        display: block;
        background-size: 30px;
        background-repeat: no-repeat;
        background-position: center;
        position: absolute;
        z-index: 999;
        top: -19px;
        left: 19px;
        width: 100%;
        height: 100%;
        text-align: center;
        transform: rotate(41deg);
    }

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(1turn);
    }
}
    /****************** Loader - End ******************************/
