/* =====================================================================
   CampusPro – Login page theme   (drop-in replacement for Logincss_v1.css)
   Same class names / IDs as Login.cshtml – no markup or JavaScript changes.
   Palette matches the ERP theme: navy #0F2A44, teal #17B3C5 / #0E7C8A.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@400;500;600;700&display=swap');

:root {
    --lg-navy: #0F2A44;
    --lg-navy-2: #123A5C;
    --lg-teal: #17B3C5;
    --lg-teal-dark: #0E7C8A;
    --lg-mint: #57F2C6;
    --lg-ink: #14283B;
    --lg-muted: #5A6B7B;
    --lg-line: #cfe3ea;
    --lg-font: 'Mukta', 'Inter', system-ui, sans-serif;
}

/* ---------------- page ---------------- */
body {
    background-color: #EAF0F5;
    background-image: url('../image/bg.png?v=0.2');
    background-attachment: fixed;
    font-family: var(--lg-font);
    color: var(--lg-ink);
}

.mainloginbox {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px 0;
}

/* ---------------- left panel ---------------- */
.bgblue {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 640px;
    padding: 38px 28px 22px;
    text-align: center;
    border-radius: 24px;
    background: linear-gradient(155deg, var(--lg-navy) 0%, var(--lg-navy-2) 55%, #0E6C86 125%);
    box-shadow: 0 24px 60px rgba(15, 42, 68, .28);
}

    .bgblue::before,
    .bgblue::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
    }

    .bgblue::before {
        right: -80px;
        top: -90px;
        width: 300px;
        height: 300px;
        background: var(--lg-teal);
        opacity: .22;
    }

    .bgblue::after {
        left: -70px;
        bottom: -110px;
        width: 280px;
        height: 280px;
        background: var(--lg-mint);
        opacity: .12;
    }

    .bgblue > * {
        position: relative;
        z-index: 1;
    }

    .bgblue a {
        color: #fff;
        text-decoration: none;
    }

    .bgblue i {
        margin: 0 8px 0 0;
        color: var(--lg-mint);
    }

/* school logo + name */
.clientlogodetails {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 0;
    max-height: none;
    text-align: center;
}

    .clientlogodetails img {
        width: auto;
        max-width: 150px;
        max-height: 110px;
        padding: 14px;
        object-fit: contain;
        background: #fff;
        border-radius: 24px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    }

    .clientlogodetails h3 {
        width: auto;
        max-width: 520px;
        margin: 0;
        font-family: var(--lg-font);
        font-size: 28px;
        font-weight: 700;
        letter-spacing: .4px;
        line-height: 1.25;
        color: #fff;
        text-align: center;
        word-break: break-word;
    }

.clientdetails {
    flex: 1 1 auto;
    min-height: 10px;
    margin: 0;
}

/* help / contact box */
.HelpDetails {
    position: static;
    transform: none;
    width: 85%;
    max-width: 430px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
}

    .HelpDetails p {
        margin: 0 0 10px;
        font-family: var(--lg-font);
        font-size: 15px;
        font-weight: 500;
        color: #fff;
        text-align: center;
    }

        .HelpDetails p:last-child {
            margin-bottom: 0;
        }

    .HelpDetails a:hover {
        color: var(--lg-mint);
    }

    .HelpDetails img {
        filter: brightness(0) invert(1);
    }

.Needhelp {
    margin-bottom: 14px !important;
}

    .Needhelp a {
        display: inline-block;
        padding: 8px 22px;
        border: 0;
        border-radius: 999px;
        background: var(--lg-teal);
        color: #fff !important;
        font-size: 14px;
        font-weight: 700;
        transition: background .15s, color .15s;
    }

        .Needhelp a:hover {
            background: #fff;
            color: var(--lg-navy) !important;
            border: 0;
        }

.copyrightcontent {
    position: static;
    transform: none;
    margin-top: 18px;
}

.copyright,
.bgblue p.copyright {
    margin: 0;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, .75);
}

.copyrightcontent a {
    color: rgba(255, 255, 255, .75) !important;
}

/* ---------------- right: sign-in card ---------------- */
.whitebg {
    position: relative;
    background: #fff;
    border: 1px solid #E6ECF2;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15, 42, 68, .18);
}

    .whitebg img {
        width: 84px !important;
        height: 84px;
        margin-top: -42px;
        padding: 12px;
        object-fit: contain;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 8px 24px rgba(15, 42, 68, .18);
    }

.form {
    background: transparent;
    padding: 4px 28px 18px;
    border-radius: 0;
}

#div_login::before {
    content: "Sign in to your account";
    display: block;
    margin-top: 6px;
    font-size: 21px;
    font-weight: 700;
    color: var(--lg-ink);
    text-align: center;
}

.loginbox {
    margin: 16px 0 0;
}

    .loginbox > span,
    .loginbox span {
        font-family: var(--lg-font);
        font-size: 13px;
        font-weight: 600;
        letter-spacing: .2px;
        color: var(--lg-muted);
    }

    .loginbox > span {
        display: block;
        margin-bottom: 6px;
        text-align: left;
    }

/* input groups (user id / password / OTP) */
.inpgroup.form-control {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 12px;
    border: 1px solid var(--lg-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}

    .inpgroup.form-control:focus-within {
        border-color: var(--lg-teal);
        box-shadow: 0 0 0 3px rgba(23, 179, 197, .18);
    }

.loginbox i {
    margin: 0 10px 0 0;
    color: #8A99A8;
    font-size: 16px;
    line-height: 1;
}

.loginbox input {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    font-family: var(--lg-font);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--lg-ink);
}

    .loginbox input:focus,
    .loginbox input:focus-visible {
        outline: none !important;
        box-shadow: none;
    }

    .loginbox input::placeholder {
        color: #9AA8B5;
        font-weight: 400;
        font-family: var(--lg-font) !important;
        font-size: 14px;
    }

    .loginbox input:-webkit-autofill {
        -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
        -webkit-text-fill-color: var(--lg-ink);
        transition: background-color 9999s ease-out;
    }

/* password field + eye icon */
.showpassword {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    width: auto;
    height: 100%;
}

    .showpassword input {
        padding-right: 30px;
    }

#hide {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

    #hide i {
        margin: 0;
        color: #8A99A8;
        font-size: 16px;
    }

    #hide:hover i {
        color: var(--lg-teal-dark);
    }

/* dropdowns (school / session) */
.loginbox select,
.loginbox select.form-control {
    height: 46px;
    padding: 0 38px 0 14px;
    border: 1px solid var(--lg-line);
    border-radius: 12px;
    box-shadow: none;
    font-family: var(--lg-font) !important;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--lg-ink);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235A6B7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px;
    cursor: pointer;
    text-overflow: ellipsis;
}

    .loginbox select:focus {
        border-color: var(--lg-teal);
        box-shadow: 0 0 0 3px rgba(23, 179, 197, .18);
        outline: none;
    }

/* main button */
.loginbox input.loginbtn,
.loginbtn {
    height: 48px;
    border: 0;
    border-radius: 12px;
    background-color: var(--lg-teal-dark);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .8px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(14, 124, 138, .28);
    transition: background-color .15s, transform .15s, box-shadow .15s;
}

    .loginbox input.loginbtn:hover,
    .loginbtn:hover {
        background-color: var(--lg-navy);
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(15, 42, 68, .3);
    }

    .loginbtn:focus {
        background-color: var(--lg-teal-dark);
        color: #fff;
    }

/* OTP / email-verify buttons */
.form .btn {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    font-family: var(--lg-font);
    font-size: 14px;
    font-weight: 600;
}

.form .btn-success {
    background: var(--lg-teal-dark);
    border: 1.5px solid var(--lg-teal-dark);
    color: #fff;
}

    .form .btn-success:hover {
        background: var(--lg-navy);
        border-color: var(--lg-navy);
    }

.form .btn-danger {
    background: #fff;
    border: 1.5px solid #E3A3A3;
    color: #C23B3B;
}

    .form .btn-danger:hover {
        background: #C23B3B;
        border-color: #C23B3B;
        color: #fff;
    }

/* captcha row */
.login__field .form-control {
    height: 38px;
    border: 1px solid var(--lg-line) !important;
    border-radius: 10px;
    box-shadow: none;
}

/* footer links */
.form p {
    margin: 10px 0 0;
    font-family: var(--lg-font);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--lg-muted);
    text-align: center;
}

    .form p a,
    .policy {
        color: var(--lg-teal-dark) !important;
        font-weight: 600;
        text-decoration: none;
    }

        .form p a:hover {
            text-decoration: underline;
        }

#div_OnlineExam {
    margin-top: 14px;
}

    #div_OnlineExam a {
        display: block;
        padding: 10px;
        border: 1.5px solid #BFD9E0;
        border-radius: 12px;
        background: #F3FAFB;
        font-size: 13.5px;
    }

        #div_OnlineExam a:hover {
            background: #E3F4F7;
            text-decoration: none;
        }

/* ---------------- zoom control ---------------- */
.zoom-control {
    position: fixed;
    bottom: 12px;
    right: 12px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 6px;
    border: 1px solid var(--lg-line);
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 42, 68, .12);
}

    .zoom-control i {
        font-size: 18px;
        color: var(--lg-teal-dark);
    }

.zoom-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: background-color .3s ease;
}

/* ---------------- popups ---------------- */
.modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
}

.modal-header {
    background: var(--lg-navy);
    color: #fff;
    border: 0;
}

    .modal-header .close {
        border: 0;
        background: transparent;
        color: #fff;
        font-size: 26px;
        opacity: .9;
    }

/* ---------------- responsive ---------------- */
@media (min-width: 1024px) {
    .whitebg {
        margin-left: -25%;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .bgblue {
        min-height: 620px;
    }

    .clientlogodetails h3 {
        font-size: 25px;
    }
}

@media (max-width: 991px) {
    .bgblue {
        min-height: auto;
        margin: 0 7px;
        padding: 30px 18px 18px;
    }

    .whitebg {
        margin: 50px 0 20px;
        box-shadow: 0 16px 40px rgba(15, 42, 68, .14);
    }
}

@media (max-width: 575px) {
    .form {
        padding: 4px 18px 16px;
    }

    .clientlogodetails h3 {
        font-size: 21px;
    }

    .HelpDetails p {
        font-size: 14px;
    }
}


/* =====================================================================
   VARIANT D – LIGHT & FRESH  (pale teal hero with navy text, white card, teal top accent)
   ===================================================================== */
.bgblue {
    background: linear-gradient(160deg, #FFFFFF 0%, #E8F6F8 60%, #D3EDF1 125%);
    border: 1px solid #D5EAEE;
    box-shadow: 0 24px 60px rgba(15,42,68,.12);
}

    .bgblue::before {
        background: var(--lg-teal);
        opacity: .14;
    }

    .bgblue::after {
        background: var(--lg-mint);
        opacity: .20;
    }

    .bgblue a {
        color: var(--lg-navy);
    }

    .bgblue i {
        color: var(--lg-teal-dark);
    }

.clientlogodetails img {
    box-shadow: 0 10px 28px rgba(15,42,68,.14);
    border: 1px solid #E3EEF2;
}

.clientlogodetails h3 {
    color: var(--lg-navy);
}

.HelpDetails {
    background: #fff;
    border: 1px solid #D5EAEE;
    box-shadow: 0 8px 24px rgba(15,42,68,.06);
}

    .HelpDetails p {
        color: var(--lg-ink);
    }

    .HelpDetails a:hover {
        color: var(--lg-teal-dark);
    }

    .HelpDetails img {
        filter: brightness(0) opacity(.6);
    }

.Needhelp a {
    background: var(--lg-navy);
    color: #fff !important;
}

    .Needhelp a:hover {
        background: var(--lg-teal);
        color: #fff !important;
    }

.copyright, .bgblue p.copyright, .copyrightcontent a {
    color: var(--lg-muted) !important;
}

.whitebg {
    border-top: 4px solid var(--lg-teal);
    z-index: 1;
}

#div_login::before {
    color: var(--lg-teal-dark);
}

.loginbox input.loginbtn, .loginbtn {
    background-image: linear-gradient(90deg, var(--lg-teal-dark), #129AAB);
}

    .loginbox input.loginbtn:hover, .loginbtn:hover {
        background-color: transparent;
        filter: brightness(.92);
    }

/* =====================================================================
   LEFT PANEL – refined layout (left-aligned, clear hierarchy)
   1) logo + school name in one row   2) big headline   3) short text   4) help box
   ===================================================================== */
.bgblue {
    align-items: stretch;
    text-align: left;
    padding: 34px 40px 22px;
}

/* 1) brand row */
.clientlogodetails {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #CFE6EB;
    text-align: left;
}

    .clientlogodetails img {
        width: auto;
        max-width: 72px;
        max-height: 72px;
        padding: 9px;
        border-radius: 18px;
    }

    .clientlogodetails h3 {
        margin: 0;
        max-width: none;
        font-size: 20px;
        font-weight: 700;
        letter-spacing: .2px;
        line-height: 1.3;
        text-align: left;
        color: var(--lg-navy);
    }

/* 2 + 3) headline and supporting text */
.clientdetails {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 12px 0;
    text-align: left;
}

    .clientdetails h2 {
        max-width: 480px;
        margin: 0 0 14px;
        font-family: var(--lg-font);
        font-size: 36px;
        font-weight: 700;
        line-height: 1.15;
        letter-spacing: -.3px;
        color: var(--lg-navy);
        text-align: left;
        text-wrap: balance;
    }

        .clientdetails h2 span {
            color: var(--lg-teal-dark);
            background: linear-gradient(transparent 62%, rgba(87,242,198,.45) 62%);
        }

    .clientdetails p {
        max-width: 440px;
        margin: 0;
        font-family: var(--lg-font);
        font-size: 16px;
        font-weight: 500;
        line-height: 1.55;
        color: var(--lg-muted);
        text-align: left;
    }

/* 4) help box: left aligned, full width */
.HelpDetails {
    max-width: none;
    padding: 16px 20px 18px;
}

    .HelpDetails p {
        text-align: left;
        margin-bottom: 8px;
    }

.Needhelp {
    margin-bottom: 12px !important;
}

.copyrightcontent {
    text-align: left;
    margin-top: 16px;
}

@media (max-width: 991px) {
    .bgblue {
        padding: 26px 22px 18px;
    }

    .clientdetails h2 {
        font-size: 28px;
    }
}

@media (max-width: 575px) {
    .clientlogodetails h3 {
        font-size: 17px;
    }

    .clientdetails h2 {
        font-size: 24px;
    }

    .clientdetails p {
        font-size: 14.5px;
    }
}


.cs-field {
    width: 100%;
}

.cs-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #4a6272
}

.cs-select {
    width: 100%;
    padding: 13px 44px 13px 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: #0b2a4a;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231a8cf0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center;
    border: 1px solid var(--lg-line);
    border-radius: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s
}

    .cs-select:hover {
        border-color: var(--lg-teal);
    }

    .cs-select:focus {
        outline: none;
        border-color: var(--lg-teal);
        box-shadow: 0 0 0 3px rgba(23, 179, 197, .18);
    }

    .cs-select:has(option[value=""]:checked) {
        color: #7d93a3
    }

    .cs-select option {
        color: #0b2a4a
    }

/* Chrome/Edge 135+: fully styled dropdown list; other browsers ignore this */
@supports (appearance:base-select) {

    .cs-select,
    .cs-select::picker(select) {
        appearance: base-select
    }

        .cs-select::picker-icon {
            display: none
        }

        .cs-select::picker(select) {
            /* list is exactly as wide as the select (long school names wrap instead of widening it) */
            box-sizing: border-box;
            width: anchor-size(width);
            max-height: min(320px, 55vh);
            margin: 6px 0;
            padding: 4px 0;
            /* was overflow:hidden -> last items were cut off and could not be reached */
            overflow-x: hidden;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: #B9CBDA transparent;
            border: 1px solid var(--lg-line);
            border-radius: 12px;
            background: #ffffff;
            box-shadow: 0 14px 32px rgba(11, 42, 74, .14)
        }

        .cs-select option {
            padding: 8px 16px;
            font-size: 14px;
            line-height: 1.35;
            white-space: normal;
            overflow-wrap: anywhere;
            cursor: pointer;
            border-bottom: 1px solid #e6eff3
        }

            .cs-select option:last-child {
                border-bottom: 0
            }

            .cs-select option:hover,
            .cs-select option:checked {
                background: #e3f9f4
            }

            .cs-select option:checked {
                font-weight: 600;
                box-shadow: inset 3px 0 0 #12c9b0
            }

            .cs-select option::checkmark {
                display: none
            }
}
