/*
 * QPGOE MPC Member Portal
 * Customization, Hosting and Maintenance by WTECH Network Solutions FZC.
 * Proprietary project source maintained for the QPGOE MPC Member Portal.
 */

:root {
    --navy-950: #0a3458;
    --navy-900: #0d5f94;
    --navy-800: #1379b4;
    --blue-700: #1679b8;
    --blue-600: #1b84c4;
    --blue-100: #e5f1f8;
    --ink: #202124;
    --muted: #66727d;
    --surface: #ffffff;
    --background: #fafafa;
    --line: #dedede;
    --success: #168650;
    --warning: #b36c09;
    --danger: #b53333;
    --shadow: 0 24px 60px rgba(10, 41, 89, .14);
    font-family: Roboto, Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; color: var(--ink); background: var(--background); }
body { min-height: 100vh; }
a { color: var(--blue-700); text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
code { background: #eaf1fa; padding: 2px 5px; border-radius: 5px; }

.card {
    background: white;
    border: 1px solid #e1e8f1;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .13);
}

.portal-seal {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    color: #ffd76a;
    background: #0b3d82;
    border: 4px solid #ffd76a;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .16);
    font-size: .68rem;
    font-weight: 900;
    line-height: 1.1;
}

.portal-seal.large {
    width: 92px;
    height: 92px;
    font-size: .82rem;
}

.environment-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--blue-100);
    color: var(--blue-700);
    border: 1px solid #bcd8ff;
    font-size: .76rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.primary-button,
.secondary-button,
.link-button {
    border: 0;
    border-radius: 3px;
    min-height: 42px;
    padding: 11px 18px;
    font-weight: 800;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: #1679b8;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-700);
    background: white;
    border: 1px solid #a9c8f2;
}

.link-button {
    color: var(--blue-700);
    background: transparent;
}

.primary-button.full { width: 100%; }
.primary-button.inline,
.secondary-button.inline { width: auto; }

.alert {
    padding: 13px 15px;
    border-radius: 10px;
    line-height: 1.45;
    margin: 14px 0;
}

.alert.info { background: #edf6ff; border: 1px solid #c9e2ff; color: #154b8c; }
.alert.success { background: #eaf8f0; border: 1px solid #bfe6d0; color: #116b3c; }
.alert.error { background: #fff0f0; border: 1px solid #efc2c2; color: #8f2323; }

label {
    display: grid;
    gap: 7px;
    font-size: .86rem;
    font-weight: 800;
}

label input {
    width: 100%;
    min-height: 47px;
    border: 1px solid #cbd7e7;
    border-radius: 9px;
    padding: 10px 13px;
    color: var(--ink);
    background: white;
    outline: none;
}

label input:focus {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(22, 119, 234, .12);
}

label small { color: var(--muted); font-weight: 500; }

/* Login */
.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(520px, 47%) 1fr;
}

.login-brand-panel {
    position: relative;
    overflow: hidden;
    padding: 64px clamp(36px, 5vw, 80px);
    color: white;
    background:
        linear-gradient(180deg, rgba(7, 48, 112, .92), rgba(8, 62, 138, .96)),
        linear-gradient(135deg, #0a3477, #0f68c8);
}

.login-brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .14;
    background:
        linear-gradient(90deg, transparent 0 22%, rgba(255,255,255,.18) 23% 24%, transparent 25% 100%),
        linear-gradient(0deg, transparent 0 29%, rgba(255,255,255,.13) 30% 31%, transparent 32% 100%);
    background-size: 240px 180px;
}

.login-brand-panel::after {
    content: "";
    position: absolute;
    right: -190px;
    top: -5%;
    width: 330px;
    height: 110%;
    border-radius: 50%;
    background: var(--background);
    box-shadow: -18px 0 0 rgba(255,255,255,.20);
}

.brand-inner { position: relative; z-index: 1; max-width: 650px; }
.brand-inner h1 { margin: 38px 0 5px; font-size: clamp(2.4rem, 4vw, 4rem); }
.member-portal-title { color: #9dd0ff; font-size: clamp(2rem, 3.7vw, 3.6rem); font-weight: 900; }
.brand-inner h2 { margin: 24px 0; font-size: clamp(1.05rem, 1.7vw, 1.45rem); line-height: 1.45; }
.brand-rule { width: 70px; height: 4px; border-radius: 20px; background: #7fe0ff; margin: 28px 0; }
.member-emphasis { font-size: 1.05rem; font-weight: 750; line-height: 1.55; }

.benefit-list { display: grid; gap: 17px; margin-top: 30px; }
.benefit-list > div { display: grid; grid-template-columns: 47px 1fr; gap: 14px; align-items: center; }
.benefit-list > div > span {
    width: 47px;
    height: 47px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(16, 131, 255, .72);
    border: 1px solid rgba(255,255,255,.32);
    font-size: 1.2rem;
}
.benefit-list p { margin: 0; }
.benefit-list strong { display: block; margin-bottom: 3px; }
.benefit-list small { display: block; color: #c9ddf7; }
.powered-by { margin-top: 50px; color: #cbdcf2; font-size: .84rem; }
.powered-by strong { color: white; }

.login-form-panel {
    display: grid;
    place-items: center;
    padding: 42px 26px;
    background:
        radial-gradient(circle at 78% 15%, rgba(104,160,225,.14), transparent 30%),
        var(--background);
}

.login-card { width: min(100%, 520px); padding: 35px 38px; }
.login-card h2 { margin: 17px 0 7px; font-size: 2rem; }
.login-card .center p { margin: 0 0 24px; color: var(--muted); }
.stack-form { display: grid; gap: 17px; }
.forgot-link { text-align: right; font-size: .88rem; }
.administrator-access { text-align: center; margin: 14px 0; }
.login-footer { text-align: center; margin-top: 22px; color: var(--muted); font-size: .82rem; }

/* Setup */
.setup-page { min-height: 100vh; padding: 32px 18px 60px; background: linear-gradient(135deg, #edf5ff, #f8fafc); }
.setup-header {
    width: min(1120px, 100%);
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.setup-brand { display: flex; gap: 17px; align-items: center; }
.setup-brand h1 { margin: 0; font-size: 1.65rem; }
.setup-brand p { margin: 5px 0 0; color: var(--muted); }
.setup-layout { width: min(1120px, 100%); margin: 0 auto; display: grid; grid-template-columns: 250px 1fr; gap: 24px; }
.setup-steps { padding: 18px; align-self: start; position: sticky; top: 20px; }
.setup-step {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px 9px;
    border-radius: 9px;
    color: var(--muted);
}
.setup-step > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #edf2f8;
    font-size: .82rem;
}
.setup-step.active { color: var(--blue-700); background: var(--blue-100); }
.setup-step.active > span { color: white; background: var(--blue-700); }
.setup-card { padding: 30px; }
.setup-panel h2 { margin: 0 0 7px; }
.setup-panel > p { margin: 0 0 24px; color: var(--muted); line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.test-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.setup-navigation { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.review-list { display: grid; }
.review-item { display: grid; grid-template-columns: 210px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.review-item strong { color: var(--muted); }
.confirmation { display: flex; grid-template-columns: 22px 1fr; gap: 10px; align-items: flex-start; margin-top: 20px; }
.confirmation input { width: 18px; min-height: auto; }
.success-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    background: var(--success);
    font-size: 2rem;
    font-weight: 900;
}

/* Portal dashboards */
.portal-shell { min-height: 100vh; display: grid; grid-template-columns: 275px 1fr; }
.sidebar {
    min-height: 100vh;
    padding: 26px 18px;
    display: flex;
    flex-direction: column;
    color: white;
    background: linear-gradient(180deg, #0a3b84, #061e49);
}
.sidebar-brand { display: flex; align-items: center; gap: 13px; padding: 0 8px 22px; }
.sidebar-brand .portal-seal { width: 57px; height: 57px; font-size: .56rem; border-width: 3px; }
.sidebar-brand strong { display: block; }
.sidebar-brand span { display: block; color: #bad8ff; font-size: .76rem; margin-top: 3px; }
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-nav a,
.sidebar-button {
    width: 100%;
    display: block;
    text-align: left;
    color: white;
    padding: 12px 13px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font-weight: 650;
}
.sidebar-nav a.active,
.sidebar-nav a:hover,
.sidebar-button:hover { background: linear-gradient(90deg, #0e67e3, #1489e8); }
.sidebar-nav form { margin: 0; }
.sidebar-footer { margin-top: auto; padding: 28px 10px 4px; color: #bfd2ec; font-size: .72rem; }
.portal-main { min-width: 0; }
.topbar {
    height: 78px;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background: white;
    border-bottom: 1px solid var(--line);
}
.topbar h1 { margin: 0; font-size: 1.4rem; }
.topbar p { margin: 3px 0 0; color: var(--muted); font-size: .82rem; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--blue-700);
    background: var(--blue-100);
    font-weight: 900;
}
.page-content { padding: 26px 30px 50px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.metric { padding: 20px; }
.metric span { color: var(--muted); font-size: .8rem; font-weight: 800; }
.metric strong { display: block; margin-top: 8px; font-size: 1.65rem; }
.metric small { display: block; margin-top: 8px; color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(310px, .75fr); gap: 18px; margin-top: 18px; }
.panel { padding: 22px; margin-top: 18px; }
.dashboard-grid .panel { margin-top: 0; }
.panel h2 { margin: 0 0 13px; font-size: 1.08rem; }
.panel > p { color: var(--muted); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.panel-heading h2 { margin: 0; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); }
.status-list { display: grid; margin: 16px 0; }
.status-list > div { display: grid; grid-template-columns: 180px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.status-list > div span { color: var(--muted); overflow-wrap: anywhere; }
.quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-actions a { padding: 13px; border-radius: 10px; background: #f4f8ff; border: 1px solid #d8e8fa; font-weight: 800; font-size: .82rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .84rem; }
th, td { padding: 12px 9px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
.member-scope-notice { margin-top: 18px; padding: 15px; border-radius: 10px; color: #154b8c; background: #edf6ff; border: 1px solid #c9e2ff; text-align: center; }
.page-footer { margin-top: 25px; color: var(--muted); text-align: center; font-size: .8rem; }

/* Version history */
.version-page { width: min(900px, calc(100% - 32px)); margin: 40px auto; }
.version-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.version-header h1 { margin-bottom: 5px; }
.version-header p { color: var(--muted); }
.version-card { padding: 28px; margin-top: 18px; line-height: 1.6; }
.version-card h2 { margin-top: 0; }
.version-footer { margin: 26px 0; color: var(--muted); text-align: center; }
.version-footer strong { color: var(--blue-700); }
.simple-error { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.simple-error .card { padding: 35px; text-align: center; }

@media (max-width: 1050px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-brand-panel { min-height: 470px; }
    .login-brand-panel::after { display: none; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .setup-layout { grid-template-columns: 1fr; }
    .setup-steps { position: static; display: grid; grid-template-columns: repeat(5, minmax(115px, 1fr)); overflow-x: auto; }
    .setup-step { grid-template-columns: 1fr; text-align: center; }
    .setup-step > span { margin: auto; }
    .portal-shell { grid-template-columns: 1fr; }
    .sidebar { min-height: auto; }
    .sidebar-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .login-brand-panel { padding: 42px 24px; }
    .login-card { padding: 28px 22px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: auto; }
    .review-item { grid-template-columns: 1fr; gap: 4px; }
    .setup-header { align-items: flex-start; }
    .metric-grid { grid-template-columns: 1fr; }
    .sidebar-nav { grid-template-columns: 1fr; }
    .topbar { height: auto; padding: 17px; align-items: flex-start; }
    .user-chip .environment-badge { display: none; }
    .page-content { padding: 20px 17px 40px; }
    .version-header { align-items: flex-start; }
}


/* -------------------------------------------------------------------------
   Version 0.1.1-dev: QPGOE MPC staff interface-inspired visual language and official logo
   ------------------------------------------------------------------------- */
.portal-logo {
    display: block;
    width: 66px;
    height: 66px;
    object-fit: contain;
}

.portal-logo.large {
    width: 100px;
    height: 100px;
}

.login-official-logo {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .18));
}

.setup-official-logo {
    width: 66px;
    height: 66px;
}

.sidebar-official-logo {
    width: 54px;
    height: 54px;
}

.branding-preview {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 18px 0;
    padding: 18px;
    border: 1px solid var(--line);
    background: #fafafa;
}

.branding-preview-logo {
    flex: 0 0 auto;
}

/* Staff-system-inspired portal dashboard */
.portal-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    background: #fafafa;
}

.sidebar {
    min-height: 100vh;
    padding: 0;
    color: #222;
    background: #fff;
    border-right: 1px solid #d7d7d7;
}

.sidebar-brand {
    min-height: 72px;
    padding: 10px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-brand strong {
    color: #1f1f1f;
    font-size: 1.05rem;
}

.sidebar-brand span {
    color: #66727d;
    font-size: .76rem;
    text-transform: uppercase;
}

.sidebar-profile {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 22px 12px 18px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.sidebar-profile > span:last-child {
    color: #666;
    font-size: .78rem;
}

.large-avatar {
    width: 62px;
    height: 62px;
    font-size: 1.35rem;
    background: #eeeeee;
    color: #111;
    border: 1px solid #d7d7d7;
}

.sidebar-nav {
    gap: 0;
    padding: 12px 0;
}

.sidebar-nav a,
.sidebar-button {
    min-height: 42px;
    padding: 11px 18px;
    color: #232323;
    border-radius: 0;
    font-weight: 500;
    font-size: .88rem;
}

.sidebar-nav a.active,
.sidebar-nav a:hover,
.sidebar-button:hover {
    color: #1679b8;
    background: #e8f3fa;
    border-left: 4px solid #1679b8;
    padding-left: 14px;
}

.sidebar-logout {
    margin-top: auto;
    border-top: 1px solid #e0e0e0;
}

.sidebar-footer {
    display: none;
}

.topbar {
    height: 56px;
    padding: 0 20px;
    color: white;
    background: #1679b8;
    border-bottom: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu-button {
    border: 0;
    color: white;
    background: transparent;
    font-size: 1.25rem;
}

.topbar-section {
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, .4);
    font-size: .82rem;
    opacity: .9;
}

.topbar .user-chip {
    color: white;
}

.topbar .avatar {
    color: #1679b8;
    background: white;
}

.topbar-role {
    color: rgba(255, 255, 255, .82);
}

.topbar-notification {
    color: #fff;
    font-size: .75rem;
}

.topbar .environment-badge {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .34);
}

.page-content {
    padding: 24px 28px 50px;
    background: #fafafa;
}

.page-heading {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0 0 3px;
}

.page-heading h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 500;
}

.breadcrumbs {
    padding-left: 20px;
    border-left: 1px solid #cfcfcf;
    color: #555;
    font-size: .88rem;
}

.breadcrumbs span {
    color: #1679b8;
}

.page-subtitle {
    margin: 0 0 22px;
    color: #6c6c6c;
    font-size: .86rem;
}

.metric-grid {
    gap: 14px;
}

.metric {
    min-height: 150px;
    padding: 20px 18px;
    border-top: 3px solid #1679b8;
}

.metric span {
    color: #202124;
    font-size: .9rem;
}

.metric strong {
    margin-top: 28px;
    font-size: 1.9rem;
    font-weight: 500;
}

.metric small {
    color: #6d6d6d;
}

.panel {
    padding: 18px;
}

.panel h2 {
    font-size: 1rem;
    font-weight: 500;
}

.status-list > div {
    grid-template-columns: 170px 1fr;
}

.quick-actions a {
    border-radius: 2px;
    background: #f7f7f7;
    border-color: #dedede;
}

table th {
    color: #555;
    background: #f5f5f5;
}

.member-scope-notice {
    border-radius: 2px;
}

.login-brand-panel {
    background:
        linear-gradient(180deg, rgba(15, 89, 141, .95), rgba(11, 104, 163, .97)),
        #1679b8;
}

.member-portal-title {
    color: #d7f0ff;
}

.brand-rule {
    background: #fff;
}

.login-card {
    border-radius: 3px;
}

.login-card h2 {
    font-weight: 500;
}

.setup-page {
    background: #f4f7f9;
}

.setup-card,
.setup-steps {
    border-radius: 3px;
}

@media (max-width: 820px) {
    .portal-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        min-height: auto;
    }

    .sidebar-profile {
        display: none;
    }

    .sidebar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .breadcrumbs {
        padding-left: 0;
        border-left: 0;
    }
}


/* =========================================================================
   QPGOE MPC Member Portal Login — Version 0.1.2-dev
   Primary reference: accepted QPGOE MPC staff-login cover/card composition
   ========================================================================= */
.member-login-wrapper {
    --member-login-cover:
        linear-gradient(135deg, rgba(8, 47, 120, .95), rgba(21, 101, 192, .82));
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .08), transparent 32%),
        linear-gradient(135deg, #f8fafc 0%, #eef4fb 100%);
    background-attachment: fixed;
    background-size: 100vw 100vh;
    color: #0f1f44;
    font-family: Roboto, Arial, Helvetica, sans-serif;
}

.member-login-cover {
    width: 46%;
    min-height: 100vh;
    flex: 0 0 46%;
    position: relative;
    overflow: hidden;
    background-image:
        linear-gradient(135deg, rgba(8, 47, 120, .95), rgba(21, 101, 192, .82)),
        var(--member-login-cover);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.member-login-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, .22) 1.15px, transparent 1.15px);
    background-size: 18px 18px;
    opacity: .28;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 44%, transparent 56%, #000 100%);
    mask-image: linear-gradient(to bottom, #000 0%, transparent 44%, transparent 56%, #000 100%);
}

.member-login-cover::after {
    content: "";
    position: absolute;
    top: -8%;
    right: -290px;
    z-index: 2;
    width: 420px;
    height: 116%;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .08), transparent 32%),
        linear-gradient(135deg, #f8fafc 0%, #eef4fb 100%);
    background-attachment: fixed;
    background-size: 100vw 100vh;
    box-shadow: -18px 0 0 rgba(147, 197, 253, .22);
}

.member-login-cover-overlay {
    position: relative;
    z-index: 3;
    width: 100%;
    min-height: 100vh;
    padding: 66px 64px 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.member-cover-logo-section {
    margin-bottom: 28px;
}

.member-cover-logo {
    width: 112px;
    height: 112px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .28));
}

.member-cover-brand-content {
    max-width: 560px;
}

.member-cover-brand-content h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 3vw, 48px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: .2px;
    text-shadow: 0 8px 20px rgba(0, 0, 0, .28);
}

.member-cover-subtitle {
    margin-top: 8px;
    color: #bfdbfe;
    font-size: clamp(25px, 2.3vw, 39px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: .5px;
    text-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.member-cover-organization {
    margin-top: 20px;
    color: rgba(255, 255, 255, .96);
    font-size: clamp(16px, 1.35vw, 22px);
    line-height: 1.45;
    font-weight: 600;
    text-shadow: 0 6px 14px rgba(0, 0, 0, .18);
}

.member-cover-line {
    width: 72px;
    height: 3px;
    margin: 31px 0 26px;
    border-radius: 999px;
    background: rgba(147, 197, 253, .95);
}

.member-cover-description {
    margin: 0;
    color: rgba(255, 255, 255, .96);
    font-size: clamp(17px, 1.25vw, 21px);
    line-height: 1.48;
    font-weight: 600;
}

.member-cover-feature-list {
    width: 100%;
    max-width: 570px;
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.member-cover-feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    color: #fff;
}

.member-cover-feature-icon {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #bfdbfe;
}

.member-cover-feature-icon svg {
    width: 31px;
    height: 31px;
}

.member-cover-feature strong {
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
}

.member-cover-feature > span:last-child {
    color: rgba(255, 255, 255, .91);
    font-size: 11.5px;
    line-height: 1.36;
    font-weight: 400;
}

.member-login-panel {
    width: 54%;
    min-height: 100vh;
    flex: 1 1 auto;
    padding: 42px 32px 42px 74px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    z-index: 4;
    overflow: hidden;
}

.member-login-panel::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
    width: 360px;
    height: 280px;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(37, 99, 235, .18) 1px, transparent 1.25px);
    background-size: 12px 12px;
    opacity: .28;
    -webkit-mask-image: linear-gradient(135deg, #000 0%, transparent 72%);
    mask-image: linear-gradient(135deg, #000 0%, transparent 72%);
}

.member-login-card-container {
    width: 100%;
    max-width: 620px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.member-login-card {
    width: 100%;
    max-width: 560px;
    padding: 36px 42px 32px;
    border: 1px solid rgba(37, 99, 235, .08);
    border-radius: 28px;
    background: rgba(255, 255, 255, .97);
    box-shadow:
        0 28px 70px rgba(15, 23, 42, .12),
        0 8px 18px rgba(37, 99, 235, .06);
    backdrop-filter: blur(10px);
}

.member-login-card-header {
    text-align: center;
    margin-bottom: 24px;
}

.member-environment-badge {
    width: max-content;
    margin: 0 auto 20px;
    padding: 8px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #0b57c7;
    background: #eff6ff;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .25px;
    white-space: nowrap;
}

.member-environment-badge span {
    font-size: 13px;
    font-weight: 900;
}

.member-login-card-header h2 {
    margin: 0;
    color: #0f1f44;
    font-size: clamp(30px, 2.3vw, 42px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.2px;
}

.member-login-card-header p {
    margin: 13px auto 0;
    max-width: 420px;
    color: #475569;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 400;
}

.member-login-divider {
    width: 100%;
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    color: #2563eb;
}

.member-login-divider span {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, .55));
}

.member-login-divider span:last-child {
    background: linear-gradient(90deg, rgba(37, 99, 235, .55), transparent);
}

.member-login-divider i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
}

.member-login-divider i svg {
    width: 22px;
    height: 22px;
}

.member-login-form {
    display: grid;
    gap: 18px;
}

.member-login-field {
    display: grid;
    gap: 8px;
    color: #1f2937;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
}

.member-login-input-wrap {
    width: 100%;
    min-height: 58px;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.member-login-input-wrap:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .11);
}

.member-login-input-icon {
    width: 44px;
    height: 100%;
    display: grid;
    place-items: center;
    color: #475569;
}

.member-login-input-icon svg,
.member-password-toggle svg {
    width: 21px;
    height: 21px;
}

.member-login-input-wrap input {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding: 0 11px;
    border: 0;
    outline: 0;
    color: #172033;
    background: transparent;
    font-size: 15px;
}

.member-password-toggle {
    width: 48px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 0;
    color: #475569;
    background: transparent;
}

.member-login-actions {
    margin-top: -5px;
    display: flex;
    justify-content: flex-end;
    font-size: 13px;
}

.member-login-submit {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, #0d64d9, #1289c7);
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 9px 20px rgba(13, 100, 217, .16);
}

.member-login-submit:hover {
    filter: brightness(.98);
}

.member-administrator-access {
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.member-administrator-access button {
    border: 0;
    color: #1d5fc1;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
}

.member-login-footer {
    display: grid;
    gap: 7px;
    color: #64748b;
    text-align: center;
    font-size: 11px;
    line-height: 1.4;
}

.member-login-footer a {
    color: #64748b;
}

.member-login-footer strong,
.member-login-footer > div a {
    color: #0b57c7;
}

@media (max-width: 1500px) {
    .member-cover-feature-list {
        max-width: 500px;
        gap: 18px;
        margin-top: 54px;
        padding-right: 90px;
    }

    .member-cover-feature > span:last-child {
        display: none;
    }
}

@media (max-width: 1180px) {
    .member-login-cover-overlay {
        padding-left: 45px;
        padding-right: 45px;
    }

    .member-login-panel {
        padding-left: 48px;
    }

    .member-login-card {
        max-width: 520px;
    }
}

@media (max-width: 960px) {
    .member-login-wrapper {
        display: block;
        overflow-y: auto;
    }

    .member-login-cover {
        width: 100%;
        min-height: 430px;
        flex: none;
    }

    .member-login-cover::after {
        display: none;
    }

    .member-login-cover-overlay {
        min-height: 430px;
        padding: 42px 36px;
    }

    .member-cover-feature-list {
        margin-top: 35px;
        max-width: 620px;
        padding-right: 0;
    }

    .member-cover-feature > span:last-child {
        display: inline;
    }

    .member-login-panel {
        width: 100%;
        min-height: auto;
        padding: 46px 24px 60px;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .member-login-cover {
        min-height: 390px;
    }

    .member-login-cover-overlay {
        min-height: 390px;
        padding: 34px 24px;
    }

    .member-cover-logo {
        width: 82px;
        height: 82px;
    }

    .member-cover-brand-content h1 {
        font-size: 30px;
    }

    .member-cover-subtitle {
        font-size: 25px;
    }

    .member-cover-organization {
        font-size: 15px;
    }

    .member-cover-description {
        font-size: 16px;
    }

    .member-cover-feature-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .member-cover-feature strong {
        font-size: 11px;
    }

    .member-cover-feature > span:last-child {
        display: none;
    }

    .member-login-panel {
        padding: 28px 16px 44px;
    }

    .member-login-card {
        padding: 29px 22px 25px;
        border-radius: 20px;
    }

    .member-login-card-header h2 {
        font-size: 30px;
    }

    .member-login-card-header p {
        font-size: 14px;
    }
}

@media (max-height: 760px) and (min-width: 961px) {
    .member-login-cover-overlay {
        padding-top: 34px;
        padding-bottom: 30px;
    }

    .member-cover-logo-section {
        margin-bottom: 18px;
    }

    .member-cover-logo {
        width: 84px;
        height: 84px;
    }

    .member-cover-brand-content h1 {
        font-size: 34px;
    }

    .member-cover-subtitle {
        font-size: 27px;
    }

    .member-cover-organization {
        margin-top: 12px;
        font-size: 15px;
    }

    .member-cover-line {
        margin: 20px 0 17px;
    }

    .member-cover-description {
        font-size: 16px;
    }

    .member-cover-feature-list {
        margin-top: 30px;
    }

    .member-login-card {
        padding-top: 27px;
        padding-bottom: 25px;
    }

    .member-login-card-header {
        margin-bottom: 18px;
    }

    .member-login-card-header h2 {
        font-size: 31px;
    }

    .member-login-divider {
        margin-top: 17px;
    }

    .member-login-form {
        gap: 13px;
    }

    .member-login-input-wrap {
        min-height: 51px;
    }

    .member-login-input-wrap input,
    .member-password-toggle {
        min-height: 49px;
        height: 49px;
    }
}


.branding-assets-grid {
    display: grid;
    grid-template-columns: minmax(180px, .45fr) minmax(300px, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.branding-asset-preview {
    min-height: 180px;
    padding: 18px;
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 12px;
    border: 1px solid var(--line);
    background: #fafafa;
}

.branding-cover-preview {
    width: 100%;
    max-height: 230px;
    object-fit: cover;
    border: 1px solid #d8dee8;
}

.branding-cover-placeholder {
    width: 100%;
    min-height: 160px;
    display: grid;
    place-items: center;
    color: var(--muted);
    border: 1px dashed #b8c3d2;
    background: #f3f6f9;
}

@media (max-width: 760px) {
    .branding-assets-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================================
   Version 0.1.3-dev — pixel-level correction against accepted reference
   ========================================================================= */

/* Ensure the actual cover image is visible beneath the blue overlay. */
.member-login-cover {
    flex-basis: 45%;
    width: 45%;
    background-image:
        linear-gradient(180deg, rgba(12, 63, 142, .87), rgba(18, 92, 174, .88)),
        var(--member-login-cover);
    background-position: center center;
    background-size: cover;
}

/* Match the accepted curve: narrow at the top, wider toward the bottom. */
.member-login-cover::after {
    right: -218px;
    top: -7%;
    width: 300px;
    height: 114%;
    border-radius: 50%;
    box-shadow: -12px 0 0 rgba(147, 197, 253, .22);
}

/* Move the main brand block down to the same vertical region as the reference. */
.member-login-cover-overlay {
    padding: 0 44px 38px;
    justify-content: flex-start;
}

.member-cover-logo-section {
    margin-top: 274px;
    margin-bottom: 22px;
}

.member-cover-logo {
    width: 74px;
    height: 74px;
}

.member-cover-brand-content h1 {
    font-size: 35px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: 0;
}

.member-cover-subtitle {
    margin-top: 5px;
    font-size: 27px;
    line-height: 1.08;
    font-weight: 700;
    color: #c8ddff;
}

.member-cover-organization {
    margin-top: 18px;
    font-size: 15.5px;
    line-height: 1.42;
    font-weight: 600;
}

.member-cover-line {
    width: 60px;
    height: 2px;
    margin: 28px 0 22px;
}

.member-cover-description {
    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;
}

.member-cover-feature-list {
    max-width: 480px;
    margin-top: 44px;
    padding-right: 54px;
    gap: 29px;
}

.member-cover-feature-icon svg {
    width: 25px;
    height: 25px;
}

.member-cover-feature strong {
    font-size: 11px;
}

.member-cover-feature > span:last-child {
    font-size: 9.5px;
    line-height: 1.35;
}

/* The previous package made the card too wide and too high. */
.member-login-panel {
    width: 55%;
    padding: 34px 30px 34px 62px;
    justify-content: flex-start;
}

.member-login-card-container {
    max-width: 404px;
    gap: 17px;
}

.member-login-card {
    max-width: 404px;
    padding: 27px 29px 25px;
    border-radius: 22px;
    box-shadow:
        0 22px 56px rgba(15, 23, 42, .12),
        0 6px 15px rgba(37, 99, 235, .05);
}

.member-login-card-header {
    margin-bottom: 18px;
}

.member-environment-badge {
    margin-bottom: 17px;
    padding: 6px 14px;
    font-size: 8px;
}

.member-environment-badge span {
    font-size: 10px;
}

.member-login-card-header h2 {
    font-size: 31px;
    font-weight: 700;
}

.member-login-card-header p {
    max-width: 315px;
    margin-top: 9px;
    font-size: 12px;
    line-height: 1.38;
}

.member-login-divider {
    margin-top: 18px;
    gap: 15px;
}

.member-login-divider i svg {
    width: 18px;
    height: 18px;
}

.member-login-form {
    gap: 13px;
}

.member-login-field {
    gap: 6px;
    font-size: 10px;
}

.member-login-input-wrap {
    min-height: 47px;
    grid-template-columns: 36px 1fr auto;
    border-radius: 8px;
}

.member-login-input-icon {
    width: 36px;
}

.member-login-input-icon svg,
.member-password-toggle svg {
    width: 17px;
    height: 17px;
}

.member-login-input-wrap input {
    min-height: 45px;
    padding: 0 8px;
    font-size: 12px;
}

.member-password-toggle {
    width: 39px;
    height: 45px;
}

.member-login-actions {
    margin-top: -5px;
    font-size: 9px;
}

.member-login-submit {
    min-height: 40px;
    font-size: 11px;
}

.member-administrator-access {
    margin-top: 12px;
    padding-top: 11px;
}

.member-administrator-access button {
    font-size: 9px;
}

.member-login-footer {
    font-size: 8px;
    gap: 5px;
}

/* At the accepted 1618×925 reference size, the card should sit near y=210. */
@media (min-width: 961px) and (min-height: 850px) {
    .member-login-card-container {
        transform: translateY(2px);
    }
}

/* Keep the corrected layout stable on normal laptops. */
@media (max-width: 1500px) and (min-width: 961px) {
    .member-cover-logo-section {
        margin-top: 225px;
    }

    .member-cover-feature-list {
        margin-top: 38px;
        padding-right: 32px;
    }
}

/* For short screens, avoid overflowing while keeping the visual proportion. */
@media (max-height: 800px) and (min-width: 961px) {
    .member-cover-logo-section {
        margin-top: 105px;
        margin-bottom: 14px;
    }

    .member-cover-logo {
        width: 64px;
        height: 64px;
    }

    .member-cover-brand-content h1 {
        font-size: 30px;
    }

    .member-cover-subtitle {
        font-size: 23px;
    }

    .member-cover-organization {
        margin-top: 12px;
        font-size: 13px;
    }

    .member-cover-line {
        margin: 18px 0 15px;
    }

    .member-cover-description {
        font-size: 14px;
    }

    .member-cover-feature-list {
        margin-top: 27px;
    }
}

@media (max-width: 960px) {
    .member-login-cover {
        width: 100%;
    }

    .member-login-cover-overlay {
        padding: 38px 32px;
    }

    .member-cover-logo-section {
        margin-top: 0;
    }

    .member-login-panel {
        width: 100%;
        padding: 42px 20px 55px;
        justify-content: center;
    }

    .member-login-card-container,
    .member-login-card {
        max-width: 440px;
    }
}


/* =========================================================================
   Version 0.1.4-dev — full source-scale correction
   The v0.1.3 Member Portal was approximately 72% of the approved source size.
   ========================================================================= */

.member-login-cover {
    width: 45%;
    flex-basis: 45%;
}

.member-login-cover::after {
    right: -250px;
    top: -7%;
    width: 355px;
    height: 114%;
    border-radius: 50%;
    box-shadow: -15px 0 0 rgba(147, 197, 253, .22);
}

.member-login-cover-overlay {
    padding: 0 52px 46px;
}

.member-cover-logo-section {
    margin-top: 286px;
    margin-bottom: 28px;
}

.member-cover-logo {
    width: 92px;
    height: 92px;
}

.member-cover-brand-content {
    max-width: 590px;
}

.member-cover-brand-content h1 {
    font-size: 45px;
    line-height: 1.08;
    font-weight: 750;
}

.member-cover-subtitle {
    margin-top: 7px;
    font-size: 35px;
    line-height: 1.08;
    font-weight: 750;
}

.member-cover-organization {
    margin-top: 22px;
    font-size: 18px;
    line-height: 1.45;
}

.member-cover-line {
    width: 72px;
    height: 3px;
    margin: 31px 0 26px;
}

.member-cover-description {
    font-size: 20px;
    line-height: 1.48;
}

.member-cover-feature-list {
    max-width: 590px;
    margin-top: 62px;
    padding-right: 72px;
    gap: 30px;
}

.member-cover-feature-icon svg {
    width: 32px;
    height: 32px;
}

.member-cover-feature strong {
    font-size: 13px;
}

.member-cover-feature > span:last-child {
    display: inline;
    font-size: 11.5px;
    line-height: 1.38;
}

.member-login-panel {
    width: 55%;
    padding: 40px 32px 40px 92px;
    justify-content: flex-start;
}

.member-login-card-container {
    width: 100%;
    max-width: 620px;
    gap: 22px;
}

.member-login-card {
    width: 100%;
    max-width: 560px;
    min-height: 620px;
    padding: 40px 42px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 28px;
    box-shadow:
        0 28px 70px rgba(15, 23, 42, .12),
        0 8px 18px rgba(37, 99, 235, .06);
}

.member-login-card-header {
    margin-bottom: 27px;
}

.member-environment-badge {
    margin-bottom: 22px;
    padding: 8px 18px;
    font-size: 11px;
}

.member-environment-badge span {
    font-size: 13px;
}

.member-login-card-header h2 {
    font-size: 42px;
    line-height: 1.1;
    font-weight: 750;
}

.member-login-card-header p {
    max-width: 420px;
    margin-top: 13px;
    font-size: 16px;
    line-height: 1.45;
}

.member-login-divider {
    margin-top: 26px;
    gap: 18px;
}

.member-login-divider i svg {
    width: 22px;
    height: 22px;
}

.member-login-form {
    gap: 20px;
}

.member-login-field {
    gap: 8px;
    font-size: 13px;
}

.member-login-input-wrap {
    min-height: 60px;
    grid-template-columns: 46px 1fr auto;
    border-radius: 12px;
}

.member-login-input-icon {
    width: 46px;
}

.member-login-input-icon svg,
.member-password-toggle svg {
    width: 21px;
    height: 21px;
}

.member-login-input-wrap input {
    min-height: 58px;
    padding: 0 12px;
    font-size: 15px;
}

.member-password-toggle {
    width: 50px;
    height: 58px;
}

.member-login-actions {
    margin-top: -6px;
    font-size: 13px;
}

.member-login-submit {
    min-height: 50px;
    font-size: 14px;
}

.member-administrator-access {
    margin-top: 18px;
    padding-top: 16px;
}

.member-administrator-access button {
    font-size: 13px;
}

.member-login-footer {
    gap: 7px;
    font-size: 11px;
}

@media (min-width: 1600px) and (min-height: 950px) {
    .member-login-card-container {
        transform: translateY(-2px);
    }
}

@media (max-width: 1599px) and (min-width: 961px) {
    .member-login-panel {
        padding-left: 70px;
    }

    .member-login-card-container {
        max-width: 570px;
    }

    .member-login-card {
        max-width: 520px;
        min-height: 580px;
        padding: 34px 36px 30px;
    }

    .member-cover-logo-section {
        margin-top: 220px;
    }

    .member-cover-brand-content h1 {
        font-size: 39px;
    }

    .member-cover-subtitle {
        font-size: 30px;
    }

    .member-cover-feature-list {
        margin-top: 48px;
        padding-right: 42px;
    }
}

@media (max-height: 850px) and (min-width: 961px) {
    .member-cover-logo-section {
        margin-top: 105px;
        margin-bottom: 18px;
    }

    .member-cover-logo {
        width: 76px;
        height: 76px;
    }

    .member-cover-brand-content h1 {
        font-size: 35px;
    }

    .member-cover-subtitle {
        font-size: 27px;
    }

    .member-cover-organization {
        margin-top: 14px;
        font-size: 15px;
    }

    .member-cover-line {
        margin: 21px 0 17px;
    }

    .member-cover-description {
        font-size: 16px;
    }

    .member-cover-feature-list {
        margin-top: 30px;
    }

    .member-login-card {
        min-height: 535px;
        padding-top: 30px;
        padding-bottom: 28px;
    }

    .member-login-card-header {
        margin-bottom: 20px;
    }

    .member-login-card-header h2 {
        font-size: 35px;
    }

    .member-login-divider {
        margin-top: 19px;
    }

    .member-login-form {
        gap: 15px;
    }

    .member-login-input-wrap {
        min-height: 52px;
    }

    .member-login-input-wrap input,
    .member-password-toggle {
        min-height: 50px;
        height: 50px;
    }
}

@media (max-width: 960px) {
    .member-login-cover-overlay {
        padding: 42px 34px;
    }

    .member-cover-logo-section {
        margin-top: 0;
    }

    .member-login-panel {
        padding: 48px 22px 60px;
        justify-content: center;
    }

    .member-login-card-container,
    .member-login-card {
        max-width: 560px;
    }

    .member-login-card {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .member-cover-logo {
        width: 86px;
        height: 86px;
    }

    .member-cover-brand-content h1 {
        font-size: 32px;
    }

    .member-cover-subtitle {
        font-size: 26px;
    }

    .member-login-card {
        padding: 31px 23px 27px;
        border-radius: 21px;
    }

    .member-login-card-header h2 {
        font-size: 31px;
    }

    .member-login-card-header p {
        font-size: 14px;
    }
}


/* =========================================================================
   Version 0.1.5-dev — final source comparison correction
   Source and Member Portal screenshots were compared at ~1970 × 1248.
   ========================================================================= */

/* Narrow the lower curve while preserving the same center position. */
.member-login-cover::after {
    right: -225px;
    width: 320px;
}

/* Source content begins farther from the left browser edge. */
.member-login-cover-overlay {
    padding-left: 72px;
    padding-right: 52px;
}

/* The source logo is visibly larger than v0.1.4. */
.member-cover-logo {
    width: 108px;
    height: 108px;
}

/* The larger logo naturally places the title lower, matching the source. */
.member-cover-brand-content h1 {
    font-size: 55px;
    line-height: 1.05;
}

/* Keep Member Portal visible, but compact enough not to push all content down. */
.member-cover-subtitle {
    margin-top: 4px;
    font-size: 28px;
    line-height: 1.05;
}

.member-cover-organization {
    margin-top: 16px;
    font-size: 19px;
}

.member-cover-line {
    margin-top: 28px;
    margin-bottom: 24px;
}

.member-cover-description {
    font-size: 20px;
}

/* Feature row already aligned vertically; only restore source text/icon scale. */
.member-cover-feature-list {
    margin-top: 56px;
    padding-right: 58px;
}

.member-cover-feature-icon svg {
    width: 34px;
    height: 34px;
}

.member-cover-feature strong {
    font-size: 14px;
}

.member-cover-feature > span:last-child {
    font-size: 12px;
}

/* The card width was already correct. Increase only its vertical scale. */
.member-login-panel {
    padding-left: 96px;
}

.member-login-card {
    max-width: 560px;
    min-height: 665px;
}

/* Keep the source subtitle on one line. */
.member-login-card-header p {
    max-width: none;
    white-space: nowrap;
    font-size: 15px;
}

/*
 * Source Angular fields are approximately 68 screenshot pixels tall.
 * v0.1.4 fields were about 48 pixels tall, so increase vertical controls only.
 */
.member-login-field {
    font-size: 15px;
}

.member-login-input-wrap {
    min-height: 84px;
    grid-template-columns: 52px 1fr auto;
}

.member-login-input-icon {
    width: 52px;
}

.member-login-input-icon svg,
.member-password-toggle svg {
    width: 25px;
    height: 25px;
}

.member-login-input-wrap input {
    min-height: 82px;
    padding: 0 14px;
    font-size: 16px;
}

.member-password-toggle {
    width: 54px;
    height: 82px;
}

/* Keep button scale close to the source; do not enlarge it with the fields. */
.member-login-submit {
    min-height: 48px;
}

/* Restore useful spacing after the taller input controls. */
.member-login-form {
    gap: 18px;
}

.member-login-actions {
    margin-top: -4px;
}

/* Large source-sized desktop screenshot. */
@media (min-width: 1600px) and (min-height: 950px) {
    .member-cover-logo-section {
        margin-top: 278px;
    }

    .member-login-card-container {
        transform: translate(4px, 0);
    }
}

/* Normal desktop/laptop screens keep proportional enlargement. */
@media (max-width: 1599px) and (min-width: 961px) {
    .member-login-panel {
        padding-left: 76px;
    }

    .member-login-card {
        min-height: 625px;
    }

    .member-cover-logo {
        width: 96px;
        height: 96px;
    }

    .member-cover-brand-content h1 {
        font-size: 47px;
    }

    .member-cover-subtitle {
        font-size: 26px;
    }

    .member-login-input-wrap {
        min-height: 74px;
    }

    .member-login-input-wrap input,
    .member-password-toggle {
        min-height: 72px;
        height: 72px;
    }
}

/* Short screens remain usable without reverting to the undersized design. */
@media (max-height: 850px) and (min-width: 961px) {
    .member-cover-logo {
        width: 82px;
        height: 82px;
    }

    .member-cover-brand-content h1 {
        font-size: 39px;
    }

    .member-cover-subtitle {
        font-size: 23px;
    }

    .member-login-card {
        min-height: 570px;
    }

    .member-login-input-wrap {
        min-height: 62px;
    }

    .member-login-input-wrap input,
    .member-password-toggle {
        min-height: 60px;
        height: 60px;
    }
}

/* Prevent one-line subtitle overflow on tablets and phones. */
@media (max-width: 960px) {
    .member-login-card-header p {
        white-space: normal;
    }

    .member-login-cover-overlay {
        padding-left: 34px;
        padding-right: 34px;
    }
}

@media (max-width: 640px) {
    .member-cover-logo {
        width: 88px;
        height: 88px;
    }

    .member-cover-brand-content h1 {
        font-size: 34px;
    }

    .member-cover-subtitle {
        font-size: 23px;
    }

    .member-login-input-wrap {
        min-height: 60px;
    }

    .member-login-input-wrap input,
    .member-password-toggle {
        min-height: 58px;
        height: 58px;
    }
}


/* =========================================================================
   Version 0.1.55.10-dev — standardized platform footer
   ========================================================================= */
.platform-footer-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 100%;
    line-height: 1.45;
    text-align: center;
}

.platform-footer-separator {
    margin: 0 2px;
    color: currentColor;
}

.platform-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #0758ca !important;
    font-weight: 600 !important;
    text-decoration: none;
}

.platform-footer-link:hover,
.platform-footer-link:focus-visible {
    color: #0648ad !important;
    text-decoration: underline;
}

.platform-footer-link svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
}

.sr-only {
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    position: absolute !important;
}

@media (max-width: 640px) {
    .platform-footer-copy {
        column-gap: 3px;
        font-size: inherit;
    }
}

/* =========================================================================
   Version 0.1.55.35-dev — shared public Portal footer component
   Customization, Hosting and Maintenance by WTECH Network Solutions FZC.
   ========================================================================= */
.public-portal-footer {
    width: 100%;
    min-height: 54px;
    margin-top: auto;
    padding: 15px clamp(16px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-sizing: border-box;
    border-top: 1px solid #dbe5f1;
    background: rgba(255, 255, 255, .94);
    color: #74839a;
    font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

.public-portal-footer-inner {
    width: 100%;
    max-width: 1280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.public-portal-footer .platform-footer-copy {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.public-portal-footer .platform-footer-link {
    font-size: inherit;
    line-height: inherit;
}

@media (max-width: 760px) {
    .public-portal-footer {
        min-height: 64px;
        padding: 14px 16px;
        font-size: 10.5px;
    }

    .public-portal-footer .platform-footer-copy {
        flex-wrap: wrap;
        white-space: normal;
        row-gap: 2px;
    }
}

@media print {
    .public-portal-footer {
        display: none !important;
    }
}

/* =========================================================================
   Version 0.1.55.37-dev — true public page footer placement
   Customization, Hosting and Maintenance by WTECH Network Solutions FZC.
   ========================================================================= */
.public-portal-footer {
    position: relative !important;
    inset: auto !important;
    clear: both !important;
    align-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    margin: auto 0 0 !important;
    box-sizing: border-box !important;
}

.public-portal-footer-inner {
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.public-portal-footer .platform-footer-copy {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}


/* v0.1.55.128-dev secure public membership upload states */
.secure-supporting-upload-field small{display:block;margin-top:7px;color:#52677f;line-height:1.45}.secure-upload-unavailable-notice{display:grid;gap:5px;padding:13px 15px;border:1px solid #bfdbfe;border-left:4px solid #2563eb;border-radius:9px;background:#eff6ff;color:#1e3a5f}.secure-upload-unavailable-notice strong{color:#124f9e}.secure-upload-unavailable-notice p{margin:0;line-height:1.5}.application-inline-error{margin-top:8px;padding:9px 12px;border:1px solid #fecaca;border-radius:8px;background:#fff1f2;color:#b42318;font-weight:700}

/* v0.1.55.128-dev electronic-signature-top-spacing-hotfix */
.membership-application-form .electronic-signature-field {
    margin-top: 18px !important;
}

/* ========================================================================
   QPGOE_MPC_R002_HIDE_PUBLIC_PORTAL_VENDOR_CREDIT
   QPGOE-MPC-MEMBER-PORTAL-FOOTER-CREDIT-HIDE-20260910-001

   Keep:
     QPGOE MPC Member Portal · Version ...

   Hide:
     · Customization, Hosting & Maintenance by WTECH Network Solutions FZC
   ======================================================================== */

.public-portal-footer
.platform-footer-copy
> .platform-footer-separator:nth-last-of-type(2),

.public-portal-footer
.platform-footer-copy
> span:last-of-type,

.public-portal-footer
.platform-footer-copy
> a.platform-footer-link {
    display: none !important;
}

/* QPGOE_MPC_R002_HIDE_PUBLIC_PORTAL_VENDOR_CREDIT_END */

/* ========================================================================
   QPGOE_MPC_R003_HIDE_STAFF_WORKSPACE_VENDOR_CREDIT
   QPGOE-MPC-MEMBER-PORTAL-FOOTER-CREDIT-HIDE-20260910-001

   Staff Workspace footer

   Keep:
     QPGOE MPC Member Portal · Version ...

   Hide:
     · Customization, Hosting & Maintenance by WTECH Network Solutions FZC
   ======================================================================== */

footer.page-footer
.platform-footer-copy
> .platform-footer-separator:nth-last-of-type(2),

footer.page-footer
.platform-footer-copy
> span:last-of-type,

footer.page-footer
.platform-footer-copy
> a.platform-footer-link {
    display: none !important;
}

/* QPGOE_MPC_R003_HIDE_STAFF_WORKSPACE_VENDOR_CREDIT_END */
