/* =====================================================================
   Mobile Login — Login.aspx ka mobile redesign (<= 767px only)
   Login.aspx ke inline <style> ke BAAD link hota hai, isliye override
   karta hai. Markup / IDs / server controls same hain.
   Colors mobile-app.css / dashboard-ui.css ke tokens se match karte hain.
   ===================================================================== */

@media (max-width: 767px) {

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

    body {
        margin: 0;
        font-family: "Outfit", "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
        background:
            radial-gradient(120% 60% at 100% 0%, rgba(122, 63, 227, .55) 0%, rgba(122, 63, 227, 0) 60%),
            linear-gradient(160deg, #4b83f8 0%, #2f6df2 45%, #245be6 100%) no-repeat !important;
        background-size: 100% 44vh, 100% 44vh !important;
        background-color: #eef2fa !important;
        -webkit-tap-highlight-color: transparent;
        color: #33405c;
    }

    #cart-section {
        margin: 0 !important;
        min-height: 100vh;
        padding: 0 0 24px;
    }

        #cart-section .container {
            padding: 0 16px !important;
            max-width: 100%;
        }

            #cart-section .container .row {
                margin: 0 !important;
                display: block !important;
            }

                #cart-section .container .row .cart,
                #cart-section .container .row .cart2 {
                    width: 100% !important;
                    max-width: 440px;
                    margin: 0 auto !important;
                    padding: 0 !important;
                    background: transparent !important;
                    box-shadow: none !important;
                    border: 0 !important;
                    border-radius: 0 !important;
                    transform: none !important;
                    min-height: 0 !important;
                    height: auto !important;
                    overflow: visible !important;
                }

                    #cart-section .container .row .cart::before,
                    #cart-section .container .row .cart2::before {
                        display: none !important;
                    }

    /* ---------- Logo (hero) ---------- */
    .imgtop {
        width: 96px !important;
        height: 96px;
        margin: 44px auto 26px !important;
        border-radius: 28px !important;
        background: #fff !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        box-shadow: 0 16px 36px rgba(16, 32, 90, .28);
    }

    .log {
        width: 72px !important;
        height: 72px !important;
        object-fit: contain;
        margin: 0 !important;
    }

    /* ---------- White card (sheet) ---------- */
    #cart-section .cart2 .log-in-area,
    #cart-section .cart2 .button-area,
    #cart-section .cart2 > .column > .row {
        background: #fff;
        margin: 0 !important;
        width: 100%;
    }

    #cart-section .container .row .cart2 .log-in-area,
    #cart-section .container .row .cart2 .button-area {
        height: auto !important;
        align-items: stretch !important;
    }

        #cart-section .container .row .cart2 .log-in-area > *,
        #mem-login,
        #forget-password-section-mem {
            width: 100% !important;
        }

    #cart-section .container .row .cart2 .log-in-area {
        border-radius: 24px 24px 0 0;
        padding: 26px 20px 4px !important;
        box-shadow: 0 -2px 0 rgba(255, 255, 255, .0);
    }

    #cart-section .cart2 > .column > .row:last-child {
        border-radius: 0 0 24px 24px;
        padding-bottom: 18px !important;
        box-shadow: 0 24px 40px rgba(31, 61, 138, .12);
    }

    /* company name: card ke top par chhota label */
    .nametop {
        transform: none !important;
        color: #8b93a7 !important;
        font-size: 12px !important;
        font-weight: 600;
        letter-spacing: .8px;
        text-transform: uppercase;
        text-align: center;
        margin: 0 0 4px;
    }

    #cart-section .container .row .cart2 h2,
    #Logdd h2 {
        color: #17253f !important;
        font-size: 26px !important;
        font-weight: 700 !important;
        text-align: center;
        margin: 0 0 4px !important;
        padding: 0 !important;
        letter-spacing: -.2px;
    }

        #Logdd h2::after {
            content: "Welcome back! Apne account me login karein";
            display: block;
            font-size: 13.5px;
            font-weight: 400;
            color: #8b93a7;
            margin-top: 6px;
            letter-spacing: 0;
        }

    /* ---------- Fields ---------- */
    #cart-section .container .row .cart2 .log-in-area label {
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
        border: 0 !important;
    }

    #mem-login { margin-top: 18px; }

        #mem-login label label { position: relative; }

    #cart-section .container .row .cart2 .log-in-area label input,
    #cart-section .ts,
    #cart-section .form-control.ts {
        height: 52px !important;
        width: 100% !important;
        margin: 0 0 12px !important;
        padding: 0 16px !important;
        border: 1.5px solid #e6ebf5 !important;
        border-radius: 14px !important;
        background: #f6f8fd !important;
        color: #17253f !important;
        font-size: 16px !important; /* iOS zoom nahi */
        font-weight: 500;
        box-shadow: none !important;
        outline: none !important;
        transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
    }

        #cart-section .container .row .cart2 .log-in-area label input:focus,
        #cart-section .ts:focus {
            border-color: #2f6df2 !important;
            background: #fff !important;
            box-shadow: 0 0 0 4px rgba(47, 109, 242, .12) !important;
        }

    #cart-section ::placeholder,
    #cart-section input::placeholder {
        color: #a3abbd !important;
        font-weight: 400;
    }

    /* password eye button: password field ke andar right side */
    #mem-login label label > .input-group-append { position: static; }

    #togglePassword {
        position: absolute !important;
        top: 6px !important;
        right: 6px !important;
        width: 40px;
        height: 40px;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 10px !important;
        background: transparent !important;
        color: #7a869e !important;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }

        #togglePassword:active { background: #eef2fa !important; }

    #TxtMemberPassword { padding-right: 52px !important; }

    /* ---------- OTP ---------- */
    #otp.inputs {
        display: flex;
        gap: 8px;
        margin: 0 !important;
        padding: 14px 0 6px !important;
        justify-content: center;
    }

        #otp.inputs > div {
            flex: 1 1 0;
            width: auto !important;
            max-width: 52px;
            padding: 0 !important;
        }

    #cart-section .otp-letter-input {
        width: 100% !important;
        height: 54px !important;
        padding: 0 !important;
        border: 1.5px solid #e6ebf5 !important;
        border-radius: 12px !important;
        background: #f6f8fd !important;
        color: #17253f !important;
        font-size: 20px !important;
        text-align: center;
        margin: 0 !important;
    }

        #cart-section .otp-letter-input:focus {
            border-color: #2f6df2 !important;
            background: #fff !important;
            box-shadow: 0 0 0 4px rgba(47, 109, 242, .12) !important;
        }

    #dfdf p { margin-bottom: 4px; }
    #dfdf .h5 { color: #17253f; font-weight: 600; }

    #dfdf p.text-success[style] {
        font-size: 3.4rem !important;
        color: #2f6df2 !important;
        margin: 6px 0 !important;
    }

    #Button1 {
        background: transparent !important;
        color: #2f6df2 !important;
        font-weight: 600;
        padding: 0 !important;
    }

    /* ---------- Buttons ---------- */
    #cart-section .container .row .cart2 .button-area {
        padding: 6px 20px 4px !important;
        align-items: stretch;
    }

    #cart-section .btn-block,
    #cart-section .pswdbottom,
    #cart-section .btn.btn-primary {
        width: 100% !important;
        height: 52px !important;
        margin: 4px 0 8px !important;
        padding: 0 18px !important;
        border: 0 !important;
        border-radius: 14px !important;
        background: linear-gradient(135deg, #4b83f8 0%, #2f6df2 50%, #245be6 100%) !important;
        color: #fff !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        letter-spacing: .6px;
        box-shadow: 0 12px 24px rgba(47, 109, 242, .3) !important;
        transition: transform .1s ease;
    }

        #cart-section .btn-block:active,
        #cart-section .pswdbottom:active,
        #cart-section .btn.btn-primary:active { transform: scale(.98); }

    /* ---------- Links ---------- */
    #cart-section a,
    #cart-section .btn-link {
        color: #2f6df2 !important;
        font-size: 14px !important;
        font-weight: 600 !important;
    }

    #cart-section .cart2 > .column > .row {
        padding: 2px 20px 0;
    }

        #cart-section .cart2 > .column > .row > .mb-4 {
            margin-bottom: 6px !important;
            padding: 0;
        }

    /* Check Status | Forgot Password */
    #cart-section .pswd {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center;
        margin: 6px 0 0 !important;
        padding: 14px 0 0 !important;
        border-top: 1px solid #eef1f8;
        width: 100%;
    }

        #cart-section .pswd > div {
            width: auto !important;
            flex: 0 0 auto;
            padding: 0 !important;
        }

            #cart-section .pswd > div:last-child { text-align: right; }

    /* ---------- Forgot password section ---------- */
    #forget-password-section-mem .list-inline {
        display: flex;
        justify-content: space-between;
        padding: 0 6px;
        margin: 12px 0;
        width: 100%;
    }

    #cart-section .forgot {
        background: transparent !important;
        border: 0 !important;
    }

    #MessageLabel {
        display: block;
        font-size: 13px;
        margin-top: 8px;
    }
}
