﻿/* vs_login.css : Default.aspx (User Login) - GIGW 3.0 / DBIM 3.0 friendly */
:root {
    --navy: #0B3F66;
    --blue: #0B5A8E;
    --teal: #0E7490;
    --ink: #1B2E3C;
    --muted: #4F6370;
    --line: #D6E3EA;
    --orange: #E8890C;
    --green: #15803D;
    --purple: #5B3FA8;
    --focus: #FFB000;
    --font: "Noto Sans","Noto Sans Devanagari","Nirmala UI","Mangal","Segoe UI",Arial,sans-serif;
}

* {
    box-sizing: border-box
}

html {
    font-size: 90%
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%
}

    body.mla-page {
        font-family: var(--font);
        font-size: 1rem;
        line-height: 1.55;
        color: var(--ink);
        background: #0b5a7a
    }

a {
    color: var(--blue)
}

    a:focus-visible, button:focus-visible, input:focus-visible {
        outline: 3px solid var(--focus) !important;
        outline-offset: 2px
    }

.skip-link {
    position: fixed;
    left: 12px;
    top: -70px;
    z-index: 9999;
    padding: 10px 16px;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 8px 8px
}

    .skip-link:focus {
        top: 0;
        color: #fff
    }

.mla-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

/* ===== HEADER ===== */
.mla-header {
    position: relative;
    z-index: 5;
    background: #fff;
    box-shadow: 0 3px 14px rgba(0,40,60,.16)
}

    .mla-header:after {
        content: "";
        display: block;
        height: 4px;
        background: linear-gradient(90deg,var(--orange) 0,#f5b942 35%,var(--teal) 36%,var(--blue) 100%)
    }

.mla-header-inner {
    max-width: 1360px;
    margin: auto;
    padding: 8px 24px;
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.mla-brand {
    display: flex;
    align-items: center;
    gap: 14px
}

.mla-logo {
    width: 68px;
    height: 68px;
    object-fit: contain
}

.mla-brand-hi {
    font-size: 1.95rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--navy)
}

.mla-brand-en {
    margin-top: 2px;
    font-size: .95rem;
    font-weight: 700;
    color: #0A5C73
}

.mla-tools {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end
}

.mla-tool {
    min-width: 40px;
    height: 40px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #d5e2e8;
    border-radius: 9px;
    background: #fff;
    color: var(--navy);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,50,70,.12)
}

    .mla-tool:hover {
        background: #F1F7FA;
        border-color: var(--teal)
    }

#btnLanguage:before {
    content: "";
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    background: currentColor;
    -webkit-mask: var(--ic) center/contain no-repeat;
    mask: var(--ic) center/contain no-repeat
}

#btnLanguage {
    --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E")
}

/* ===== HERO (photo + blue overlay) ===== */
.vs-hero {
    position: relative;
    flex: 1;
    overflow: hidden;
    padding: 36px 0;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg,rgba(0,75,104,.80) 0%,rgba(0,83,111,.66) 45%,rgba(0,77,99,.60) 100%),url("../images/vidhansabha-bg.jpg") center/cover no-repeat #0b5a7a
}

    .vs-hero:before {
        content: "";
        position: absolute;
        left: -260px;
        top: -230px;
        width: 620px;
        height: 620px;
        border-radius: 50%;
        background: rgba(255,255,255,.055);
        pointer-events: none
    }

.vs-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1180px;
    margin: auto;
    padding: 0 24px
}

.vs-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) 410px;
    column-gap: 70px;
    align-items: center
}

.hero-info {
    grid-column: 1;
    grid-row: 1;
    max-width: 580px;
    color: #fff
}

.login-card {
    grid-column: 2;
    grid-row: 1
}

.portal-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 5px 14px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 20px;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: .9rem;
    font-weight: 600
}

    .portal-label:before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #fff
    }

.hero-title {
    margin: 0 0 12px;
    font-size: clamp(30px,3.4vw,42px);
    line-height: 1.22;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,.25)
}

.hero-description {
    margin: 0 0 18px;
    max-width: 540px;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #F1F8FB
}

    .hero-description strong {
        color: #fff
    }

.feature-list {
    margin: 0;
    padding: 0;
    list-style: none
}

    .feature-list li {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 10px;
        color: #fff;
        font-size: 1rem;
        line-height: 1.4
    }

.feature-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--blue);
    font-size: 1.15rem
}

/* ===== LOGIN CARD (fixed text size, unaffected by text-size tools) ===== */
.mla-card {
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 14px;
    overflow: hidden;
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    backdrop-filter: blur(12px) saturate(150%);
    box-shadow: 0 16px 40px rgba(0,30,50,.30)
}

.login-head {
    position: relative;
    padding: 14px 20px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg,rgba(11,90,142,.95),rgba(10,79,122,.92) 55%,rgba(11,107,134,.92))
}

    .login-head:after {
        content: "";
        position: absolute;
        right: -30px;
        top: -30px;
        width: 130px;
        height: 130px;
        border: 20px solid rgba(255,255,255,.07);
        border-radius: 50%
    }

.login-title-row {
    display: flex;
    align-items: center;
    gap: 14px
}

.login-icon {
    position: relative;
    overflow: hidden;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%,#ffd56a,#e9a521);
    border: 3px solid rgba(255,255,255,.55);
    box-shadow: 0 4px 10px rgba(0,0,0,.25)
}

.login-ma {
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 9px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1
}

.login-person-mark {
    position: absolute;
    inset: 0
}

    .login-person-mark:before {
        content: "";
        position: absolute;
        left: 50%;
        top: 19px;
        width: 12px;
        height: 12px;
        margin-left: -6px;
        border-radius: 50%;
        background: var(--navy)
    }

    .login-person-mark:after {
        content: "";
        position: absolute;
        left: 50%;
        top: 33px;
        width: 26px;
        height: 20px;
        margin-left: -13px;
        border-radius: 13px 13px 0 0;
        background: var(--navy)
    }

.login-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    color: #fff
}

.login-subtitle {
    margin: 4px 0 0 72px;
    font-size: 13px;
    color: #E6F4FA
}

.login-body {
    padding: 12px 20px 18px
}

.login-message {
    min-height: 0;
    margin: 0
}

    .login-message .heading1New {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
        padding: 8px 12px;
        border-radius: 8px;
        background: #FDECEA;
        border: 1px solid #F3B9B3;
        border-left: 4px solid #D92D20;
        color: #912018;
        font-size: 13px;
        font-weight: 600
    }

        .login-message .heading1New:empty {
            display: none
        }

        .login-message .heading1New:before {
            content: "!";
            flex: 0 0 22px;
            height: 22px;
            border-radius: 50%;
            background: #D92D20;
            color: #fff;
            font-size: 12px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center
        }

    .login-message .msg-success {
        background: #E8F5EC;
        border-color: #B7DEC2;
        border-left-color: #16A34A;
        color: #14532D
    }

        .login-message .msg-success:before {
            content: "\2713";
            background: #16A34A
        }

.mla-field {
    margin-bottom: 10px
}

.mla-label {
    display: flex;
    gap: 4px;
    margin: 0 0 3px;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy)
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.forgot-link {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--blue);
    text-decoration: underline
}

.text-danger {
    color: #C21807 !important
}

.input-wrap {
    position: relative
}

.input-icon {
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    bottom: 0;
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #9fb4bf;
    border-right: 0;
    border-radius: 9px 0 0 9px;
    background: #fff;
    color: var(--blue);
    font-size: 1.15rem;
    pointer-events: none
}

.mla-input {
    width: 100%;
    height: 42px;
    padding: 8px 14px;
    border: 1px solid #9fb4bf;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 14px
}

.input-wrap .mla-input {
    padding-left: 52px
}

.mla-input::placeholder {
    color: #5f7480
}

.mla-input:hover {
    border-color: var(--teal)
}

.mla-input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(14,116,144,.16)
}

.help-text {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--muted)
}

.validation-text {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #B42318
}

.captcha-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1fr) 120px;
    gap: 8px;
    align-items: center
}

.captcha-image {
    width: 120px !important;
    height: 40px !important;
    object-fit: contain;
    border: 1px solid #9fb4bf;
    border-radius: 8px;
    background: #f7fafb
}

.captcha-loading {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%)
}

.login-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px
}

.login-btn {
    height: 42px;
    border: 0;
    border-radius: 9px;
    color: #fff !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(0,50,80,.2)
}

.login-btn-primary {
    background: linear-gradient(180deg,#0E5E96,#0B4A7C)
}

.login-btn:hover {
    filter: brightness(1.08)
}

.login-note {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding: 8px 10px;
    border: 1px solid #BFDDEA;
    border-radius: 9px;
    background: #EFF8FC;
    color: #274b5e;
    font-size: 12.5px;
    line-height: 1.5
}

    .login-note i {
        color: var(--navy);
        font-size: 1.25rem
    }

/* ===== FOOTER ===== */
.mla-footer {
    background: var(--navy);
    color: #fff;
    padding: 14px 0 12px;
    font-size: .85rem
}

.footer-links {
    max-width: 1180px;
    margin: auto;
    padding: 0 24px 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    font-size: .9rem
}

    .footer-links a {
        color: #fff;
        text-decoration: underline
    }

.footer-inner {
    max-width: 1180px;
    margin: auto;
    padding: 0 24px;
    color: #DCE8F3
}

/* ===== LANGUAGE (JS toggles body.lang-en) ===== */
body.mla-page .lang-en {
    display: none !important
}

    body.mla-page.lang-en .lang-hi {
        display: none !important
    }

    body.mla-page.lang-en .lang-en {
        display: inline !important
    }

/* ===== ACCESSIBILITY TOOLS DROPDOWN (no inner scroll) ===== */
.mla-tools {
    align-items: center
}

#btnA11yTools i {
    font-size: 1.25rem
}

.a11y-wrap {
    position: relative
}

.a11y-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 100;
    width: 372px;
    max-width: calc(100vw - 24px);
    padding: 14px 16px 16px;
    background: #fff;
    border: 1px solid #d6e3ea;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0,35,55,.28);
    overflow: visible;
    color: var(--navy)
}

    .a11y-panel[hidden] {
        display: none
    }

.a11y-title {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px
}

.a11y-sec {
    margin: 10px 0 6px;
    font-size: .9rem;
    font-weight: 600;
    color: #222
}

.a11y-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px
}

.a11y-tile {
    position: relative;
    min-height: 74px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #c9d3d8;
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
    font-size: .78rem;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    font-family: inherit
}

    .a11y-tile:hover {
        background: #F1F7FA;
        border-color: var(--teal)
    }

.a11y-ico {
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 600
}

.a11y-tile.active {
    border-color: #16A34A
}

    .a11y-tile.active:after {
        content: "\2713";
        position: absolute;
        top: -6px;
        right: -6px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #16A34A;
        color: #fff;
        font-size: .7rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center
    }

/* ===== MODES ===== */
html.a11y-invert {
    filter: invert(1) hue-rotate(180deg)
}

html.a11y-sat {
    filter: saturate(.25)
}

html.a11y-invert.a11y-sat {
    filter: invert(1) hue-rotate(180deg) saturate(.25)
}

body.a11y-links a {
    background: #FFF59D !important;
    color: #000 !important;
    text-decoration: underline !important;
    outline: 2px solid #000
}

body.a11y-spacing, body.a11y-spacing * {
    letter-spacing: .06em !important;
    word-spacing: .16em !important
}

body.a11y-lh, body.a11y-lh * {
    line-height: 1.9 !important
}

body.a11y-cursor, body.a11y-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath d='M3 2l7 19 3-8 8-3z' fill='black' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E") 4 2,auto !important
}

body.a11y-noimg {
    background-image: none !important;
    background-color: #fff !important
}

    body.a11y-noimg .mla-header, body.a11y-noimg .session-banner {
        background-image: none !important
    }

    body.a11y-noimg img:not(.captcha-image) {
        visibility: hidden
    }

@media(max-width:640px) {
    #btnA11yTools .lang-hi, #btnA11yTools .lang-en {
        display: none !important
    }

    .a11y-panel {
        right: -8px;
        width: calc(100vw - 20px)
    }
}

/* ===== FINAL: A11Y TILES ===== */
.a11y-tile {
    position: relative;
    border-radius: 8px;
    justify-content: flex-start;
    padding-top: 10px
}

.a11y-ico {
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center
}

.a11y-tile.active:after {
    top: -6px;
    right: -6px
}


/* ===== HIGH CONTRAST ===== */
body.high-contrast {
    --navy: #00233d;
    --blue: #00406b;
    --teal: #00566b;
    --muted: #000;
    --ink: #000
}

    body.high-contrast .mla-card {
        background: #fff;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        border: 2px solid #000
    }

    body.high-contrast .mla-input {
        border: 2px solid #000
    }

/* ===== RESPONSIVE ===== */
@media(max-width:950px) {
    .vs-grid {
        grid-template-columns: 1fr;
        row-gap: 28px
    }

    .login-card {
        grid-column: 1;
        grid-row: 1;
        max-width: 500px;
        width: 100%;
        margin: auto
    }

    .hero-info {
        grid-column: 1;
        grid-row: 2;
        max-width: 500px;
        margin: auto
    }

    .mla-header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 16px
    }

    .mla-tools {
        justify-content: flex-start
    }
}

@media(max-width:640px) {
    .mla-logo {
        width: 50px;
        height: 50px
    }

    .mla-brand-hi {
        font-size: 1.4rem
    }

    .mla-brand-en {
        font-size: .8rem
    }

    .vs-hero {
        padding: 22px 0
    }

    .vs-hero-inner {
        padding: 0 14px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition: none !important;
        animation: none !important
    }
}
