/* =====================================================================================================
   Quaid-e-Azam 150th birth anniversary - LMS landing page layout (1-31 December 2026)

   - Linked from LMS_LP.aspx only while LMS_LP.aspx.vb ApplyQuaid150Layout() is active; after the window
     neither this file nor the December-only markup is rendered, so the original page returns unchanged.
   - Every rule is scoped to body.lp-q150. Login.css and the theme bundles are not modified.

   Breakpoints
     <= 768px      mobile   untouched (existing layout + existing popup)
     769 - 992px   tablet   stacked: login card first, then the green Quaid panel, then the footer
     >= 993px      desktop  side by side: login panel left, green Quaid panel right
                            - narrow right panel (tall / square windows): quote stacks above the tomb
                            - short windows (<= 800px high): compact spacing

   Right panel: one background image (the approved design's scene - sky, tomb, trees, portrait, flag wave - with
   extra sky above it), 'cover' anchored bottom-centre; then the curved gold edge (desktop); then the HTML
   heading, emblem and rotating quote.
   ===================================================================================================== */

/* December-only elements stay hidden on mobile */
.lp-q150 .lp-q150-brand,
.lp-q150 .lp-q150-section-title,
.lp-q150 .lp-q150-footer,
.lp-q150 .lp-q150-hero,
.lp-q150 .lp-q150-art {
    display: none;
}

/* ===================================================================================== tablet + desktop */
@media (min-width: 769px) {

    /* ---------------------------------------------------------------- page frame */
    /* the bottom bar's links live in the December footer */
    .lp-q150 #FooterContainer {
        display: none !important;
    }

    .lp-q150 #maincontainer.ContainerHeight {
        height: auto !important;
        min-height: 100vh;
    }

    /* ---------------------------------------------------------------- login column */
    .lp-q150 .m-login.m-login--1 .m-login__aside {
        background-color: #fff;
        background-image: radial-gradient(ellipse at 0% 0%, #eef2fa 0%, rgba(255, 255, 255, 0) 42%),
                          radial-gradient(ellipse at 0% 100%, #eaf0f9 0%, rgba(255, 255, 255, 0) 38%);
    }

    .lp-q150 .m-login.m-login--1 .m-login__aside .m-login__wrapper {
        overflow: visible;
        max-width: 470px;
        margin: 0 auto;
        padding: 0 !important;
    }

        .lp-q150 .m-login.m-login--1 .m-login__aside .m-login__wrapper .m-login__logo {
            margin: 0 auto .25rem auto;
        }

            .lp-q150 .m-login.m-login--1 .m-login__aside .m-login__wrapper .m-login__logo img {
                height: 96px;
                width: auto;
            }

    .lp-q150 .lp-q150-brand {
        display: block;
        text-align: center;
        margin-bottom: 1.25rem;
        color: #101868;
    }

    .lp-q150 .lp-q150-brand__org {
        font-size: 1.15rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .lp-q150 .lp-q150-brand__title,
    .lp-q150 .lp-q150-section-title {
        display: flex;
        align-items: center;
        font-weight: 700;
        white-space: nowrap;
    }

    .lp-q150 .lp-q150-brand__title {
        justify-content: center;
        margin-top: .6rem;
        font-size: 1.55rem;
        color: #900000;                   /* red of the LMS logo */
    }

        .lp-q150 .lp-q150-brand__title span,
        .lp-q150 .lp-q150-section-title span {
            padding: 0 .9rem;
        }

    /* login card */
    .lp-q150 .m-login.m-login--1 .m-login__wrapper .m-login__form {
        margin-top: 0;
        padding: 1.5rem 1.5rem 1.35rem;
        background: #fff;
        border: 1px solid #edf1f7;
        border-radius: 14px;
        box-shadow: 0 10px 30px rgba(16, 24, 104, .10);
    }

    .lp-q150 .m-login__form .form-group {
        position: relative;
        margin-bottom: 1rem;
    }

    .lp-q150 .m-login__form .form-control.m-input {
        height: 52px;
        padding: 0 3rem 0 3.4rem;
        font-size: 1.05rem;
        color: #333;
        background: #fff;
        border: 1px solid #dde3ee;
        border-radius: 10px;
    }

        .lp-q150 .m-login__form .form-control.m-input:focus {
            border-color: #2a55c0;
            box-shadow: 0 0 0 3px rgba(42, 85, 192, .12);
        }

    /* field icons (Font Awesome 4.7 is already loaded by Login.css) */
    .lp-q150 .m-login__form > .form-group:first-child::before,
    .lp-q150 #show_hide_password::before {
        position: absolute;
        left: 18px;
        top: 13px;
        z-index: 4;
        font-family: FontAwesome;
        font-size: 22px;
        line-height: 26px;
        color: #101868;
        pointer-events: none;
    }

    .lp-q150 .m-login__form > .form-group:first-child::before {
        content: "\f007";
    }

    .lp-q150 #show_hide_password::before {
        content: "\f023";
        left: 20px;
    }

    .lp-q150 #show_hide_password .input-group-addon {
        position: absolute;
        right: 14px;
        top: 0;
        z-index: 4;
        display: flex;
        align-items: center;
        height: 52px;
        margin: 0 !important;
        padding: 0;
        background: transparent;
        border: 0;
    }

    .lp-q150 #show_hide_password .m-reset {
        position: static;
        margin: 0;
    }

        .lp-q150 #show_hide_password .m-reset i {
            color: #101868;
        }

    .lp-q150 .m-login__form .input-group.m--margin-top-20 {
        margin-top: .75rem !important;
    }

    .lp-q150 #hpForgotPassword {
        color: #1d4fb4;
        font-weight: 600;
    }

    /* sign in button */
    .lp-q150 .m-login.m-login--1 .m-login__wrapper .m-login__form .m-login__form-action {
        position: relative;
        margin: 1.25rem 0 0 0 !important;
    }

        .lp-q150 .m-login.m-login--1 .m-login__wrapper .m-login__form .m-login__form-action::before {
            content: "\f090";
            position: absolute;
            left: 50%;
            top: 50%;
            z-index: 2;
            margin-left: -50px;
            transform: translateY(-50%);
            font-family: FontAwesome;
            font-size: 20px;
            color: #fff;
            pointer-events: none;
        }

        .lp-q150 .m-login.m-login--1 .m-login__wrapper .m-login__form .m-login__form-action .btn {
            display: block;
            width: 100%;
            padding: .9rem 1rem .9rem calc(1rem + 30px);
            font-size: 1.15rem;
            font-weight: 600;
            border: 0;
            border-radius: 10px;
            background: linear-gradient(180deg, #2350bd 0%, #12257a 100%);
            box-shadow: 0 8px 18px rgba(18, 37, 122, .25) !important;
        }

            .lp-q150 .m-login.m-login--1 .m-login__wrapper .m-login__form .m-login__form-action .btn:hover,
            .lp-q150 .m-login.m-login--1 .m-login__wrapper .m-login__form .m-login__form-action .btn:focus {
                background: linear-gradient(180deg, #2b5ed4 0%, #162d8c 100%);
            }

    /* quick links */
    .lp-q150 .m-login__form + .m--margin-top-60 {
        display: none;
    }

    .lp-q150 .lp-q150-section-title {
        margin: 1.6rem 0 1rem;
        font-size: 1.1rem;
        color: #101868;
    }

        .lp-q150 .lp-q150-section-title::before,
        .lp-q150 .lp-q150-section-title::after {
            content: "";
            flex: 1 1 auto;
            height: 1px;
            background: #cfd7e6;
        }

    .lp-q150 .lp-q150-quicklinks {
        display: flex;
        align-items: flex-start;
        justify-content: space-around;
    }

        .lp-q150 .lp-q150-quicklinks > div {
            position: relative;
            flex: 1 1 0;
            margin-top: 0 !important;
            padding: 0 .4rem;
            text-align: center !important;
        }

            .lp-q150 .lp-q150-quicklinks > div + div {
                border-left: 1px solid #e3e8f1;
            }

        .lp-q150 .lp-q150-quicklinks a.m-link {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 1rem;
            font-weight: 600;
            line-height: 1.25;
            color: #1d4fb4;
        }

            .lp-q150 .lp-q150-quicklinks a.m-link:after {
                display: none;
            }

            .lp-q150 .lp-q150-quicklinks a.m-link > i {
                width: 56px;
                height: 56px;
                margin-bottom: .55rem;
                font-size: 24px;
                line-height: 56px;
                text-align: center;
                color: #1d4fb4;
                background: #fff;
                border-radius: 50%;
                box-shadow: 0 6px 16px rgba(16, 24, 104, .14);
            }

        .lp-q150 .lp-q150-quicklinks #divDatesheet a.m-link > i {
            color: red;
        }

        .lp-q150 .lp-q150-quicklinks #lblNoticeBoardCount {
            position: absolute;
            top: -4px;
            left: 50%;
            margin-left: 14px;
        }

    /* ---------------------------------------------------------------- footer: links left, social icons right */
    .lp-q150 .lp-q150-footer {
        display: block;
        padding: .75rem 1.5rem .65rem;
        border-top: 1px solid #e3e8f1;
        background: rgba(255, 255, 255, .92);
    }

    .lp-q150 .lp-q150-footer__row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .lp-q150 .lp-q150-footer__left {
        display: flex;
        align-items: center;
    }

    .lp-q150 .lp-q150-footer__vu img,
    .lp-q150 .lp-q150-footer__govt {
        display: block;
        height: 44px;
        width: auto;
    }

    .lp-q150 .lp-q150-footer__vu {
        margin-right: .6rem;
    }

    .lp-q150 .lp-q150-footer__govt {
        margin-right: .9rem;
    }

    .lp-q150 .lp-q150-footer__links {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0 0 0 .9rem;
        list-style: none;
        border-left: 1px solid #d5dcea;
    }

        .lp-q150 .lp-q150-footer__links li {
            margin-right: 1rem;
        }

        .lp-q150 .lp-q150-footer__links a {
            display: inline-flex;
            align-items: center;
            white-space: nowrap;
            color: #1d4fb4;
        }

        .lp-q150 .lp-q150-footer__links i {
            margin-right: .3rem;
            font-size: 1.25rem;
        }

    .lp-q150 .lp-q150-footer__social {
        display: flex;
        align-items: center;
    }

        /* circular social icons */
        .lp-q150 .lp-q150-footer__social a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            margin-left: .5rem;
            overflow: hidden;
            line-height: 1;
            border-radius: 50%;
            background: #3b5998;
            box-shadow: 0 3px 8px rgba(16, 24, 104, .18);
        }

        .lp-q150 .lp-q150-footer__social .fa {
            font-size: 20px;
            color: #fff;
        }

        .lp-q150 .lp-q150-footer__social img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
        }

    .lp-q150 .lp-q150-footer__copy {
        margin-top: .35rem;
        text-align: center;
        font-size: .85rem;
    }

        .lp-q150 .lp-q150-footer__copy a {
            color: #5b6680;
        }

    /* ---------------------------------------------------------------- green panel */
    .lp-q150 .m-login.m-login--1 .m-login__content.m_login_Container_bg {
        position: relative;
        overflow: hidden;
        /* scene (sky, tomb, trees, portrait, flag wave) sits at the bottom of the image with extra sky above it,
           so 'cover' anchored bottom-centre keeps the whole scene visible from wide panels to tall ones */
        background: #0b3b17 url("../images/PopupAds/Quaid150/bg-quaid150.jpg?v=4") no-repeat center bottom;
        background-size: cover;
    }

    .lp-q150 .m-login__content > .m_login_Container_bgImg {
        position: relative;
        z-index: 2;
        height: 100%;
        background: none;
    }

        .lp-q150 .m-login__content > .m_login_Container_bgImg > .m-grid__item--middle {
            width: 100%;
            padding: 0 3%;
        }

    .lp-q150 .m-login.m-login--1 .m-login__content .m-login__welcome {
        margin-bottom: 1rem;
        font-size: 2.6rem !important;
        font-weight: 600;
        text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
    }

        .lp-q150 .m-login.m-login--1 .m-login__content .m-login__welcome::after {
            content: "";
            display: block;
            width: 78%;
            max-width: 720px;
            height: 3px;
            margin: .9rem auto 0;
            background: linear-gradient(90deg, rgba(226, 187, 93, 0) 0%, #e2bb5d 18%, #f3d98b 50%, #e2bb5d 82%, rgba(226, 187, 93, 0) 100%);
        }

    /* random DB quote + refresh icon: hidden during December, back automatically afterwards */
    .lp-q150 .m-login__content .m-grid__item--middle > div.text-center {   /* div only: the heading h3 also has .text-center */
        display: none;
    }

    /* existing December poster banner is replaced by the layout below */
    .lp-q150 #divDesktopBanner {
        display: none !important;
    }

    /* emblem + quote: emblem on top, quote between the tomb (left, ~0-25% of the panel width) and the
       portrait (shoulder from ~57%); the scene scales with the panel width, so these % stay aligned */
    .lp-q150 .lp-q150-hero {
        display: block;
        width: 52%;
        max-width: 640px;
        margin: 1.75rem 0 0 14%;
        text-align: center;
    }

    .lp-q150 .lp-q150-hero__emblem {
        display: block;
        width: auto;
        max-width: 90%;
        max-height: 14vh;
        height: auto;
        margin: 0 auto;
    }

    .lp-q150 .lp-q150-hero__quote {
        display: block;
        width: auto;
        height: auto;
        max-width: 70%;                     /* +20% (was 58%) */
        max-height: 48vh;                   /* +20% (was 40vh) */
        margin: 1.2rem 19% 0 auto;          /* right edge ~56% of the panel */
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6));
    }

    /* artwork layers */
    .lp-q150 .lp-q150-art {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1;
        pointer-events: none;
    }

    .lp-q150 .lp-q150-art__curve {
        display: none;
    }

    .lp-q150 .lp-q150-art__fill {
        fill: #fff;
    }

    .lp-q150 .lp-q150-art__line {
        fill: none;
        stroke: #e2bb5d;
        stroke-width: 6px;
    }

    .lp-q150 .lp-q150-art__line2 {
        fill: none;
        stroke: #f3d98b;
        stroke-width: 2px;
        opacity: .65;
    }

    /* reCAPTCHA badge (Login.css keeps it at 50% height) would sit on the portrait; park it bottom-right */
    .lp-q150 .grecaptcha-badge {
        bottom: 14px !important;
    }
}

/* ===================================================================================== tablet: stacked */
@media (min-width: 769px) and (max-width: 992px) {

    /* footer is pinned to the bottom of the whole stack (aside is not positioned here) */
    .lp-q150 #m_login.m-login {
        position: relative;
        padding-bottom: 6.75rem;
    }

    .lp-q150 .m-login.m-login--1 .m-login__aside {
        position: static;
        order: 1 !important;          /* login first (Login.css orders the green panel first on tablets) */
        width: 100%;
        margin: 0;
        padding: 2rem 2rem 2.25rem;
    }

    .lp-q150 .m-login.m-login--1 .m-login__content.m_login_Container_bg {
        order: 2 !important;
        flex: 0 0 auto;                   /* fixed height keeps the artwork composition predictable */
        height: 720px;
        border-top: 5px solid #e2bb5d;
    }

    .lp-q150 .lp-q150-footer {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding-left: 2rem;
        padding-right: calc(2rem + 70px);   /* the reCAPTCHA badge sits at the bottom-right corner */
    }

    .lp-q150 .m-login.m-login--1 .m-login__content .m-login__welcome {
        font-size: 2.1rem !important;
    }

    .lp-q150 .lp-q150-hero__emblem {
        max-height: 110px;
    }

    .lp-q150 .lp-q150-hero__quote {
        max-height: 300px;                  /* +20% (was 250px) */
    }
}

/* ===================================================================================== desktop: side by side */
@media (min-width: 993px) {
    .lp-q150 .m-login.m-login--1 .m-login__aside {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 1.5rem 3.5rem 8.25rem;   /* bottom space reserved for the footer */
    }

        .lp-q150 .m-login.m-login--1 .m-login__aside > .m-stack {
            position: static;
            flex: 0 0 auto;
        }

    .lp-q150 .lp-q150-footer {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .lp-q150 .m-login__content > .m_login_Container_bgImg > .m-grid__item--middle {
        padding: 0 2% 0 44px;             /* clears the curved gold edge */
    }

    .lp-q150 .lp-q150-art__curve {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 120px;
        height: 100%;
    }
}

/* short desktop viewports (e.g. 1366x768 / 1536x864 laptops): compact spacing so the page fits without scrolling */
@media (min-width: 993px) and (max-height: 800px) {
    .lp-q150 .m-login.m-login--1 .m-login__aside {
        padding-top: .75rem;
        padding-bottom: 6rem;
    }

    .lp-q150 .m-login.m-login--1 .m-login__aside .m-login__wrapper .m-login__logo img {
        height: 64px;
    }

    .lp-q150 .lp-q150-brand {
        margin-bottom: .8rem;
    }

    .lp-q150 .lp-q150-brand__org {
        font-size: 1rem;
    }

    .lp-q150 .lp-q150-brand__title {
        margin-top: .3rem;
        font-size: 1.3rem;
    }

    .lp-q150 .m-login.m-login--1 .m-login__wrapper .m-login__form {
        padding: 1.1rem 1.25rem 1rem;
    }

    .lp-q150 .m-login__form .form-group {
        margin-bottom: .7rem;
    }

    .lp-q150 .m-login__form .form-control.m-input {
        height: 46px;
    }

    .lp-q150 .m-login__form > .form-group:first-child::before,
    .lp-q150 #show_hide_password::before {
        top: 10px;
    }

    .lp-q150 #show_hide_password .input-group-addon {
        height: 46px;
    }

    .lp-q150 .m-login.m-login--1 .m-login__wrapper .m-login__form .m-login__form-action {
        margin-top: .9rem !important;
    }

        .lp-q150 .m-login.m-login--1 .m-login__wrapper .m-login__form .m-login__form-action .btn {
            padding-top: .7rem;
            padding-bottom: .7rem;
        }

    .lp-q150 .lp-q150-section-title {
        margin: 1rem 0 .6rem;
    }

    .lp-q150 .lp-q150-quicklinks a.m-link {
        font-size: .92rem;
    }

        .lp-q150 .lp-q150-quicklinks a.m-link > i {
            width: 46px;
            height: 46px;
            margin-bottom: .4rem;
            font-size: 20px;
            line-height: 46px;
        }

    .lp-q150 .lp-q150-footer {
        padding-top: .5rem;
        padding-bottom: .45rem;
    }

    .lp-q150 .lp-q150-footer__vu img,
    .lp-q150 .lp-q150-footer__govt {
        height: 36px;
    }

    .lp-q150 .lp-q150-footer__social a {
        width: 30px;
        height: 30px;
    }

    .lp-q150 .lp-q150-footer__social .fa {
        font-size: 17px;
    }

    .lp-q150 .lp-q150-footer__copy {
        margin-top: .15rem;
        font-size: .8rem;
    }

    .lp-q150 .m-login.m-login--1 .m-login__content .m-login__welcome {
        margin-bottom: .6rem;
        font-size: 2.1rem !important;
    }

        .lp-q150 .m-login.m-login--1 .m-login__content .m-login__welcome::after {
            margin-top: .6rem;
        }

    .lp-q150 .lp-q150-hero {
        margin-top: 1rem;
    }

    .lp-q150 .lp-q150-hero__emblem {
        max-height: 11vh;
    }

    .lp-q150 .lp-q150-hero__quote {
        max-height: 43vh;                   /* +20% (was 36vh) */
        margin-top: .9rem;
    }
}

/* small desktops (993-1200px): narrower panels (after the compact block so these sizes win) */
@media (min-width: 993px) and (max-width: 1200px) {
    .lp-q150 .m-login.m-login--1 .m-login__aside {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .lp-q150 .m-login.m-login--1 .m-login__content .m-login__welcome {
        font-size: 1.8rem !important;
    }

    .lp-q150 .lp-q150-art__curve {
        width: 80px;
    }

    .lp-q150 .lp-q150-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .lp-q150 .lp-q150-footer__links li {
        margin-right: .6rem;
    }
}

/* narrow right panel (tall or square windows, e.g. 1280x1024, 1024x768): no room between tomb and portrait,
   so the quote stacks under the emblem, above the tomb. Panel is 55vw wide from 1201px, 50vw below;
   the heading scales with the panel width so it never runs into the curved edge. */
@media (min-width: 1201px) and (max-aspect-ratio: 1673/1000) {
    .lp-q150 .m-login.m-login--1 .m-login__content .m-login__welcome {
        font-size: clamp(1.6rem, calc(2.9vw - 2px), 2.6rem) !important;
    }
}

@media (min-width: 993px) and (max-width: 1200px) and (max-aspect-ratio: 184/100) {
    .lp-q150 .m-login.m-login--1 .m-login__content .m-login__welcome {
        font-size: clamp(1.45rem, calc(2.7vw - 3px), 1.8rem) !important;
    }
}

@media (min-width: 1201px) and (max-aspect-ratio: 1673/1000), (min-width: 993px) and (max-width: 1200px) and (max-aspect-ratio: 184/100) {
    .lp-q150 .lp-q150-hero {
        width: 52%;
        margin-left: 5%;                  /* emblem stays clear of the curved edge */
    }

    .lp-q150 .lp-q150-hero__emblem {
        max-width: 92%;
    }

    .lp-q150 .lp-q150-hero__quote {
        max-width: 100%;
        max-height: 29vh;                   /* +20% (was 24vh) */
        margin: 1rem auto 0;
    }
}
