﻿/* ============================================================
   Golden Considerations Partner Portal
   portal.css  —  place in App_Themes/GC/ AND App_Themes/GC2026/
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --forest: #2d5a49;
    --forest-deep: #213f30;
    --gold: #d4a034;
    --bg: #f0f4f2;
    --surface: #ffffff;
    --border: #e2e2dc;
    --text: #212926;
    --muted: #6b7280;
    --danger: #dc2626;
    --input-bd: #d1d5db;
    --radius-lg: 14px;
    --radius-md: 8px;
    --shadow-card: 0 1px 3px rgba(0,0,0,.06), 0 12px 40px rgba(0,0,0,.10);
    --font: Inter, system-ui, -apple-system, sans-serif;
    --header-h: 96px; /* py-2 (8+8) + 80px logo */
}

@media (min-width: 768px) {
    :root {
        --header-h: 96px;
    }
}
/* py-2 (8+8) + 80px logo */
@media (min-width: 1024px) {
    :root {
        --header-h: 136px;
    }
}
/* py-3 (12+12) + h-28 (112px) — exact main site */

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100vh;
}

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
}

a {
    color: var(--forest);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* ── Page shell ─────────────────────────────────────────────── */
#site-main {
    min-height: calc(100vh - var(--header-h) - 56px);
}

/* ── Header ─────────────────────────────────────────────────── */
#site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50; /* always on top of nav */
    height: var(--header-h); /* explicit height so nav top is reliable */
    background: rgba(253,252,251,.80);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226,219,207,.50);
    overflow: visible; /* logo allowed to overflow for hover scale */
}

#header-inner {
    max-width: 1280px;
    width: 100%;
    height: 100%; /* fill the fixed header height */
    margin: 0 auto;
    padding: 0 24px; /* horizontal padding only — vertical handled by height+flex */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 1024px) {
    #header-inner {
        padding: 0 0px;
    }
}

@media (max-width: 560px) {
    #header-inner {
        padding: 0 0px;
    }
}

/* Logo */
#header-logo {
    display: flex;
    align-items: center;
    overflow: visible;
    margin: 0;
    padding: 0;
    text-decoration: none;
    line-height: 0;
}

    #header-logo img {
        height: 80px;
        width: auto;
        object-fit: contain;
        display: block;
        margin: 0 0 0 0; /* compensate for PNG's built-in transparent padding */
        padding: 0;
        transition: transform .3s;
    }

    #header-logo:hover img {
        transform: scale(1.05);
    }

@media (min-width: 768px) {
    #header-logo img {
        height: 80px;
    }
}

@media (min-width: 1024px) {
    #header-logo img {
        height: 112px;
        margin-left: -28px;
    }
}
/* h-28 — exact main site */

/* Actions */
#header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    #header-actions {
        margin-right: 0px;
    }
}

@media (min-width: 1024px) {
    #header-actions {
        margin-right: -24px;
    }
}

#back-to-site {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: color .2s, background .2s;
    line-height: 1;
    text-decoration: none;
}

    #back-to-site:hover {
        color: var(--text);
        background: hsl(40 10% 96% / .5);
        text-decoration: none;
    }

#header-actions a.btn-signout,
#header-actions a[id*="LoginStatus"] {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid var(--forest);
    border-radius: 6px;
    background: var(--forest);
    transition: background .15s, color .15s, border-color .15s;
    cursor: pointer;
    line-height: 1;
}

    #header-actions a.btn-signout:hover,
    #header-actions a[id*="LoginStatus"]:hover {
        background: var(--forest-deep);
        border-color: var(--forest-deep);
        color: #fff;
        text-decoration: none;
    }

/* ── Nav bar (logged-in only) ───────────────────────────────── */
#site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 40; /* below header z-index:50 — header always wins */
    background: var(--forest);
}

    #site-nav ul {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 24px; /* match header px-6 */
        list-style: none;
        display: flex;
    }

@media (min-width: 1024px) {
    #site-nav ul {
        padding: 0 32px;
    }
}

@media (max-width: 560px) {
    #site-nav ul {
        padding: 0 16px;
    }
}

#site-nav ul li {
    position: relative;
}

    #site-nav ul li > a,
    #site-nav ul li > span {
        display: block;
        padding: 11px 16px;
        color: #fff;
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        transition: color .15s, background .15s;
        cursor: pointer;
    }

        #site-nav ul li > a:hover {
            color: #fff;
            background: rgba(255,255,255,.08);
            text-decoration: none;
        }


    /* Dropdown */
    #site-nav ul li ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--forest);
        border: 1px solid rgba(255,255,255,.12);
        border-radius: var(--radius-md);
        padding: 4px 0;
        min-width: 200px;
        box-shadow: 0 8px 24px rgba(0,0,0,.25);
        z-index: 200;
    }

    #site-nav ul li.has-dropdown:hover > ul {
        display: block;
    }

    #site-nav ul li ul li a {
        padding: 10px 16px;
        display: block;
        color: #fff;
        font-size: 13px;
    }

        #site-nav ul li ul li a:hover {
            color: #fff;
            background: rgba(255,255,255,.08);
            text-decoration: none;
        }

/* Push main content below fixed header + nav */
body:has(#site-nav) #site-main {
    padding-top: calc(var(--header-h) + 44px);
}

body:not(:has(#site-nav)) #site-main {
    padding-top: var(--header-h);
}

/* ── Footer ─────────────────────────────────────────────────── */
#site-footer {
    text-align: center;
    padding: 18px 24px 32px;
    font-size: 12px;
    color: var(--muted);
}

    #site-footer a {
        color: var(--muted);
        font-weight: 600;
    }

        #site-footer a:hover {
            color: var(--forest);
        }

/* ── LOGIN PAGE ─────────────────────────────────────────────── */
#login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 24px 48px;
    min-height: calc(100vh - var(--header-h) - 56px);
}

#login-card-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 460px;
}

#login-icon {
    width: 66px;
    height: 66px;
    background: #dce5e1;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: none !important;
}

#login-card {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

#login-card-header {
    padding: 32px 40px 0;
    text-align: center;
}

    #login-card-header h1 {
        font-size: 22px;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 6px;
    }

    #login-card-header p {
        font-size: 14px;
        color: var(--muted);
    }

#login-card-body {
    padding: 28px 40px 24px;
}

#login-card-footer {
    border-top: 1px solid var(--border);
    padding: 20px 40px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}

    #login-card-footer a {
        color: var(--forest);
        font-weight: 700;
    }

        #login-card-footer a:hover {
            text-decoration: underline;
        }

/* ── Form fields ────────────────────────────────────────────── */
.field-group {
    margin-bottom: 20px;
}

    .field-group label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 7px;
    }

.input-wrap {
    position: relative;
}

    .input-wrap::before {
        content: '';
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        pointer-events: none;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

.input-wrap--email::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}

.input-wrap--password::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

.field-input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 42px;
    border: 1px solid var(--input-bd);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: var(--font);
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

    .field-input::placeholder {
        color: #b0b7c3;
    }

    .field-input:focus {
        border-color: var(--forest);
        box-shadow: 0 0 0 3px rgba(45,90,69,.12);
    }

.field-error {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #b91c1c !important;
}

.login-error {
    display: block;
    background: #fff1f1;
    border: 1px solid #f87171;
    border-left: 4px solid #b91c1c;
    color: #7f1d1d !important;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 20px;
}

    .login-error:empty {
        display: none;
    }

    .login-error ul {
        margin: 4px 0 0 0;
        padding-left: 18px;
    }

/* ── Remember me + forgot password row ─────────────────────── */
#login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    font-weight: 400;
}

    .remember-label input[type="checkbox"] {
        width: 15px;
        height: 15px;
        accent-color: var(--forest);
        cursor: pointer;
        flex-shrink: 0;
    }

.forgot-link {
    font-size: 13px;
    color: var(--muted) !important;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    padding: 0;
    transition: color .2s;
}

    .forgot-link:hover {
        color: var(--forest) !important;
        text-decoration: underline;
    }

/* ── Log In button ──────────────────────────────────────────── */
.btn-login,
a.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    background: var(--forest);
    color: #fff !important;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font);
    letter-spacing: .03em;
    cursor: pointer;
    transition: background .2s, transform .1s, box-shadow .2s;
    box-shadow: 0 2px 8px rgba(45,90,69,.22);
    text-decoration: none !important;
}

    .btn-login:hover,
    a.btn-login:hover {
        background: var(--forest-deep);
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(45,90,69,.3);
        text-decoration: none !important;
        color: #fff !important;
    }

    .btn-login:active {
        transform: translateY(0);
    }

/* ── LOGGED-IN DASHBOARD ────────────────────────────────────── */
#dashboard-welcome {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px;
}

#dashboard-welcome-inner {
    margin-bottom: 32px;
}

    #dashboard-welcome-inner h1 {
        font-size: 26px;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 12px;
    }

    #dashboard-welcome-inner p {
        font-size: 15px;
        color: var(--muted);
    }

.password-warning {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
}

    .password-warning a {
        color: #dc2626;
        font-weight: 700;
        text-decoration: underline;
    }

#dashboard-announcements {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

    #dashboard-announcements h2 {
        font-size: 16px;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border);
    }

    #dashboard-announcements p {
        font-size: 14px;
        color: var(--muted);
        line-height: 1.6;
    }

    #dashboard-announcements a {
        color: var(--forest);
        font-weight: 600;
    }

/* ── Error page ─────────────────────────────────────────────── */
#login-page:has(svg[stroke="#b91c1c"]) #login-icon {
    background: #fff1f1;
    border-color: #fecaca;
}

.error-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.error-contact-link {
    font-size: 13px;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

    .error-contact-link:hover {
        color: var(--forest);
    }

/* ── New Account page extras ────────────────────────────────── */
.field-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    margin-bottom: 12px;
}

.field-section-note,
.field-label-note {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
    color: var(--muted);
}

.field-divider-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 16px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

    .field-divider-or::before,
    .field-divider-or::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 560px) {
    #login-page {
        padding: 44px 16px 40px;
    }

    #login-card-header {
        padding: 24px 24px 0;
    }

    #login-card-body {
        padding: 20px 24px 16px;
    }

    #login-card-footer {
        padding: 16px 24px;
    }
}

/* ── Customer Care page ─────────────────────────────────────── */
#dashboard-welcome:has(.care-grid) {
    max-width: 1100px;
}

.care-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.care-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

    .care-card h3 {
        font-size: 14px;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 8px;
    }

        .care-card h3 a {
            color: var(--forest);
        }

            .care-card h3 a:hover {
                text-decoration: underline;
            }

.care-address {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 10px;
}

    .care-address em {
        font-style: italic;
        font-size: 12px;
    }

.care-contacts {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .care-contacts span {
        font-size: 13px;
        color: var(--text);
    }

    .care-contacts strong {
        color: var(--muted);
        font-weight: 600;
    }

#dashboard-announcements .care-entry {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

#dashboard-announcements .care-address {
    margin-bottom: 0;
}

@media (max-width: 560px) {
    .care-grid {
        grid-template-columns: 1fr;
    }
}



/* ── Custom Statement List ──────────────────────────────────── */
.stmt-list {
    border: 1px solid var(--input-bd);
    border-radius: var(--radius-md);
    overflow-y: auto;
    height: 280px;
    background: #fff;
}

.stmt-item {
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background .12s, color .12s;
    user-select: none;
}

    .stmt-item:last-child {
        border-bottom: none;
    }

    .stmt-item:hover {
        background: var(--bg);
    }

.stmt-item--selected {
    background: var(--forest);
    color: #fff;
    font-weight: 600;
}

    .stmt-item--selected:hover {
        background: var(--forest-deep);
    }

/* ── Header Sign Out button — see #header-actions rules above ── */

/* ── Field row (side-by-side fields) ────────────────────────── */
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 560px) {
    .field-row {
        grid-template-columns: 1fr;
    }
}