﻿/* ══════════════════════════════════════════════════
   TPMS — index.css  (Login Page)
   ══════════════════════════════════════════════════ */

:root {
    --india-blue: #114F8E;
    --india-blue-dk: #0B3E7A;
    --india-blue-lt: #EAF1FA;
    --ashoka: #3057A8;
    --saffron: #FF6B00;
    --green: #0C6B35;
    --border: #C8D8EC;
    --text-dark: #0D1B2A;
    --text-mid: #5D6D7E;
    --text-soft: #8FA3BB;
    --danger: #C0392B;
    --success: #0C6B35;
    --font-display: 'Rajdhani', sans-serif;
    --font-body: 'Noto Sans', sans-serif;
    /* ── Single shared panel gradient ── */
    --panel-bg: linear-gradient(155deg, #071E3D 0%, #0A3568 40%, #114F8E 75%, #1560A0 100%);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-dark);
    background: #071E3D;
    overflow: hidden;
}

/* ══════════════════════════════════
   FORM = FULL PAGE FLEX CONTAINER
   ══════════════════════════════════ */
#form1 {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* ══════════════════════════════════
   LEFT PANEL — branding
   ══════════════════════════════════ */
.left-panel {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 36px 40px;
    position: relative;
    background: var(--panel-bg);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .left-panel::-webkit-scrollbar {
        display: none;
    }

    /* tricolor left bar */
    .left-panel .lp-tribar {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 5px;
        
    }

    .left-panel::before {
        content: '';
        position: absolute;
        top: -100px;
        right: -100px;
        width: 360px;
        height: 360px;
        border-radius: 50%;
        border: 70px solid rgba(255,255,255,0.04);
        pointer-events: none;
    }

    .left-panel::after {
        content: '';
        position: absolute;
        bottom: -80px;
        left: -80px;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        border: 55px solid rgba(255,107,0,0.07);
        pointer-events: none;
    }

.lp-top {
    position: relative;
    z-index: 1;
}

.lp-gov-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(168,203,238,0.70);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .lp-gov-label::before {
        content: '';
        display: inline-block;
        width: 22px;
        height: 2px;
        background: var(--saffron);
        border-radius: 2px;
    }

.lp-emblem {
    width: 58px;
    height: 58px;
    background: rgba(255,255,255,0.09);
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    margin-bottom: 16px;
}

.lp-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

    .lp-title span {
        color: #FFB347;
    }

.lp-subtitle {
    font-size: 12.5px;
    color: rgba(144,186,216,0.80);
    line-height: 1.6;
   
    margin-bottom: 24px;
}

.lp-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.lp-stat {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    padding: 12px 10px;
    text-align: center;
}

.lp-stat-num {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: #FFB347;
    line-height: 1;
    margin-bottom: 4px;
}

.lp-stat-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(144,186,216,0.75);
}

.lp-features {
    list-style: none;
    position: relative;
    z-index: 1;
}

    .lp-features li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        color: rgba(190,215,235,0.88);
        font-size: 12px;
        line-height: 1.4;
    }

        .lp-features li:last-child {
            border-bottom: none;
        }

.lp-feat-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 6px;
    background: rgba(255,107,0,0.14);
    border: 1px solid rgba(255,107,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF8C3A;
    font-size: 12px;
    margin-top: 1px;
}

.lp-feat-text strong {
    display: block;
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 1px;
}

.lp-bottom {
    border-top: 1px solid rgba(255,255,255,0.09);
    padding-top: 18px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.lp-ministry {
    font-size: 10px;
    color: rgba(144,186,216,0.55);
    line-height: 1.85;
}

    .lp-ministry strong {
        color: rgba(144,186,216,0.80);
    }

.lp-dots {
    display: flex;
    gap: 7px;
    margin-top: 12px;
    justify-content: center;
}

.lp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

    .lp-dot.s {
        background: #FF6B00;
    }

    .lp-dot.w {
        background: rgba(255,255,255,0.50);
    }

    .lp-dot.g {
        background: #0C6B35;
    }

/* ══════════════════════════════════
   RIGHT PANEL — login form
   ══════════════════════════════════ */
.right-panel {
    flex: 0 0 460px;
    width: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    /* ── Same gradient as left panel ── */
    background: var(--panel-bg);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .right-panel::-webkit-scrollbar {
        display: none;
    }

    .right-panel .deco-circle-bottom {
        position: absolute;
        bottom: -80px;
        left: -80px;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255,107,0,0.07) 0%, transparent 70%);
        pointer-events: none;
    }

/* tricolor stripe */
.tricolor-top {
    width: 100%;
    height: 5px;
    border-radius: 0;
   /* background: linear-gradient(90deg, #FF6B00 0%, #FF6B00 33.3%, #FFFFFF 33.3%, #FFFFFF 66.6%, #0C6B35 66.6%, #0C6B35 100%);*/
    position: relative;
    z-index: 1;
    animation: cardIn .4s ease both;
    flex-shrink: 0;
}

/* GOI header bar */
.goi-bar {
    width: 100%;
    /* ── Matches panel bg so it blends seamlessly ── */
    background: transparent;
    padding: 6px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    animation: cardIn .4s ease both;
    flex-shrink: 0;
}

    .goi-bar span {
        font-size: 7px;
        font-weight: 600;
        color: #A8CBEE;
        letter-spacing: 0.10em;
        text-transform: uppercase;
    }

.goi-dots {
    display: flex;
    gap: 5px;
}

.goi-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
}

    .goi-dot.saffron {
        background: #FF6B00;
    }

    .goi-dot.white {
        background: rgba(255,255,255,0.8);
    }

    .goi-dot.green {
        background: #0C6B35;
    }

/* ══ LOGIN CARD ══ */
.login-card {
    width: 100%;
    flex: 1;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    position: relative;
    z-index: 1;
    animation: cardIn .4s ease both;
    display: flex;
    flex-direction: column;
}

/* card header */
.card-header-gov {
    /* ── Matches panel gradient so header blends with right panel bg ── */
    background: var(--panel-bg);
    border-bottom: 3px solid var(--saffron);
    padding: 28px 24px 22px;
    text-align: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

    .card-header-gov::before {
        content: '';
        position: absolute;
        top: -40px;
        right: -40px;
        width: 140px;
        height: 140px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    }

.emblem-ring {
    width: 52px;
    height: 52px;
    background: #fff;
    border: 2px solid rgba(200,147,26,0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: -12px auto 5px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.20);
    position: relative;
    z-index: 1;
}

.org-tag {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #FFB347;
    margin-bottom: 2px;
    position: relative;
    z-index: 1;
}

.sys-title {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 2px;
    letter-spacing: 0.03em;
    position: relative;
    z-index: 1;
}

.sys-sub {
    font-size: 10.5px;
    color: #90BAD8;
    position: relative;
    z-index: 1;
}

/* card body */
.card-body-gov {
    padding: 28px 32px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .card-body-gov .mb-3 {
        margin-bottom: 9px !important;
    }

.section-sep {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

    .section-sep::before,
    .section-sep::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

    .section-sep span {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--text-soft);
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 5px;
    }

.field-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 4px;
    display: block;
}

.input-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--border);
    border-radius: 5px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
    background: #FAFCFF;
}

    .input-wrap:focus-within {
        border-color: var(--india-blue);
        box-shadow: 0 0 0 3px rgba(17,79,142,0.11);
        background: #fff;
    }

.input-icon {
    width: 38px;
    background: #EEF3FA;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--india-blue);
    font-size: 14px;
    border-right: 1.5px solid var(--border);
    flex-shrink: 0;
    transition: background .2s;
}

.input-wrap:focus-within .input-icon {
    background: var(--india-blue-lt);
}

.input-wrap input,
input[type="text"].asp-input,
input[type="password"].asp-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13.5px;
    color: var(--text-dark);
    padding: 9px 11px;
    font-family: var(--font-body);
    width: 100%;
}

    .input-wrap input::placeholder {
        color: var(--text-soft);
        font-size: 12.5px;
    }

.input-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 10px;
    color: var(--text-soft);
    transition: color .15s;
}

    .input-toggle:hover {
        color: var(--india-blue);
    }

.login-extras {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 10px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--text-mid);
    cursor: pointer;
}

    .remember-label input[type=checkbox] {
        accent-color: var(--india-blue);
        width: 13px;
        height: 13px;
    }

.forgot-link {
    font-size: 12px;
    color: var(--india-blue);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color .15s;
}

    .forgot-link:hover {
        color: var(--saffron);
    }

.btn-login-gov {
    width: 100%;
    background: linear-gradient(135deg, var(--india-blue-dk) 0%, var(--india-blue) 50%, var(--ashoka) 100%);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .2s;
    box-shadow: 0 4px 14px rgba(17,79,142,0.26);
}

    .btn-login-gov:hover {
        background: linear-gradient(135deg, var(--ashoka) 0%, #0C2F72 100%);
        box-shadow: 0 6px 20px rgba(17,79,142,0.34);
        transform: translateY(-1px);
    }

    .btn-login-gov:active {
        transform: translateY(0);
    }

.card-foot-gov {
    background: #F4F8FF;
    border-top: 1px solid var(--border);
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

    .card-foot-gov span {
        font-size: 11px;
        color: var(--text-soft);
        display: flex;
        align-items: center;
        gap: 5px;
    }

        .card-foot-gov span i {
            color: var(--india-blue);
        }

.alert-gov-error {
    background: #FDF2F2;
    border-left: 4px solid var(--danger);
    border-radius: 5px;
    color: var(--danger);
    padding: 8px 12px;
    font-size: 12.5px;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-gov-success {
    background: #F0FDF4;
    border-left: 4px solid var(--success);
    border-radius: 5px;
    color: var(--success);
    padding: 8px 12px;
    font-size: 12.5px;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* desktop me mobile elements hidden */
.mobile-brand,
.mobile-stats,
.page-footer {
    display: none;
}

/* ══════════════════════════════════
   MODAL
   ══════════════════════════════════ */
.gov-modal .modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(17,79,142,0.22);
}

.gov-modal .modal-header {
    background: var(--panel-bg);
    border-bottom: 3px solid var(--saffron);
    padding: 14px 20px;
}

.gov-modal .modal-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 9px;
    letter-spacing: 0.04em;
}

    .gov-modal .modal-title i {
        color: #FFD080;
    }

.gov-modal .modal-body {
    padding: 20px 24px;
    background: #F7FAFF;
}

.gov-modal .modal-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 10px 20px;
}

.modal-field-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--border);
    border-radius: 5px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
    background: #FAFCFF;
}

    .modal-field-wrap:focus-within {
        border-color: var(--india-blue);
        box-shadow: 0 0 0 3px rgba(17,79,142,0.12);
    }

.modal-field-icon {
    width: 40px;
    background: #EEF3FA;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--india-blue);
    font-size: 14px;
    border-right: 1.5px solid var(--border);
    flex-shrink: 0;
}

.modal-field-wrap input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-dark);
    padding: 10px 14px;
    font-family: var(--font-body);
}

/* ══════════════════════════════════
   ANIMATION
   ══════════════════════════════════ */
@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ══════════════════════════════════════════════════
   MOBILE  ≤ 899px
   ══════════════════════════════════════════════════ */
@media (max-width: 899px) {

    html, body {
        overflow: hidden;
        background: var(--panel-bg);
    }

    #form1 {
        flex-direction: column;
        align-items: stretch;
        height: 100vh;
        overflow: hidden;
        padding: 0;
    }

    .left-panel {
        display: none !important;
    }

    .right-panel {
        flex: 1;
        width: 100%;
        max-width: 100%;
        padding: 0;
        justify-content: flex-start;
        background: transparent;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

        .right-panel::-webkit-scrollbar {
            display: none;
        }

        .right-panel .deco-circle-bottom {
            display: block;
            position: fixed;
            bottom: -60px;
            right: -60px;
            left: auto;
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, rgba(255,107,0,0.08) 0%, transparent 70%);
        }

    .tricolor-top {
        height: 4px;
    }

    .goi-bar {
        padding: 7px 16px;
        background: transparent;
    }

        .goi-bar span {
            font-size: 6.5px;
        }

    /* MOBILE BRAND STRIP */
    .mobile-brand {
        display: flex !important;
        align-items: center;
        gap: 14px;
        padding: 16px 18px 14px;
        background: rgba(255,255,255,0.05);
        border-bottom: 1px solid rgba(255,255,255,0.09);
        position: relative;
        z-index: 1;
        flex-shrink: 0;
    }

    .mobile-brand-emblem {
        width: 44px;
        height: 44px;
        background: rgba(255,255,255,0.10);
        border: 1.5px solid rgba(255,255,255,0.22);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 19px;
        flex-shrink: 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.20);
    }

    .mobile-brand-text {
        flex: 1;
        min-width: 0;
    }

    .mobile-brand-title {
        font-family: var(--font-display);
        font-size: 16px;
        font-weight: 700;
        color: #fff;
        line-height: 1.15;
        letter-spacing: 0.02em;
    }

        .mobile-brand-title span {
            color: #FFB347;
        }

    .mobile-brand-sub {
        font-size: 9.5px;
        color: rgba(144,186,216,0.72);
        margin-top: 2px;
    }

    /* MOBILE STATS STRIP */
    .mobile-stats {
        display: flex !important;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        flex-shrink: 0;
        position: relative;
        z-index: 1;
    }

    .mobile-stat-item {
        flex: 1;
        text-align: center;
        padding: 9px 4px;
        border-right: 1px solid rgba(255,255,255,0.08);
        background: rgba(255,255,255,0.03);
    }

        .mobile-stat-item:last-child {
            border-right: none;
        }

    .mobile-stat-num {
        font-family: var(--font-display);
        font-size: 17px;
        font-weight: 700;
        color: #FFB347;
        line-height: 1;
    }

    .mobile-stat-label {
        font-size: 7.5px;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: rgba(144,186,216,0.65);
        margin-top: 2px;
    }

    .login-card {
        flex: 1;
        border-radius: 0;
        border: none;
        box-shadow: none;
        min-height: 0;
    }

    .card-header-gov {
        padding: 18px 18px 14px;
    }

    .emblem-ring {
        width: 44px;
        height: 44px;
        font-size: 18px;
        margin: -10px auto 4px;
    }

    .org-tag {
        font-size: 7.5px;
        letter-spacing: 0.10em;
    }

    .sys-title {
        font-size: 17px;
    }

    .sys-sub {
        font-size: 10px;
    }

    .card-body-gov {
        padding: 20px 18px 18px;
        flex: 1;
        justify-content: center;
    }

        .card-body-gov .mb-3 {
            margin-bottom: 10px !important;
        }

    .card-foot-gov {
        padding: 10px 18px;
    }

    /* MOBILE FOOTER */
    .page-footer {
        display: block;
        padding: 11px 18px 14px;
        text-align: center;
        font-size: 9.5px;
        color: rgba(144,186,216,0.50);
        line-height: 1.85;
        background: rgba(255,255,255,0.03);
        border-top: 1px solid rgba(255,255,255,0.07);
        flex-shrink: 0;
        position: relative;
        z-index: 1;
    }

        .page-footer strong {
            color: rgba(144,186,216,0.75);
        }
}

/* ══════════════════════════════════
   EXTRA SMALL  ≤ 400px
   ══════════════════════════════════ */
@media (max-width: 400px) {
    .goi-bar span {
        font-size: 5.5px;
        letter-spacing: 0.04em;
    }

    .sys-title {
        font-size: 15px;
    }

    .org-tag {
        font-size: 7px;
    }

    .mobile-brand-title {
        font-size: 14px;
    }

    .mobile-brand-sub {
        font-size: 8.5px;
    }

    .card-body-gov {
        padding: 16px 14px 14px;
    }
}
