@font-face {
    font-family: "Montserrat";
    src: url("/app-assets/fonts/Montserrat-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("/app-assets/fonts/Montserrat-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("/app-assets/fonts/Montserrat-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("/app-assets/fonts/Montserrat-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --mp-blue: #479efb;
    --mp-blue-dark: #0079c1;
    --mp-ink: #0d0d0d;
    --mp-muted: #6e6e6e;
    --mp-soft: #f2f2f2;
    --mp-line: #e0e0e0;
    --mp-shadow: 0 18px 40px rgba(0, 121, 193, 0.18);
}

.mp-auth-shell {
    --core-auth-page-bg: #fff;
    --core-auth-hero-overlay: linear-gradient(135deg, rgba(0, 86, 151, 0.96), rgba(0, 121, 193, 0.94) 48%, rgba(71, 158, 251, 0.92));
    --core-auth-hero-mobile-overlay: linear-gradient(135deg, rgba(0, 86, 151, 0.98), rgba(0, 121, 193, 0.94));
    --core-auth-hero-image: url("/app-assets/images/cha_ching_image.png");
    --core-auth-watermark: "OFFERS";
    --core-auth-card-fg: var(--mp-ink);
    --core-auth-card-radius: 8px;
    --core-auth-card-logo-width: 180px;
    --core-alert-info-bg: rgba(71, 158, 251, 0.12);
    --core-alert-info-fg: var(--mp-blue-dark);
}

* { box-sizing: border-box; }

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--mp-ink);
    background: var(--mp-soft);
}

a {
    color: var(--mp-blue-dark);
    font-weight: 700;
    text-decoration: none;
}

a:hover { text-decoration: underline; }

.mp-shell {
    min-height: 100vh;
    padding: 24px;
    background: linear-gradient(180deg, var(--mp-blue) 0, var(--mp-blue) 180px, var(--mp-soft) 180px);
}

.mp-shell-login {
    display: block;
    padding: 0;
    background: #fff;
}

.mp-topbar {
    width: min(1100px, 100%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 8px 0 34px;
}

.mp-brand-link {
    display: inline-flex;
    align-items: center;
}

.mp-logo {
    width: 220px;
    max-width: 52vw;
    height: auto;
}

.mp-nav {
    display: flex;
    gap: 18px;
    font-size: 0.9rem;
    font-weight: 700;
}

.mp-nav a {
    color: #fff;
}

.mp-main {
    width: min(1100px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.mp-login-grid {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 52vw) minmax(360px, 1fr);
    gap: 0;
    align-items: stretch;
}

.mp-login-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    padding: clamp(48px, 7vw, 96px);
    text-align: left;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(0, 86, 151, 0.96), rgba(0, 121, 193, 0.94) 48%, rgba(71, 158, 251, 0.92)),
        url("/app-assets/images/cha_ching_image.png") right 8% bottom 10% / min(360px, 46%) auto no-repeat;
}

.mp-login-hero::before {
    position: absolute;
    inset: auto auto 8% -2%;
    content: "OFFERS";
    color: rgba(255, 255, 255, 0.09);
    font-size: clamp(5rem, 14vw, 13rem);
    line-height: 0.85;
    font-weight: 800;
    letter-spacing: 0;
    pointer-events: none;
}

.mp-login-hero > * {
    position: relative;
    z-index: 1;
}

.mp-login-logo {
    width: min(300px, 76%);
    height: auto;
    margin-bottom: 46px;
}

.mp-login-hero h1,
.mp-center-card h1,
.mp-home-hero h1,
.mp-profile-heading h1,
h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
    font-weight: 800;
}

.mp-login-hero p {
    max-width: 520px;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.86);
}

.mp-login-card,
.mp-center-card,
.mp-panel,
.mp-home-hero,
.mp-profile-heading {
    background: #fff;
    border: 1px solid var(--mp-line);
    border-radius: 8px;
    box-shadow: var(--mp-shadow);
}

.mp-login-card,
.mp-center-card {
    padding: 32px;
}

.mp-login-card {
    align-self: center;
    justify-self: center;
    width: min(560px, calc(100% - 48px));
    border: 0;
    box-shadow: none;
}

.mp-login-card h2 {
    margin: 0 0 22px;
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 800;
}

.mp-card-copy {
    margin: -8px 0 22px;
    color: var(--mp-muted);
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.5;
}

.mp-form {
    display: grid;
    gap: 16px;
}

.mp-inline-form { margin-top: 14px; }

.mp-form label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.mp-login-card .mp-form label,
.mp-center-card .mp-form label,
.mp-auth-shell .mp-form label {
    color: var(--mp-blue-dark);
}

.mp-form input {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    padding: 0 16px;
    background: var(--mp-soft);
    color: #000;
    font: inherit;
    font-weight: 700;
}

.mp-form input:focus {
    outline: 3px solid rgba(71, 158, 251, 0.25);
}

.mp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 21px;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.mp-button:hover { text-decoration: none; }

.mp-button-primary {
    width: 100%;
    margin-top: 8px;
    background: var(--mp-blue-dark);
    color: #fff;
}

.mp-button-secondary {
    width: fit-content;
    background: var(--mp-blue);
    color: #fff;
}

.mp-links-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
    font-size: 0.86rem;
}

.mp-links-row-spread {
    justify-content: space-between;
}

.mp-message {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 8px;
    background: rgba(71, 158, 251, 0.12);
    color: var(--mp-blue-dark);
    font-weight: 600;
}

.mp-message-above-form {
    margin: 0 0 18px;
}

.mp-alert {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.45;
}

.mp-alert-danger {
    border-color: #f5c2c7;
    background: #f8d7da;
    color: #842029;
}

.mp-divider {
    display: grid;
    place-items: center;
    margin: 28px 0 14px;
    color: var(--mp-ink);
    font-size: 1.15rem;
    font-weight: 800;
}

.mp-provider-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.mp-provider-note {
    margin-top: 14px;
    color: var(--mp-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.mp-center-card {
    width: min(640px, 100%);
}

.mp-card-logo {
    display: block;
    width: 180px !important;
    max-width: 58%;
    max-height: 48px;
    height: auto;
    object-fit: contain;
    object-position: left center;
    margin: 0 0 28px;
}

.mp-kicker,
.mp-chip {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--mp-blue-dark);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.mp-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.mp-panel {
    padding: 24px;
}

.mp-panel h2 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 800;
}

.mp-panel p {
    margin: 0 0 18px;
    color: var(--mp-muted);
    line-height: 1.5;
}

.mp-home-hero,
.mp-profile-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
}

.mp-home-hero p {
    margin: 0;
    color: var(--mp-muted);
    font-weight: 600;
}

.mp-home-hero img {
    width: 92px;
    height: 102px;
    object-fit: contain;
    flex: 0 0 auto;
}

.mp-profile-heading img {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.mp-profile-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--mp-line);
}

.mp-profile-row:last-child {
    border-bottom: 0;
}

.mp-profile-row span {
    color: var(--mp-muted);
    font-weight: 600;
}

.mp-profile-row strong {
    max-width: 62%;
    text-align: right;
    overflow-wrap: anywhere;
}

.mp-profile-method-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--mp-line);
}

.mp-profile-method-row > div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.mp-profile-method-row span {
    color: var(--mp-ink);
    font-weight: 700;
}

.mp-profile-method-row strong {
    color: var(--mp-muted);
    font-size: 0.9rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.mp-profile-footer-id {
    margin: 2px 0 0;
    color: #666;
    font-size: 0.68rem;
    text-align: center;
}

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

    .mp-panel-grid {
        grid-template-columns: 1fr;
    }

    .mp-shell-login {
        padding: 0;
    }

    .mp-login-grid {
        grid-template-columns: 1fr;
    }

    .mp-login-hero {
        min-height: auto;
        padding: 32px 24px;
        background:
            linear-gradient(135deg, rgba(0, 86, 151, 0.98), rgba(0, 121, 193, 0.94)),
            url("/app-assets/images/cha_ching_image.png") right 24px bottom 18px / 128px auto no-repeat;
    }

    .mp-login-logo {
        width: min(220px, 72%);
        margin-bottom: 22px;
    }

    .mp-login-card {
        width: min(560px, calc(100% - 32px));
        margin: 24px auto 32px;
        padding: 24px 20px;
    }

    .mp-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .mp-shell-login {
        display: block;
    }

    .mp-login-card,
    .mp-center-card,
    .mp-panel,
    .mp-home-hero,
    .mp-profile-heading {
        padding: 20px;
    }

    .mp-home-hero,
    .mp-profile-heading,
    .mp-profile-row {
        align-items: flex-start;
    }

    .mp-profile-row,
    .mp-profile-method-row {
        flex-direction: column;
        gap: 6px;
    }

    .mp-profile-row strong {
        max-width: 100%;
        text-align: left;
    }
}
