﻿/* =========================================================
   GLOBAL RESET
   ========================================================= */
html,
body,
form {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

html {
    overflow-y: auto;
}

body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: #263238;
    background: #f4f7fb;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* =========================================================
   MAIN PAGE
   ========================================================= */

.login-page {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #f4f7fb;
}


/* =========================================================
   HEADER
   ========================================================= */

.login-header {
    width: 100%;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 7px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e1e6eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}


/* =========================================================
   BRAND
   ========================================================= */

.login-brand {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}


/* =========================================================
   LOGOS
   ========================================================= */

.login-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
}

.login-logo {
    display: block;
    width: auto;
    object-fit: contain;
}

.login-logo-mahavitaran {
    height: 85px;
    max-width: 160px;
}

.login-logo-punyashlok {
    height: 85px;
    width: auto;
    max-width: 120px;
    border-radius: 3px;
}


/* =========================================================
   COMPANY INFORMATION
   ========================================================= */

.login-brand-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.login-brand-title {
    color: #17365d;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}

.login-brand-subtitle {
    margin-top: 3px;
    color: #008000;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}


/* =========================================================
   HEADER RIGHT
   ========================================================= */

.login-header-right,
.secure-login-text {
    display: none;
}


/* =========================================================
   SITE INFORMATION
   Second header generated from ASPX
   ========================================================= */

.login-page > header:not(.login-header) {
    width: 100%;
    margin: 0 auto;
    padding: 10px 20px;
    text-align: center;
    flex-shrink: 0;
}

    .login-page > header:not(.login-header) h4 {
        margin: 0;
        color: #c0392b;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.3;
    }

    .login-page > header:not(.login-header) p {
        margin: 2px 0 0;
        padding: 10px;
        color: #1769aa;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.3;
    }


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.login-main {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8px 15px 10px;
    background: radial-gradient( circle at 10% 20%, rgba(24, 119, 201, 0.07), transparent 30% ), radial-gradient( circle at 90% 80%, rgba(25, 135, 84, 0.05), transparent 30% ), #f4f7fb;
}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.login-card {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(30, 55, 80, 0.10), 0 2px 8px rgba(30, 55, 80, 0.04);
}


/* =========================================================
   LOGIN FORM PANEL
   ========================================================= */

.login-form-panel {
    width: 100%;
    padding: 16px 22px 16px;
    background: #ffffff;
}


/* =========================================================
   FORM HEADER
   ========================================================= */

.login-form-header {
    margin-bottom: 10px;
    text-align: center;
}

    .login-form-header h2 {
        margin: 0 0 4px;
        color: #172b4d;
        font-size: 21px;
        font-weight: 600;
        line-height: 1.25;
    }

    .login-form-header p {
        margin: 0;
        color: #7b8794;
        font-size: 12px;
        line-height: 1.35;
    }


/* =========================================================
   FORM GROUP
   ========================================================= */

.login-form-group {
    width: 100%;
    margin-bottom: 11px;
}

.login-label {
    display: block;
    margin-bottom: 4px;
    color: #37474f;
    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   INPUT
   ========================================================= */

.login-input-wrapper {
    position: relative;
    width: 100%;
}

.login-input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    color: #8492a6;
    font-size: 13px;
    line-height: 1;
    pointer-events: none;
}

.login-input {
    width: 100% !important;
    height: 42px !important;
    display: block;
    padding: 0 13px 0 40px !important;
    border: 1px solid #dce2e8 !important;
    border-radius: 7px !important;
    outline: none;
    background: #fbfcfd !important;
    color: #263238 !important;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .login-input:hover {
        border-color: #b9c5d1 !important;
    }

    .login-input:focus {
        border-color: #1877c9 !important;
        background: #ffffff !important;
        box-shadow: 0 0 0 3px rgba(24, 119, 201, 0.10) !important;
    }


/* =========================================================
   REMEMBER ME
   ========================================================= */

.login-remember-row {
    display: flex;
    align-items: center;
    margin: 1px 0 10px;
}

.login-remember {
    color: #5f6b76;
    font-size: 12px;
}

    .login-remember input {
        margin-right: 5px;
        vertical-align: middle;
    }


/* =========================================================
   CAPTCHA
   ========================================================= */

.captcha-container {
    width: 100%;
    margin-bottom: 8px;
    padding: 8px;
    border: 1px solid #e1e6eb;
    border-radius: 8px;
    background: #f8fafc;
}

.captcha-heading {
    margin-bottom: 6px;
    color: #52606d;
    font-size: 11px;
    font-weight: 600;
    text-align: left;
}

.captcha-image-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


/* =========================================================
   CAPTCHA IMAGE
   ========================================================= */

.captcha-image {
    width: 175px !important;
    height: 50px !important;
    display: block;
    border: 1px solid #d9dee4;
    border-radius: 5px;
    background: #ffffff;
    object-fit: contain;
}


/* =========================================================
   CAPTCHA REFRESH
   ========================================================= */

.captcha-refresh {
    width: 39px !important;
    height: 39px !important;
    padding: 7px !important;
    border: 1px solid #d8dee5;
    border-radius: 7px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .captcha-refresh:hover {
        border-color: #1877c9;
        background: #edf5fc;
        transform: scale(1.04);
    }


/* =========================================================
   VERIFICATION
   ========================================================= */

.verification-wrapper {
    width: 100%;
    margin-top: 7px;
}


/* =========================================================
   VALIDATION
   ========================================================= */

.login-validator {
    display: block;
    margin-top: 3px;
    color: #dc3545 !important;
    font-size: 11px;
    line-height: 1.3;
}


/* =========================================================
   ERROR
   ========================================================= */

.login-error-container {
    width: 100%;
    min-height: 13px;
    margin: 3px 0 5px;
    text-align: center;
}

.login-error {
    color: #dc3545;
    font-size: 11px;
}


/* =========================================================
   RESULT
   ========================================================= */

.login-result {
    min-height: 16px;
    margin-top: 5px;
    color: #dc3545;
    text-align: center;
    font-size: 11px;
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.login-submit-button {
    width: 100%;
    height: 39px;
    display: block;
    border: none !important;
    border-radius: 7px !important;
    outline: none;
    background: linear-gradient( 90deg, #1167a8, #1683cf ) !important;
    color: #ffffff !important;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(17, 103, 168, 0.18);
    transition: all 0.2s ease;
}

    .login-submit-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 15px rgba(17, 103, 168, 0.25);
    }

    .login-submit-button:active {
        transform: translateY(0);
    }


/* =========================================================
   LINKS
   ========================================================= */

.login-links {
    margin-top: 11px;
    text-align: center;
    color: #9aa5b1;
    font-size: 15px;
    line-height: 1.6;
}

    .login-links a {
        color: #1769aa !important;
        font-size: 15px;
        font-weight: 500;
        text-decoration: none;
    }

        .login-links a:hover {
            color: #0b4f82 !important;
            text-decoration: underline;
        }

.login-link-separator {
    margin: 0 6px;
    color: #c5cbd1;
}


/* =========================================================
   HONEYPOT
   ========================================================= */

.login-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* =========================================================
   HIDDEN ACCOUNT OPTIONS
   ========================================================= */

.hidden-account-options {
    display: none;
}


/* =========================================================
   FOOTER
   ========================================================= */

.login-footer {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 5%;
    flex-shrink: 0;
    background: #ffffff;
    border-top: 1px solid #e8edf2;
    color: #7b8794;
    font-size: 14px;
}

.footer-left {
    flex: 1;
}

.footer-complaint {
    flex: 2;
    text-align: center;
}

    .footer-complaint a {
        color: #1769aa;
        font-weight: 600;
        text-decoration: none;
    }

        .footer-complaint a:hover {
            text-decoration: underline;
        }


/* =========================================================
   SOCIAL
   ========================================================= */

.footer-social {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: flex-end;
}

    .footer-social a {
        width: 26px;
        height: 26px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #f1f4f7;
        transition: all 0.2s ease;
    }

        .footer-social a:hover {
            background: #e3edf7;
            transform: translateY(-1px);
        }

    .footer-social img {
        width: 17px;
        height: 17px;
        object-fit: contain;
    }


/* =========================================================
   ACCOUNT TYPE MODAL
   ========================================================= */

.account-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 25, 40, 0.55);
    backdrop-filter: blur(3px);
}

.account-modal-content {
    width: 90%;
    max-width: 430px;
    padding: 25px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.20);
}


/* =========================================================
   MODAL HEADER
   ========================================================= */

.account-modal-header {
    text-align: center;
}

.account-modal-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #edf5fc;
    font-size: 21px;
}

.account-modal-header h2 {
    margin: 0 0 7px;
    color: #172b4d;
    font-size: 22px;
}

.account-modal-header p {
    margin: 0 0 20px;
    color: #7b8794;
    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   MODAL BUTTONS
   ========================================================= */

.account-modal-buttons {
    display: flex;
    gap: 10px;
}

.account-btn {
    flex: 1;
    height: 42px;
    border: none !important;
    border-radius: 7px !important;
    color: #ffffff !important;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.account-btn-prepaid {
    background: #1267a8 !important;
}

.account-btn-postpaid {
    background: #16874e !important;
}

.account-btn:hover {
    opacity: 0.92;
}


/* =========================================================
   DESKTOP - COMPACT VIEWPORT
   ========================================================= */

@media screen and (min-width: 851px) {

    .login-page {
        min-height: 100vh;
    }

    .login-main {
        align-items: flex-start;
    }

    .login-card {
        margin-top: 0;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media screen and (max-width: 850px) {

    .login-header {
        min-height: 78px;
        padding: 9px 20px;
    }

    .login-brand {
        max-width: 100%;
        gap: 15px;
    }

    /*.login-logo-mahavitaran {
        height: 55px;
        max-width: 155px;
    }

    .login-logo-punyashlok {
        height: 52px;
        max-width: 82px;
    }*/

    .login-brand-title {
        font-size: 22px;
    }

    .login-brand-subtitle {
        font-size: 20px;
    }

    .login-main {
        padding: 10px 20px 12px;
    }

    .login-card {
        max-width: 500px;
    }

    .login-form-panel {
        padding: 18px 25px;
    }

    .login-footer {
        flex-wrap: wrap;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 600px) {

    .login-page {
        min-height: 100vh;
    }

    .login-header {
        min-height: auto;
        padding: 10px 12px;
    }

    .login-brand {
        gap: 9px;
        align-items: center;
    }

    .login-logo-wrapper {
        gap: 5px;
    }

    .login-logo-mahavitaran {
        height: 47px;
        max-width: 115px;
    }

    .login-logo-punyashlok {
        height: 44px;
        max-width: 70px;
    }

    .login-brand-title {
        font-size: 13px;
        line-height: 1.2;
    }

    .login-brand-subtitle {
        margin-top: 2px;
        font-size: 8px;
        line-height: 1.2;
    }

    .login-page > header:not(.login-header) {
        padding: 7px 12px 8px;
    }

        .login-page > header:not(.login-header) h4 {
            font-size: 10px;
        }

        .login-page > header:not(.login-header) p {
            font-size: 9px;
        }

    .login-main {
        flex: none;
        min-height: auto;
        padding: 15px 10px 20px;
    }

    .login-card {
        max-width: 100%;
        border-radius: 12px;
    }

    .login-form-panel {
        padding: 22px 17px;
    }

    .login-form-header {
        margin-bottom: 15px;
    }

        .login-form-header h2 {
            font-size: 21px;
        }

        .login-form-header p {
            font-size: 11px;
        }

    .login-form-group {
        margin-bottom: 13px;
    }

    .captcha-inner {
        flex-wrap: wrap;
    }

    .captcha-image {
        width: 170px !important;
    }

    .login-footer {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        text-align: center;
    }

    .footer-left,
    .footer-complaint,
    .footer-social {
        width: 100%;
        flex: none;
        justify-content: center;
        text-align: center;
    }

    .account-modal-buttons {
        flex-direction: column;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media screen and (max-width: 360px) {

    .login-header {
        padding: 8px;
    }

    .login-brand {
        gap: 6px;
    }

    .login-logo-mahavitaran {
        height: 40px;
        max-width: 98px;
    }

    .login-logo-punyashlok {
        height: 37px;
        max-width: 58px;
    }

    .login-brand-title {
        font-size: 10px;
    }

    .login-brand-subtitle {
        display: none;
    }

    .login-main {
        padding: 12px 8px 18px;
    }

    .login-form-panel {
        padding: 20px 14px;
    }

    .captcha-image {
        width: 160px !important;
    }

    .login-form-header h2 {
        font-size: 20px;
    }
}


/* =========================================================
   VERY SHORT DESKTOP SCREENS
   Helps 1366x768 and similar displays
   ========================================================= */

@media screen and (min-width: 851px) and (max-height: 800px) {

    .login-header {
        min-height: 72px;
        padding: 5px 15px;
    }

    /*.login-logo-mahavitaran {
        height: 52px;
        max-width: 150px;
    }

    .login-logo-punyashlok {
        height: 49px;
        max-width: 78px;
    }*/

    .login-brand-title {
        font-size: 22px;
    }

    .login-brand-subtitle {
        font-size: 20px;
    }

    .login-page > header:not(.login-header) {
        padding: 2px 8px;
    }

    .login-main {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .login-form-panel {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .login-form-header {
        margin-bottom: 7px;
    }

    .login-form-group {
        margin-bottom: 8px;
    }

    .login-input {
        height: 40px !important;
    }

    .captcha-container {
        padding: 6px;
        margin-bottom: 6px;
    }

    .login-submit-button {
        height: 37px;
    }

    /*.login-links {
        margin-top: 7px;
    }*/

    .login-footer {
        min-height: 45px;
        padding-top: 6px;
        padding-bottom: 6px;
    }
}