/* =========================================================
   MAHARASHTRA STATE POLICE
   PROMOTION PORTAL - PROFESSIONAL LOGIN
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    background: #f1f5f9;
    color: #172033;

    -webkit-font-smoothing: antialiased;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.login-page {
    display: grid;

    grid-template-columns:
        minmax(430px, 48%)
        minmax(520px, 52%);

    width: 100%;
    min-height: 100vh;
}


/* =========================================================
   LEFT VISUAL AREA
========================================================= */

.login-visual {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100vh;

    padding: 60px 50px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 18% 15%,
            rgba(255, 255, 255, 0.09),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 85%,
            rgba(37, 99, 235, 0.16),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #071b34 0%,
            #0b2848 48%,
            #102f54 100%
        );

    color: #ffffff;
}


/* subtle background effect */

.login-visual::before {
    content: "";

    position: absolute;

    width: 440px;
    height: 440px;

    left: -220px;
    bottom: -190px;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}


.login-visual::after {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    top: -120px;
    right: -110px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}


/* =========================================================
   CENTER CONTENT
========================================================= */

.visual-inner {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 650px;

    margin: auto;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;
}


/* =========================================================
   POLICE LOGO
========================================================= */

.logo-wrap {
    width: 154px;
    height: 154px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 28px auto;

    padding: 9px;

    border-radius: 50%;

    background: #ffffff;

    border: 4px solid rgba(255, 255, 255, 0.32);

    box-shadow:
        0 14px 38px rgba(0, 0, 0, 0.25),
        0 0 0 7px rgba(255, 255, 255, 0.06);
}


.visual-logo {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0 auto;

    object-fit: contain;

    border-radius: 50%;
}


/* =========================================================
   PORTAL TEXT
========================================================= */

.visual-kicker {
    margin-bottom: 7px;

    font-size: 23px;
    font-weight: 600;

    line-height: 1.35;

    letter-spacing: 0.4px;

    color: #dce8f5;
}


.visual-title {
    margin-bottom: 17px;

    font-size: 42px;
    font-weight: 720;

    line-height: 1.16;

    letter-spacing: -0.7px;

    color: #ffffff;
}


.visual-divider {
    width: 64px;
    height: 3px;

    margin: 2px auto 20px auto;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.45);
}


.visual-copy {
    width: 100%;
    max-width: 570px;

    margin: 0 auto;

    font-size: 18px;
    font-weight: 400;

    line-height: 1.72;

    color: #cbd8e6;
}


/* =========================================================
   FEATURES
========================================================= */

.portal-features {
    display: grid;

    grid-template-columns: 1fr;

    gap: 11px;

    width: 100%;
    max-width: 500px;

    margin-top: 37px;
}


.feature-item {
    display: flex;

    align-items: center;

    gap: 14px;

    padding: 13px 17px;

    text-align: left;

    border: 1px solid rgba(255, 255, 255, 0.09);

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.055);
}


.feature-icon {
    flex: 0 0 auto;

    width: 31px;
    height: 31px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);

    font-size: 14px;
    font-weight: 700;

    color: #ffffff;
}


.feature-text {
    display: flex;

    flex-direction: column;

    gap: 2px;
}


.feature-text strong {
    font-size: 14px;
    font-weight: 600;

    color: #ffffff;
}


.feature-text span {
    font-size: 12.5px;

    color: #b9c8d7;
}


/* =========================================================
   RIGHT LOGIN AREA
========================================================= */

.login-side {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 100vh;

    padding: 45px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(30, 64, 175, 0.04),
            transparent 28%
        ),
        #f3f6fa;
}


.login-wrap {
    width: 100%;

    max-width: 470px;
}


/* =========================================================
   LOGIN CARD
========================================================= */

.login-card {
    width: 100%;

    padding: 40px 40px 34px;

    border: 1px solid #dde4ed;

    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 20px 45px rgba(15, 23, 42, 0.08);
}


/* =========================================================
   CARD HEADING
========================================================= */

.login-card-header {
    margin-bottom: 30px;
}


.secure-icon {
    width: 49px;
    height: 49px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 12px;

    background: #e9f0f8;

    color: #123c67;
}


.brand h1 {
    margin: 0 0 8px;

    font-size: 29px;
    font-weight: 700;

    line-height: 1.25;

    letter-spacing: -0.3px;

    color: #13263c;
}


.brand p {
    max-width: 360px;

    font-size: 14px;

    line-height: 1.6;

    color: #6a7787;
}


/* =========================================================
   ALERT MESSAGES
========================================================= */

.msg {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    width: 100%;

    margin-bottom: 20px;

    padding: 12px 14px;

    border-radius: 8px;

    font-size: 13.5px;

    line-height: 1.5;
}


.msg-icon {
    flex: 0 0 auto;

    width: 21px;
    height: 21px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-top: 1px;

    border-radius: 50%;

    font-size: 12px;
    font-weight: 700;
}


.msg-error {
    border: 1px solid #fecaca;

    background: #fef2f2;

    color: #991b1b;
}


.msg-error .msg-icon {
    background: #fee2e2;

    color: #b91c1c;
}


.msg-success {
    border: 1px solid #bbf7d0;

    background: #f0fdf4;

    color: #166534;
}


.msg-success .msg-icon {
    background: #dcfce7;

    color: #15803d;
}


/* =========================================================
   FORM
========================================================= */

.form-group {
    margin-bottom: 23px;
}


.form-group label {
    display: block;

    margin-bottom: 9px;

    font-size: 13.5px;
    font-weight: 600;

    color: #29394d;
}


.input-box {
    display: flex;

    align-items: center;

    width: 100%;

    height: 52px;

    overflow: hidden;

    border: 1px solid #cfd8e4;

    border-radius: 9px;

    background: #ffffff;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.input-box:focus-within {
    border-color: #24598c;

    box-shadow:
        0 0 0 3px rgba(36, 89, 140, 0.11);
}


.prefix {
    height: 100%;

    display: flex;

    align-items: center;

    padding: 0 14px;

    border-right: 1px solid #dde4ec;

    background: #f6f8fa;

    font-size: 14px;
    font-weight: 600;

    color: #4d5c6e;
}


.input-box input {
    flex: 1;

    width: 100%;

    height: 100%;

    padding: 0 15px;

    border: 0;

    outline: 0;

    background: transparent;

    font-size: 15px;

    letter-spacing: 0.25px;

    color: #172033;
}


.input-box input::placeholder {
    color: #9aa5b2;
}


.input-help {
    margin-top: 7px;

    font-size: 12px;

    line-height: 1.5;

    color: #8490a0;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.btn {
    width: 100%;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 11px;

    padding: 0 18px;

    border: 0;

    border-radius: 9px;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #123c67,
            #1d527f
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 14.5px;
    font-weight: 600;

    letter-spacing: 0.1px;

    box-shadow:
        0 8px 18px rgba(18, 60, 103, 0.17);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}


.btn:hover {
    transform: translateY(-1px);

    background:
        linear-gradient(
            135deg,
            #0d345b,
            #17466f
        );

    box-shadow:
        0 10px 22px rgba(18, 60, 103, 0.22);
}


.btn:active {
    transform: translateY(0);
}


.btn:disabled {
    cursor: not-allowed;

    transform: none;

    opacity: 0.72;
}


.btn-arrow {
    margin-top: -1px;

    font-size: 19px;
    font-weight: 400;
}


/* =========================================================
   LOADING SPINNER
========================================================= */

.loading-spinner {
    width: 17px;
    height: 17px;

    border: 2px solid rgba(255, 255, 255, 0.38);

    border-top-color: #ffffff;

    border-radius: 50%;

    animation: spin 0.75s linear infinite;
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   SECURITY NOTE
========================================================= */

.security-note {
    display: flex;

    align-items: flex-start;

    gap: 11px;

    margin-top: 25px;

    padding: 13px 14px;

    border: 1px solid #e1e7ee;

    border-radius: 9px;

    background: #f8fafc;
}


.security-note-icon {
    flex: 0 0 auto;

    width: 23px;
    height: 23px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-top: 1px;

    border-radius: 50%;

    background: #e5edf6;

    font-size: 12px;
    font-weight: 700;

    color: #284f75;
}


.security-note strong {
    display: block;

    margin-bottom: 3px;

    font-size: 12.5px;
    font-weight: 600;

    color: #3a4b5e;
}


.security-note p {
    margin: 0;

    font-size: 11.5px;

    line-height: 1.55;

    color: #7b8795;
}


/* =========================================================
   FOOTER
========================================================= */

.footer-text {
    margin-top: 21px;

    padding-top: 19px;

    border-top: 1px solid #edf0f4;

    text-align: center;

    font-size: 11.5px;

    line-height: 1.65;

    color: #8894a2;
}


.login-bottom {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 19px;

    font-size: 11px;

    color: #94a0ad;
}


.bottom-dot {
    color: #b6bec8;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .login-page {
        grid-template-columns:
            minmax(390px, 45%)
            minmax(480px, 55%);
    }

    .login-visual {
        padding: 45px 30px;
    }

    .logo-wrap {
        width: 135px;
        height: 135px;
    }

    .visual-kicker {
        font-size: 20px;
    }

    .visual-title {
        font-size: 36px;
    }

    .visual-copy {
        font-size: 16px;
    }

    .login-side {
        padding: 35px;
    }

}


@media (max-width: 850px) {

    .login-page {
        display: flex;
        flex-direction: column;

        min-height: 100vh;
    }


    .login-visual {
        min-height: auto;

        padding: 38px 20px 40px;
    }


    .visual-inner {
        max-width: 600px;
    }


    .logo-wrap {
        width: 112px;
        height: 112px;

        margin-bottom: 19px;
    }


    .visual-kicker {
        font-size: 18px;
    }


    .visual-title {
        margin-bottom: 13px;

        font-size: 30px;
    }


    .visual-divider {
        margin-bottom: 15px;
    }


    .visual-copy {
        max-width: 520px;

        font-size: 14.5px;

        line-height: 1.65;
    }


    .portal-features {
        display: none;
    }


    .login-side {
        min-height: auto;

        padding: 35px 20px 45px;
    }


    .login-wrap {
        max-width: 500px;
    }

}


@media (max-width: 520px) {

    .login-visual {
        padding: 28px 18px 30px;
    }


    .logo-wrap {
        width: 94px;
        height: 94px;

        padding: 6px;
    }


    .visual-kicker {
        font-size: 16px;
    }


    .visual-title {
        font-size: 27px;
    }


    .visual-copy {
        font-size: 13.5px;
    }


    .login-side {
        padding: 25px 13px 35px;
    }


    .login-card {
        padding: 30px 22px 26px;

        border-radius: 13px;
    }


    .secure-icon {
        width: 43px;
        height: 43px;
    }


    .brand h1 {
        font-size: 25px;
    }


    .brand p {
        font-size: 13px;
    }


    .input-box {
        height: 50px;
    }


    .btn {
        height: 50px;
    }


    .login-bottom {
        flex-wrap: wrap;
    }

}