/* ============================================================
   landing.css — Shared styles for public/auth landing pages
   (login, forgot-password). All classes are prefixed `lp-`.
   ============================================================ */

:root {
    --lp-navy: #17324d;
    --lp-teal: #0e7490;
    --lp-text: #475569;
    --lp-muted: #64748b;
    --lp-border: #e2e8f0;
}

html { margin: 0; padding: 0; }
.lp-page,
.lp-page * { margin: 0; padding: 0; box-sizing: border-box; }
.lp-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--lp-text);
    background: #fff;
    line-height: 1.55;
    width: 100%;
    overflow-x: hidden;
}
.lp-page img { max-width: 100%; display: block; }
.lp-page a { text-decoration: none; color: inherit; }

/* ── Top bar (login) — flows at the top of the hero, over the gradient ── */
.lp-topbar {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; max-width: 1200px; margin: 0 auto;
    padding: 0 0 2.5rem;
    z-index: 10;
}
.lp-brand { display: flex; align-items: center; gap: .55rem; }
.lp-brand img { height: 34px; display: block; }
.lp-brand-text { font-size: 1.3rem; font-weight: 800; color: var(--lp-navy); letter-spacing: -.02em; line-height: 1; }
.lp-powered { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--lp-muted); font-weight: 500; line-height: 1; }
.lp-powered img { height: 22px; display: block; }
.lp-powered strong { color: var(--lp-navy); font-weight: 800; }

/* ── Top nav (forgot-password) ── */
.lp-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 2.5rem; border-bottom: 1px solid var(--lp-border);
}

/* ── Hero (login) ── */
.lp-hero {
    position: relative;
    min-height: 500px;
    display: flex; flex-direction: column;
    padding: 1.75rem 2.5rem 3rem;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 78% 8%, rgba(255,248,225,.85) 0%, rgba(255,248,225,0) 42%),
        linear-gradient(180deg,
            #cfeaf6 0%,
            #d8eef4 26%,
            #e4f2ec 48%,
            #cfe6cf 66%,
            #a9cf9f 82%,
            #7fb173 100%);
}
/* Optional real hero photo — drop an image at public/images/client/login-hero.jpg
   and set the background-image on .lp-hero--photo::before below. */
.lp-hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image: none;
    background-size: cover; background-position: center;
    opacity: .55;
    pointer-events: none;
}
.lp-hero::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
    background: linear-gradient(180deg, rgba(90,140,80,0) 0%, rgba(70,120,64,.35) 100%);
    pointer-events: none;
}
.lp-hero-inner {
    position: relative; z-index: 2;
    width: 100%; max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 420px; gap: 4rem; align-items: start;
}
.lp-script {
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-size: 1.9rem; color: var(--lp-teal); font-weight: 400;
    margin-top: 1.8rem; line-height: 1.2; opacity: .9;
    text-shadow: 0 1px 2px rgba(255,255,255,.6);
}

/* ── SSO pages: identical to the forgot-password page (wider card for forms) ── */
.lp-page--sso { display: flex; flex-direction: column; min-height: 100vh; }
.lp-page--sso .lp-hero--light .lp-hero-inner {
    grid-template-columns: 1fr 560px;
    align-items: stretch;
}
@media (max-width: 1024px) {
    .lp-page--sso .lp-hero--light .lp-hero-inner { grid-template-columns: 1fr 480px; }
}
@media (max-width: 860px) {
    .lp-page--sso .lp-hero--light .lp-hero-inner { grid-template-columns: 1fr; max-width: 620px; }
}

/* ── Hero (forgot-password variant) ── */
.lp-hero--light {
    min-height: 0; flex: 1; padding: 4rem 2.5rem; background: #fff;
}
.lp-hero--light::before,
.lp-hero--light::after { display: none; }
.lp-hero--light .lp-hero-inner {
    max-width: 1120px; grid-template-columns: 1fr 460px; gap: 3.5rem; align-items: stretch;
}
/* Eyebrow top edge aligns with the card's top edge (both start at the grid top). */
.lp-hero-left--offset { padding-top: 0; }

/* Hero text */
.lp-eyebrow {
    font-size: .72rem; font-weight: 700; letter-spacing: .18em;
    color: var(--lp-teal); text-transform: uppercase; margin-bottom: 1rem;
}
.lp-hero h1 {
    font-size: 2.9rem; font-weight: 800; line-height: 1.1;
    color: var(--lp-navy); letter-spacing: -.02em; margin-bottom: .3rem;
}
.lp-hero--light h1 { font-size: 3rem; line-height: 1.08; }
.lp-hero h1 .accent { color: var(--lp-teal); }
.lp-hero-rule { width: 60px; height: 3px; background: var(--lp-teal); border-radius: 2px; margin: .8rem 0 1.1rem; }
.lp-hero--light .lp-hero-rule { margin: 1rem 0 1.3rem; }
.lp-hero-sub { font-size: 1.02rem; color: var(--lp-text); max-width: 460px; margin-bottom: 1.8rem; }
.lp-hero--light .lp-hero-sub { font-size: 1.05rem; color: var(--lp-muted); max-width: 420px; margin-bottom: 0; }

.lp-hero-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.6rem; max-width: 540px; }
.lp-feat { display: flex; gap: .75rem; align-items: flex-start; }
.lp-feat-icon {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px;
    background: var(--lp-teal); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.lp-feat-title { font-size: .86rem; font-weight: 700; color: var(--lp-navy); margin-bottom: .1rem; }
.lp-feat-text { font-size: .78rem; color: var(--lp-muted); line-height: 1.4; }

/* ── Card ── */
.lp-card {
    background: #fff; border-radius: 16px; padding: 2.5rem 2.4rem;
    box-shadow: 0 24px 60px rgba(23,50,77,.16);
}
.lp-card--bordered { padding: 2.3rem; box-shadow: 0 20px 50px rgba(23,50,77,.12); border: 1px solid #f1f5f9; }
.lp-card h2 { font-size: 1.5rem; font-weight: 800; color: var(--lp-navy); margin-bottom: .25rem; }
.lp-card--bordered h2 { font-size: 1.65rem; margin-bottom: .4rem; letter-spacing: -.01em; }
.lp-card-sub { font-size: .85rem; color: var(--lp-muted); margin-bottom: 1.5rem; }
.lp-card--bordered .lp-card-sub { font-size: .9rem; margin-bottom: 1.6rem; }

.lp-alert { border-radius: 8px; padding: .7rem .9rem; font-size: .82rem; margin-bottom: 1rem; }
.lp-alert-danger { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.lp-alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

.lp-field { margin-bottom: 1.1rem; }
.lp-card--bordered .lp-field { margin-bottom: 1.2rem; }
.lp-field label { display: block; font-size: .82rem; font-weight: 600; color: var(--lp-navy); margin-bottom: .4rem; }
.lp-field-wrap { position: relative; display: flex; align-items: center; }
.lp-field-wrap .lp-field-icon { position: absolute; left: .85rem; color: var(--lp-muted); font-size: .85rem; }
.lp-field-wrap input {
    width: 100%; padding: .72rem .85rem .72rem 2.3rem;
    border: 1px solid var(--lp-border); border-radius: 9px;
    font-size: .9rem; font-family: inherit; color: var(--lp-navy);
    transition: border-color .15s, box-shadow .15s;
}
.lp-field-wrap input:focus {
    outline: none; border-color: var(--lp-teal);
    box-shadow: 0 0 0 3px rgba(14,116,144,.12);
}
.lp-toggle-pw {
    position: absolute; right: .7rem; background: none; border: none;
    color: var(--lp-muted); cursor: pointer; font-size: .9rem; padding: .3rem;
}
.lp-forgot { text-align: right; margin: 1.1rem 0 0; }
.lp-forgot a { font-size: .85rem; color: var(--lp-teal); font-weight: 600; }
.lp-forgot a:hover { text-decoration: underline; }

.lp-submit {
    width: 100%; padding: .82rem; border: none; border-radius: 9px;
    background: var(--lp-teal); color: #fff; font-size: .95rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .5rem;
    transition: background .15s; font-family: inherit;
}
.lp-submit:hover { background: #0c657f; }
/* Alias kept for markup that still uses the modifier — same color as base. */
.lp-submit--teal { background: var(--lp-teal); }
.lp-submit--teal:hover { background: #0c657f; }
.lp-submit--teal:hover { background: #0c657f; }

.lp-card-foot {
    text-align: center; font-size: .82rem; color: var(--lp-muted);
    margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--lp-border);
}
.lp-card-foot--left { text-align: left; margin-top: 1.5rem; padding-top: 1.5rem; }
.lp-card-foot--right { text-align: right; margin-top: .85rem; padding-top: .85rem; }
.lp-card-foot a { color: var(--lp-teal); font-weight: 600; }
.lp-card-foot a:hover { text-decoration: underline; }
.lp-back { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--lp-teal); font-weight: 600; }
.lp-back:hover { text-decoration: underline; }

/* ── Status card (SSO message pages) ── */
.lp-status {
    text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 1.5rem 1rem;
}
.lp-status-icon {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1.4rem;
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.lp-status-icon--success { background: #d1fae5; color: #059669; }
.lp-status-icon--warning { background: #fef3c7; color: #d97706; }
.lp-status-icon--danger  { background: #fee2e2; color: #dc2626; }
.lp-status h2 { text-align: center; margin-bottom: .5rem; }
.lp-status .lp-card-sub { text-align: center; max-width: 340px; margin: 0 auto; }
/* Status card stretches to match the left column height; content centered vertically. */
.lp-card--bordered:has(.lp-status) { display: flex; align-items: center; justify-content: center; }

/* ── Form helpers (SSO registration) ── */
.lp-field .lp-req { color: #dc2626; }
.lp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .lp-field-row { grid-template-columns: 1fr; gap: 0; } }
.lp-static-field {
    font-size: .9rem; color: var(--lp-navy); font-weight: 600;
    background: #f8fafc; border: 1px solid var(--lp-border); border-radius: 9px;
    padding: .6rem .85rem; margin-bottom: 1.2rem;
}
.lp-static-field span { color: var(--lp-muted); font-weight: 500; }
.lp-check {
    display: flex; align-items: flex-start; gap: .55rem; cursor: pointer;
    font-size: .8rem; line-height: 1.45; color: var(--lp-text); margin: .2rem 0 1.3rem;
}
.lp-check input { accent-color: var(--lp-teal); width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }

/* ── Hero checklist (SSO context points) ── */
.lp-checklist { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.lp-checklist li {
    display: flex; align-items: flex-start; gap: .6rem;
    font-size: .9rem; color: var(--lp-text); margin-bottom: .75rem;
}
.lp-checklist li i { color: var(--lp-teal); font-size: .95rem; margin-top: .15rem; flex-shrink: 0; }

/* ── Hero step list (icon + title + description rows) ── */
.lp-steps { list-style: none; margin: 1.8rem 0 0; padding: 0; }
.lp-steps li {
    display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.4rem;
}
.lp-steps li:last-child { margin-bottom: 0; }
.lp-step-icon {
    flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.lp-step-icon--teal   { background: #d9f0f7; color: #0e7490; }
.lp-step-icon--blue   { background: #e0f2fe; color: #0284c7; }
.lp-step-icon--violet { background: #ede9fe; color: #7c3aed; }
.lp-step-body { padding-top: .1rem; }
.lp-step-title { font-size: .95rem; font-weight: 700; color: var(--lp-navy); margin-bottom: .15rem; }
.lp-step-text { font-size: .84rem; color: var(--lp-muted); line-height: 1.45; }

/* ── Section head ── */
.lp-section-head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.lp-section-head h3 { font-size: 1.9rem; font-weight: 800; color: var(--lp-navy); letter-spacing: -.02em; margin-bottom: .5rem; }
.lp-section-head p { font-size: .95rem; color: var(--lp-muted); }

/* ── Features strip ── */
.lp-features { padding: 3rem 2.5rem 4rem; background: #fff; }
.lp-features-grid {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.lp-fcard { text-align: center; }
.lp-fcard-icon {
    width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 1.1rem;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.lp-fcard-icon--teal { background: #d9f0f7; color: #0e7490; }
.lp-fcard-icon--violet { background: #ede9fe; color: #7c3aed; }
.lp-fcard-icon--orange { background: #ffedd5; color: #ea580c; }
.lp-fcard-title { font-size: 1.02rem; font-weight: 700; color: var(--lp-navy); margin-bottom: .5rem; }
.lp-fcard-text { font-size: .84rem; color: var(--lp-muted); line-height: 1.5; }

/* ── Unified view ── */
.lp-unified { padding: 3.5rem 2.5rem; background: linear-gradient(120deg, #eaf6fb 0%, #dceef6 100%); }
.lp-unified-inner {
    max-width: 1150px; margin: 0 auto;
    display: grid; grid-template-columns: 400px 1fr; gap: 3rem; align-items: center;
}
.lp-unified-left h3 { font-size: 1.9rem; font-weight: 800; color: var(--lp-navy); letter-spacing: -.02em; margin-bottom: .8rem; line-height: 1.15; }
.lp-unified-left p { font-size: .95rem; color: var(--lp-text); margin-bottom: 1.5rem; }
.lp-learn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .7rem 1.4rem; border: 1.5px solid var(--lp-teal); border-radius: 9px;
    color: var(--lp-teal); font-weight: 700; font-size: .88rem; transition: all .15s;
}
.lp-learn:hover { background: var(--lp-teal); color: #fff; }

/* Dashboard mockup */
.lp-mock { background: #fff; border-radius: 12px; box-shadow: 0 20px 50px rgba(23,50,77,.18); overflow: hidden; }
.lp-mock-bar { display: flex; gap: .4rem; padding: .7rem .9rem; background: #f1f5f9; border-bottom: 1px solid var(--lp-border); }
.lp-dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.lp-mock-body { display: grid; grid-template-columns: 160px 1fr; min-height: 260px; }
.lp-mock-side { background: #17324d; padding: 1rem .8rem; }
.lp-mock-brand { color: #fff; font-size: .78rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: .4rem; }
.lp-mock-nav { color: #94a3b8; font-size: .72rem; padding: .4rem .5rem; border-radius: 6px; margin-bottom: .15rem; display: flex; align-items: center; gap: .5rem; }
.lp-mock-nav.active { background: rgba(255,255,255,.12); color: #fff; }
.lp-mock-main { padding: 1.2rem 1.3rem; }
.lp-mock-hello { font-size: .95rem; font-weight: 700; color: var(--lp-navy); margin-bottom: 1rem; }
.lp-mock-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-bottom: 1.3rem; }
.lp-mock-kpi { background: #f8fafc; border: 1px solid var(--lp-border); border-radius: 8px; padding: .6rem; text-align: center; }
.lp-mock-kpi span { display: block; font-size: .58rem; color: var(--lp-muted); margin-bottom: .25rem; }
.lp-mock-kpi strong { font-size: 1.15rem; color: var(--lp-teal); font-weight: 800; }
.lp-mock-recent-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.lp-mock-recent-head span { font-size: .78rem; font-weight: 700; color: var(--lp-navy); }
.lp-mock-recent-head a { font-size: .66rem; color: var(--lp-teal); font-weight: 600; }
.lp-mock-row { display: flex; align-items: center; gap: .5rem; font-size: .7rem; color: var(--lp-text); padding: .45rem 0; border-bottom: 1px solid #f1f5f9; }
.lp-mock-row i { color: var(--lp-teal); }
.lp-mock-row span { margin-left: auto; color: var(--lp-muted); font-size: .64rem; }

/* ── Testimonial ── */
.lp-quote { text-align: center; padding: 3.5rem 2.5rem; background: #fff; }
.lp-quote-icon {
    width: 56px; height: 56px; border-radius: 50%; background: #e0f2fe; color: var(--lp-teal);
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin: 0 auto 1.3rem;
}
.lp-quote-text { max-width: 720px; margin: 0 auto 1rem; font-size: 1.05rem; font-style: italic; color: var(--lp-navy); line-height: 1.6; }
.lp-quote-author { font-size: .88rem; font-weight: 700; color: var(--lp-muted); }

/* ── Footer ── */
.lp-footer { background: #eaecef; border-top: 1px solid #cdd1d6; padding: 2.2rem 2.5rem 0; }
.lp-footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; gap: 2rem; padding-bottom: 1.6rem; }
.lp-footer-brand { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.lp-footer-brand img { height: 26px; }
.lp-footer-brand span { font-size: 1.05rem; font-weight: 800; color: var(--lp-navy); }
.lp-footer-address div { font-size: .8rem; color: var(--lp-muted); margin-bottom: .3rem; }
.lp-footer-address i { color: var(--lp-teal); width: 16px; }
.lp-footer-address .lp-indent { padding-left: 22px; }
.lp-footer-links-title { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-navy); margin-bottom: .8rem; }
.lp-footer-links { list-style: none; margin: 0; padding: 0; }
.lp-footer-links li { margin-bottom: .5rem; }
.lp-footer-links a { font-size: .82rem; color: var(--lp-muted); display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.lp-footer-links a:hover { color: var(--lp-teal); text-decoration: none; }
.lp-footer-links i { color: var(--lp-teal); width: 16px; }
.lp-footer-bottom {
    max-width: 1100px; margin: 0 auto; border-top: 1px solid #cdd1d6;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 0; font-size: .76rem; color: var(--lp-muted);
}
.lp-footer-badge { display: inline-flex; align-items: center; gap: .4rem; color: #15803d; font-weight: 600; }

/* Advisor app context: offset for the sidebar and follow its collapsed state. */
.lp-footer--app { margin-left: var(--sw); transition: margin-left .2s; }
.app-main.sidebar-collapsed + .lp-footer--app { margin-left: 0; }
/* Nudge the Quick Links column slightly left */
.lp-footer--app .lp-footer-inner > div:last-child { margin-right: 4rem; }
@media (max-width: 767px) {
    .lp-footer--app { margin-left: 0; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .lp-hero-inner { grid-template-columns: 1fr 380px; gap: 2.5rem; }
    .lp-features-grid { grid-template-columns: 1fr 1fr; gap: 2.2rem; }
    .lp-unified-inner { grid-template-columns: 1fr; gap: 2.2rem; }
    .lp-mock-body { grid-template-columns: 1fr; }
    .lp-mock-side { display: none; }
}
@media (max-width: 860px) {
    .lp-hero { padding: 1.5rem 1.5rem 3rem; min-height: 0; }
    .lp-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; max-width: 520px; }
    .lp-hero-features { grid-template-columns: 1fr 1fr; }
    .lp-hero--light { padding: 3rem 1.5rem; }
    .lp-hero--light .lp-hero-inner { grid-template-columns: 1fr; gap: 2.2rem; max-width: 520px; }
    .lp-hero-left--offset { padding-top: 0; }
    .lp-features, .lp-unified, .lp-quote { padding: 3rem 1.5rem; }
    .lp-footer { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (max-width: 600px) {
    .lp-topbar { padding: 0 0 2rem; }
    .lp-nav { padding: 1rem 1.2rem; }
    .lp-hero { padding: 1.25rem 1.2rem 2.5rem; }
    .lp-hero-inner { gap: 2rem; }
    .lp-hero h1 { font-size: 2.1rem; }
    .lp-hero--light { padding: 2.5rem 1.2rem; }
    .lp-hero--light h1 { font-size: 2.2rem; }
    .lp-hero-features { grid-template-columns: 1fr; }
    .lp-card { padding: 1.8rem 1.5rem; }
    .lp-features, .lp-unified, .lp-quote { padding: 2.5rem 1.2rem; }
    .lp-features-grid { grid-template-columns: 1fr; }
    .lp-mock-kpis { grid-template-columns: 1fr 1fr; }
    .lp-footer { padding-left: 1.2rem; padding-right: 1.2rem; }
    .lp-footer-inner { flex-direction: column; }
    .lp-powered { display: none; }
}
