* {
    box-sizing: border-box;
}

:root {
    --green: #17653d;
    --green-dark: #0f4d2f;
    --green-light: #e9f5ee;
    --gold: #c79538;
    --text: #1c2b25;
    --muted: #738078;
    --border: #dfe7e2;
    --white: #ffffff;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Noto Sans Devanagari", "Nirmala UI", "Mangal", "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: #f4f7f5;
}

.login-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
}

.map-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(245, 248, 246, .95) 0%,
            rgba(245, 248, 246, .86) 45%,
            rgba(245, 248, 246, .72) 100%),
        url("assets/cmmap.jpg") center / cover no-repeat;
    opacity: .24;
    transform: scale(1.04);
}

.login-shell {
    position: relative;
    z-index: 1;
    width: min(1080px, 100%);
    min-height: 650px;
    display: grid;
    grid-template-columns: 46% 54%;
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(24, 61, 43, .18);
}

.welcome-panel {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background:
        linear-gradient(150deg, rgba(10, 75, 44, .97), rgba(23, 101, 61, .89));
}

.welcome-panel::after {
    content: "";
    position: absolute;
    inset: auto -80px -130px auto;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    box-shadow:
        0 0 0 45px rgba(255,255,255,.035),
        0 0 0 90px rgba(255,255,255,.025);
}

.welcome-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(255,255,255,.06),
            transparent 35%,
            rgba(0,0,0,.16));
}

.welcome-content {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 650px;
    padding: 38px 42px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
}

.state-logo {
    width: 86px;
    height: 86px;
    object-fit: contain;
    background: rgba(255,255,255,.96);
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.government-title {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.government-title span {
    font-family: "Noto Serif Devanagari", "Nirmala UI", "Mangal", serif;
    font-size: 22px;
    font-weight: 700;
}

.government-title small {
    font-size: 11px;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    opacity: .78;
}

.leader-wrap {
    width: 215px;
    height: 215px;
    margin-top: 18px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255,255,255,.9);
    box-shadow: 0 18px 38px rgba(0,0,0,.22);
    background: #f8f3e8;
}

.leader-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.welcome-content h1 {
    margin: 20px 0 8px;
    font-size: 25px;
    line-height: 1.2;
}

.welcome-content > p {
    max-width: 370px;
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255,255,255,.84);
}

.welcome-line {
    width: 58px;
    height: 3px;
    margin: 17px 0 12px;
    border-radius: 10px;
    background: #d7aa51;
}

.portal-label {
    font-size: 9px;
    letter-spacing: 2px;
    opacity: .68;
}

.login-panel {
    background: rgba(255,255,255,.98);
    display: flex;
    align-items: center;
}

.login-content {
    width: min(410px, 100%);
    margin: auto;
    padding: 48px 54px;
}

.mobile-logo {
    display: none;
}

.login-kicker {
    display: inline-block;
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.login-content h2 {
    margin: 0;
    font-size: 34px;
    letter-spacing: -.7px;
}

.login-subtitle {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    margin: 9px 0 29px;
}

.form-group {
    margin-bottom: 19px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    color: #84928a;
}

.input-icon svg,
.password-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.input-wrap input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    padding: 0 45px;
    color: var(--text);
    background: #fbfcfb;
    font-size: 13px;
    transition: .2s ease;
}

.input-wrap input:focus {
    border-color: var(--green);
    background: white;
    box-shadow: 0 0 0 3px rgba(23,101,61,.08);
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    padding: 6px;
    background: transparent;
    color: #84928a;
    cursor: pointer;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 3px 0 23px;
    font-size: 11px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #69766f;
    cursor: pointer;
}

.remember input {
    accent-color: var(--green);
}

.form-options a {
    color: var(--green);
    text-decoration: none;
    font-weight: 700;
}

.form-options a:hover {
    text-decoration: underline;
}

.login-button {
    width: 100%;
    height: 49px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 9px 20px rgba(23,101,61,.18);
    transition: transform .18s ease, box-shadow .18s ease;
}

.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(23,101,61,.24);
}

.login-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 23px;
    color: #89948e;
    font-size: 10px;
}

.security-note svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: var(--green);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-footer {
    margin-top: 31px;
    padding-top: 18px;
    border-top: 1px solid #edf0ee;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #9aa39e;
    font-size: 9px;
}

@media (max-width: 900px) {
    .login-page {
        padding: 18px;
    }

    .login-shell {
        grid-template-columns: 42% 58%;
    }

    .welcome-content {
        padding-left: 25px;
        padding-right: 25px;
    }

    .leader-wrap {
        width: 175px;
        height: 175px;
    }

    .login-content {
        padding: 42px;
    }
}

@media (max-width: 700px) {
    .login-page {
        padding: 0;
        align-items: stretch;
    }

    .map-bg {
        opacity: .14;
    }

    .login-shell {
        min-height: 100vh;
        grid-template-columns: 1fr;
        border-radius: 0;
        box-shadow: none;
    }

    .welcome-panel {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
        align-items: flex-start;
    }

    .login-content {
        width: 100%;
        max-width: 480px;
        padding: 45px 28px 28px;
    }

    .mobile-logo {
        display: block;
        text-align: center;
        margin-bottom: 24px;
    }

    .mobile-logo img {
        width: 78px;
        height: 78px;
        object-fit: contain;
    }

    .login-content h2 {
        font-size: 31px;
    }
}

@media (max-width: 380px) {
    .login-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .login-footer {
        flex-direction: column;
        text-align: center;
    }
}
