/* Public landing page (includes/landing.php). Self-contained: the app's
   app.css is not loaded here. Material 3–inspired: tonal surfaces, large
   radii, soft elevation, floating cards. Light + dark, reduced-motion aware. */

:root {
    --l-bg: #F6F8FC;
    --l-surface: #FFFFFF;
    --l-surface-2: #EEF2FA;
    --l-outline: #DDE3EE;
    --l-text: #161B26;
    --l-dim: #5B6577;
    --l-faint: #8C95A6;
    --l-primary: #2563EB;
    --l-primary-hover: #1D4ED8;
    --l-on-primary: #FFFFFF;
    --l-primary-container: #DCE7FF;
    --l-on-primary-container: #0B3A9E;
    --l-tertiary: #7C3AED;
    --l-tertiary-container: #EDE4FF;
    --l-success: #12915A;
    --l-success-container: #DDF5EA;
    --l-error: #D12D3A;
    --l-blob-1: rgba(37, 99, 235, 0.22);
    --l-blob-2: rgba(124, 58, 237, 0.18);
    --l-blob-3: rgba(18, 145, 90, 0.14);
    --l-glass: rgba(255, 255, 255, 0.72);
    --l-shadow-1: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
    --l-shadow-2: 0 4px 8px rgba(16, 24, 40, 0.06), 0 12px 32px rgba(16, 24, 40, 0.10);
    --l-shadow-3: 0 12px 24px rgba(16, 24, 40, 0.08), 0 32px 64px rgba(16, 24, 40, 0.14);
    --l-radius-s: 12px;
    --l-radius-m: 20px;
    --l-radius-l: 28px;
    --l-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --l-display: 'Plus Jakarta Sans', var(--l-font);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --l-bg: #0D111A;
        --l-surface: #151B27;
        --l-surface-2: #1C2433;
        --l-outline: #2A3346;
        --l-text: #E8ECF4;
        --l-dim: #A3ADBF;
        --l-faint: #6F7A8F;
        --l-primary: #7AA2FF;
        --l-primary-hover: #9DBBFF;
        --l-on-primary: #0A1A40;
        --l-primary-container: #1E3366;
        --l-on-primary-container: #D6E2FF;
        --l-tertiary: #B794FF;
        --l-tertiary-container: #33225C;
        --l-success: #4CD89A;
        --l-success-container: #12372A;
        --l-error: #FF7A84;
        --l-blob-1: rgba(122, 162, 255, 0.20);
        --l-blob-2: rgba(183, 148, 255, 0.16);
        --l-blob-3: rgba(76, 216, 154, 0.10);
        --l-glass: rgba(21, 27, 39, 0.72);
        --l-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
        --l-shadow-2: 0 4px 8px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
        --l-shadow-3: 0 12px 24px rgba(0, 0, 0, 0.35), 0 32px 64px rgba(0, 0, 0, 0.45);
    }
}
:root[data-theme="dark"] {
    --l-bg: #0D111A; --l-surface: #151B27; --l-surface-2: #1C2433; --l-outline: #2A3346;
    --l-text: #E8ECF4; --l-dim: #A3ADBF; --l-faint: #6F7A8F;
    --l-primary: #7AA2FF; --l-primary-hover: #9DBBFF; --l-on-primary: #0A1A40;
    --l-primary-container: #1E3366; --l-on-primary-container: #D6E2FF;
    --l-tertiary: #B794FF; --l-tertiary-container: #33225C;
    --l-success: #4CD89A; --l-success-container: #12372A; --l-error: #FF7A84;
    --l-blob-1: rgba(122, 162, 255, 0.20); --l-blob-2: rgba(183, 148, 255, 0.16); --l-blob-3: rgba(76, 216, 154, 0.10);
    --l-glass: rgba(21, 27, 39, 0.72);
    --l-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --l-shadow-2: 0 4px 8px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --l-shadow-3: 0 12px 24px rgba(0, 0, 0, 0.35), 0 32px 64px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body.lp {
    margin: 0;
    background: var(--l-bg);
    color: var(--l-text);
    font-family: var(--l-font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.lp a { color: inherit; }
.lp-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .lp-wrap { padding: 0 32px; } }

.ms { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; font-size: 22px; line-height: 1;
    letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr;
    -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }

/* ---------- Background blobs ---------- */
.lp-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.lp-bg span { position: absolute; border-radius: 50%; filter: blur(70px); animation: lp-drift 22s ease-in-out infinite alternate; }
.lp-bg span:nth-child(1) { width: 520px; height: 520px; background: var(--l-blob-1); top: -160px; left: -120px; }
.lp-bg span:nth-child(2) { width: 460px; height: 460px; background: var(--l-blob-2); top: 80px; right: -160px; animation-delay: -7s; }
.lp-bg span:nth-child(3) { width: 380px; height: 380px; background: var(--l-blob-3); top: 620px; left: 30%; animation-delay: -14s; }
@keyframes lp-drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(60px, 40px) scale(1.12); } }

/* ---------- Header ---------- */
.lp-header { position: sticky; top: 0; z-index: 50; padding: 12px 0; transition: padding .25s ease; }
.lp-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 10px 0 18px;
    background: var(--l-glass); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
    border: 1px solid var(--l-outline); border-radius: 999px; transition: box-shadow .25s ease; }
.lp-header.is-scrolled .lp-header__bar { box-shadow: var(--l-shadow-2); }
.lp-logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--l-display); font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -0.02em; }
.lp-logo__mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800;
    background: linear-gradient(135deg, #2563EB, #7C3AED); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35); }
.lp-nav { display: flex; align-items: center; gap: 4px; }
.lp-nav a.lp-nav__link { text-decoration: none; color: var(--l-dim); font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.lp-nav a.lp-nav__link:hover { background: var(--l-surface-2); color: var(--l-text); }
@media (max-width: 760px) { .lp-nav a.lp-nav__link { display: none; } }

/* ---------- Buttons ---------- */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px;
    font: 600 15px/1 var(--l-font); text-decoration: none; border: 1px solid transparent; cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.lp-btn .ms { font-size: 20px; }
.lp-btn--filled { background: var(--l-primary); color: var(--l-on-primary); box-shadow: 0 6px 16px rgba(37, 99, 235, 0.30); }
.lp-btn--filled:hover { background: var(--l-primary-hover); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37, 99, 235, 0.36); }
.lp-btn--tonal { background: var(--l-primary-container); color: var(--l-on-primary-container); }
.lp-btn--tonal:hover { transform: translateY(-1px); box-shadow: var(--l-shadow-1); }
.lp-btn--outlined { border-color: var(--l-outline); color: var(--l-text); background: var(--l-surface); }
.lp-btn--outlined:hover { background: var(--l-surface-2); }
.lp-btn--small { height: 38px; padding: 0 16px; font-size: 14px; }
.lp-btn--light { background: #fff; color: #1D3FA8; }
.lp-btn--light:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); }

/* ---------- Hero ---------- */
.lp-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.lp-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px 0 10px; border-radius: 999px;
    background: var(--l-surface); border: 1px solid var(--l-outline); color: var(--l-dim); font-size: 13px; font-weight: 500; box-shadow: var(--l-shadow-1); }
.lp-chip .ms { font-size: 18px; color: var(--l-primary); }
.lp-hero h1 { font-family: var(--l-display); font-size: clamp(36px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; margin: 20px 0 20px; }
.lp-grad { background: linear-gradient(100deg, var(--l-primary) 0%, var(--l-tertiary) 60%, var(--l-primary) 100%); background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent; animation: lp-shine 8s linear infinite; }
@keyframes lp-shine { to { background-position: 200% center; } }
.lp-hero__lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--l-dim); max-width: 34em; margin: 0 0 32px; }
.lp-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-hero__facts { display: flex; flex-wrap: wrap; gap: 18px 26px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--l-dim); font-size: 14px; }
.lp-hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.lp-hero__facts .ms { font-size: 20px; color: var(--l-success); }

/* Hero visual: mock dashboard + floating cards */
.lp-visual { position: relative; padding: 48px 0 66px; }
.lp-dash { position: relative; z-index: 1; background: var(--l-surface); border: 1px solid var(--l-outline); border-radius: var(--l-radius-l);
    box-shadow: var(--l-shadow-3); padding: 22px; transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); transition: transform .6s ease; }
.lp-visual:hover .lp-dash { transform: perspective(1400px) rotateY(0) rotateX(0); }
.lp-dash__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.lp-dash__title { font-weight: 700; font-size: 15px; }
.lp-dash__dots { display: flex; gap: 6px; }
.lp-dash__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--l-outline); }
.lp-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.lp-kpi { background: var(--l-surface-2); border-radius: var(--l-radius-s); padding: 12px; }
.lp-kpi small { display: block; color: var(--l-dim); font-size: 12px; font-weight: 500; }
.lp-kpi b { font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.lp-kpi--pos b { color: var(--l-success); }
.lp-chart { width: 100%; height: 120px; display: block; margin-bottom: 12px; }
.lp-chart__line { fill: none; stroke: var(--l-primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 900; stroke-dashoffset: 900; animation: lp-draw 2.2s .3s ease-out forwards; }
.lp-chart__line--2 { stroke: var(--l-tertiary); stroke-width: 2.5; opacity: .7; animation-delay: .6s; }
.lp-chart__area { fill: url(#lpArea); opacity: 0; animation: lp-fade 1s 1.4s ease forwards; }
@keyframes lp-draw { to { stroke-dashoffset: 0; } }
@keyframes lp-fade { to { opacity: 1; } }
.lp-rows { display: grid; gap: 8px; }
.lp-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--l-surface-2); }
.lp-row span:nth-child(2) { color: var(--l-dim); font-variant-numeric: tabular-nums; }
.lp-row b { font-variant-numeric: tabular-nums; }
.lp-row .pos { color: var(--l-success); }
.lp-row .neg { color: var(--l-error); }

.lp-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px;
    background: var(--l-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--l-outline);
    box-shadow: var(--l-shadow-2); font-size: 13px; animation: lp-float 6s ease-in-out infinite; white-space: nowrap; }
.lp-float b { display: block; font-size: 14px; }
.lp-float small { color: var(--l-dim); }
.lp-float__icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.lp-float__icon .ms { font-size: 20px; }
.lp-float--a { top: 0; right: -16px; }
.lp-float--a .lp-float__icon { background: var(--l-success-container); color: var(--l-success); }
.lp-float--b { top: 44%; left: -44px; animation-delay: -2s; }
.lp-float--b .lp-float__icon { background: var(--l-primary-container); color: var(--l-primary); }
.lp-float--c { bottom: 0; left: 28px; animation-delay: -4s; }
.lp-float--c .lp-float__icon { background: var(--l-tertiary-container); color: var(--l-tertiary); }
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Sections ---------- */
.lp-section { padding: 72px 0; }
.lp-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--l-primary); margin-bottom: 10px; }
.lp-h2 { font-family: var(--l-display); font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 14px; }
.lp-sub { color: var(--l-dim); font-size: 17px; max-width: 40em; margin: 0 0 40px; }
.lp-center { text-align: center; }
.lp-center .lp-sub { margin-left: auto; margin-right: auto; }

/* Bento feature grid */
.lp-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.lp-card { position: relative; background: var(--l-surface); border: 1px solid var(--l-outline); border-radius: var(--l-radius-m); padding: 26px;
    box-shadow: var(--l-shadow-1); transition: transform .3s ease, box-shadow .3s ease; overflow: hidden; }
.lp-card:hover { transform: translateY(-4px); box-shadow: var(--l-shadow-2); }
.lp-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 16px 0 8px; }
.lp-card p { color: var(--l-dim); font-size: 14.5px; margin: 0; }
.lp-card__icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--l-primary-container); color: var(--l-primary); }
.lp-card__icon .ms { font-size: 26px; }
.lp-card--wide { grid-column: span 3; }
.lp-card--third { grid-column: span 2; }
.lp-card--accent { background: linear-gradient(145deg, var(--l-primary-container), var(--l-tertiary-container)); border-color: transparent; }
.lp-card--accent .lp-card__icon { background: var(--l-surface); }
.lp-card__visual { margin-top: 20px; display: flex; gap: 8px; align-items: flex-end; height: 70px; }
.lp-card__visual i { flex: 1; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--l-primary), var(--l-tertiary)); opacity: .85;
    transform-origin: bottom; animation: lp-grow 1.2s ease both; }
.lp-card__visual i:nth-child(2) { animation-delay: .1s; } .lp-card__visual i:nth-child(3) { animation-delay: .2s; }
.lp-card__visual i:nth-child(4) { animation-delay: .3s; } .lp-card__visual i:nth-child(5) { animation-delay: .4s; }
.lp-card__visual i:nth-child(6) { animation-delay: .5s; } .lp-card__visual i:nth-child(7) { animation-delay: .6s; }
@keyframes lp-grow { from { transform: scaleY(0.1); } to { transform: scaleY(1); } }
.lp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lp-tags span { font-size: 12.5px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: var(--l-surface-2); color: var(--l-dim); }
.lp-card--accent .lp-tags span { background: var(--l-surface); }

/* Steps */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.lp-step { position: relative; background: var(--l-surface); border: 1px solid var(--l-outline); border-radius: var(--l-radius-m); padding: 26px; box-shadow: var(--l-shadow-1); }
.lp-step__num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--l-on-primary);
    background: linear-gradient(135deg, #2563EB, #7C3AED); box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3); }
.lp-step h3 { font-size: 18px; margin: 16px 0 6px; }
.lp-step p { color: var(--l-dim); font-size: 14.5px; margin: 0; }

/* Meta data panel */
.lp-meta { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; background: var(--l-surface); border: 1px solid var(--l-outline);
    border-radius: var(--l-radius-l); padding: 44px; box-shadow: var(--l-shadow-2); }
.lp-meta__list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.lp-meta__item { display: flex; gap: 14px; padding: 16px; border-radius: var(--l-radius-s); background: var(--l-surface-2); }
.lp-meta__item .ms { color: var(--l-primary); font-size: 24px; flex: none; margin-top: 2px; }
.lp-meta__item b { display: block; margin-bottom: 2px; }
.lp-meta__item p { margin: 0; color: var(--l-dim); font-size: 14.5px; }
.lp-meta__item--no .ms { color: var(--l-error); }
.lp-meta code { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 12.5px; padding: 1px 6px; border-radius: 6px; background: var(--l-primary-container); color: var(--l-on-primary-container); }
.lp-meta__links { margin-top: 18px; font-size: 14px; color: var(--l-dim); }
.lp-meta__links a { color: var(--l-primary); font-weight: 600; text-decoration: none; }
.lp-meta__links a:hover { text-decoration: underline; }

/* CTA band */
.lp-cta { position: relative; overflow: hidden; border-radius: var(--l-radius-l); padding: 56px 32px; text-align: center; color: #fff;
    background: linear-gradient(120deg, #1D4ED8, #6D28D9); box-shadow: var(--l-shadow-3); }
.lp-cta::before, .lp-cta::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.12); animation: lp-float 8s ease-in-out infinite; }
.lp-cta::before { width: 260px; height: 260px; top: -90px; left: -60px; }
.lp-cta::after { width: 200px; height: 200px; bottom: -80px; right: -40px; animation-delay: -3s; }
.lp-cta > * { position: relative; }
.lp-cta h2 { font-family: var(--l-display); font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.03em; margin: 0 0 10px; }
.lp-cta p { opacity: .88; margin: 0 auto 26px; max-width: 34em; }
.lp-cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.lp-btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.lp-btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); }

/* Footer */
.lp-footer { padding: 40px 0 48px; color: var(--l-dim); font-size: 13px; }
.lp-footer__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--l-outline); margin-bottom: 18px; }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.lp-footer nav a { text-decoration: none; }
.lp-footer nav a:hover { color: var(--l-primary); }
.lp-footer p { margin: 0; line-height: 1.7; }
.lp-footer p a { color: var(--l-primary); }

/* Reveal on scroll (only once JS has marked the page ready) */
.lp-ready .lp-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.lp-ready .lp-reveal.is-in { opacity: 1; transform: none; }
.lp-ready .lp-reveal[data-delay="1"] { transition-delay: .08s; }
.lp-ready .lp-reveal[data-delay="2"] { transition-delay: .16s; }
.lp-ready .lp-reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .lp-hero { grid-template-columns: 1fr; gap: 48px; padding-top: 40px; }
    .lp-visual { max-width: 560px; margin: 0 auto; width: 100%; }
    .lp-dash { transform: none; }
    .lp-bento { grid-template-columns: repeat(2, 1fr); }
    .lp-card--wide, .lp-card--third { grid-column: span 1; }
    .lp-meta { grid-template-columns: 1fr; padding: 32px; gap: 24px; }
}
@media (max-width: 640px) {
    .lp-section { padding: 52px 0; }
    .lp-visual { padding: 72px 0 74px; }
    .lp-float--a { top: 0; right: 6px; }
    .lp-float--b { display: none; }
    .lp-float--c { bottom: 0; left: 6px; }
    .lp-kpi b { font-size: 16px; }
    .lp-dash { padding: 16px; }
    .lp-bento, .lp-steps { grid-template-columns: 1fr; }
    .lp-meta { padding: 22px 16px; }
    .lp-cta { padding: 44px 20px; }
    .lp-hero__ctas .lp-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .lp-chart__line { stroke-dashoffset: 0; }
    .lp-chart__area { opacity: 1; }
}

/* ---------- Sign-in page (public_html/login.php) ---------- */
body.lp-auth { min-height: 100vh; display: flex; flex-direction: column; }
.lp-auth__main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 16px 24px; }
.lp-auth__stage { position: relative; width: 100%; max-width: 420px; }
.lp-auth__card { position: relative; z-index: 1; background: var(--l-glass); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
    border: 1px solid var(--l-outline); border-radius: var(--l-radius-l); box-shadow: var(--l-shadow-3); padding: 36px 32px 28px; text-align: center; }
.lp-auth__mark { width: 52px; height: 52px; border-radius: 16px; font-size: 18px; margin: 0 auto 18px; }
.lp-auth__card h1 { font-family: var(--l-display); font-size: 28px; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 6px; }
.lp-auth__sub { color: var(--l-dim); font-size: 15px; margin: 0 0 24px; }
.lp-auth__error { display: flex; align-items: center; gap: 8px; text-align: left; font-size: 14px; padding: 12px 14px; margin-bottom: 18px;
    border-radius: var(--l-radius-s); background: color-mix(in srgb, var(--l-error) 12%, transparent); color: var(--l-error); }
.lp-auth__error .ms { font-size: 20px; flex: none; }
.lp-auth__form { display: grid; gap: 14px; text-align: left; }
.lp-auth__submit { width: 100%; height: 50px; margin-top: 6px; font-size: 16px; }
.lp-auth__help { margin: 22px 0 0; font-size: 13.5px; color: var(--l-dim); }
.lp-auth__help a { color: var(--l-primary); font-weight: 600; text-decoration: none; }
.lp-auth__help a:hover { text-decoration: underline; }
.lp-auth__footer { text-align: center; padding: 16px 0 28px; }
.lp-auth__footer nav { justify-content: center; margin-bottom: 6px; }

/* Material 3 outlined text field with floating label */
.lp-field { position: relative; display: block; }
.lp-field > .ms { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--l-faint); pointer-events: none; transition: color .2s; }
.lp-field input { width: 100%; height: 56px; padding: 18px 46px 6px 46px; border: 1px solid var(--l-outline); border-radius: 14px;
    background: var(--l-surface); color: var(--l-text); font: 500 15px/1.2 var(--l-font); outline: none; transition: border-color .2s, box-shadow .2s; }
.lp-field input:hover { border-color: var(--l-faint); }
.lp-field input:focus { border-color: var(--l-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--l-primary) 18%, transparent); }
.lp-field:focus-within > .ms { color: var(--l-primary); }
.lp-field__label { position: absolute; left: 46px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--l-dim); pointer-events: none;
    transition: top .18s ease, font-size .18s ease, color .18s ease; }
.lp-field input:focus ~ .lp-field__label,
.lp-field input:not(:placeholder-shown) ~ .lp-field__label,
.lp-field input:-webkit-autofill ~ .lp-field__label { top: 15px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
.lp-field input:focus ~ .lp-field__label { color: var(--l-primary); }
.lp-field input:-webkit-autofill { -webkit-text-fill-color: var(--l-text); -webkit-box-shadow: 0 0 0 40px var(--l-surface) inset; caret-color: var(--l-text); }
.lp-field__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: transparent; color: var(--l-faint); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.lp-field__toggle:hover { background: var(--l-surface-2); color: var(--l-text); }
.lp-field__toggle .ms { font-size: 20px; }

/* Decorative floating cards beside the sign-in card (wide screens only) */
.lp-auth__float { z-index: 0; }
.lp-auth__float--a { top: 12%; left: -230px; }
.lp-auth__float--b { bottom: 14%; right: -230px; animation-delay: -3s; }
.lp-auth__float--a .lp-float__icon { background: var(--l-success-container); color: var(--l-success); }
.lp-auth__float--b .lp-float__icon { background: var(--l-primary-container); color: var(--l-primary); }
@media (max-width: 960px) { .lp-auth__float { display: none; } }
@media (max-width: 480px) { .lp-auth__card { padding: 28px 20px 22px; } .lp-auth__card h1 { font-size: 24px; } }

/* Logo mark is now the favicon SVG (already has its own blue tile). */
img.lp-logo__img { background: none; border-radius: 22%; display: block; object-fit: contain; }
