/* =====================================================================
   FAL'ASH — Landing, Login & Register theme ("Emerald Shine")
   Loaded only on index.php, login.php and signup.php.
   ===================================================================== */

:root {
    --fl-bg: #04140f;
    --fl-bg-2: #062019;
    --fl-surface: #0b241c;
    --fl-line: rgba(167, 243, 208, .12);
    --fl-green: #10b981;
    --fl-green-2: #059669;
    --fl-mint: #34d399;
    --fl-gold: #fbbf24;
    --fl-gold-2: #f59e0b;
    --fl-ink: #ecfdf5;
    --fl-muted: #9cc3b3;
    --fl-light: #f6fbf8;
    --fl-light-ink: #0b2a20;
    --fl-light-muted: #4b6b5f;
    --fl-radius: 18px;
    --fl-ease: cubic-bezier(.22, 1, .36, 1);
    --fl-font: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---------- Shared keyframes ---------- */
@keyframes fl-aurora { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(6%,-4%) scale(1.08); } 66% { transform: translate(-5%,5%) scale(.95); } }
@keyframes fl-shine-text { to { background-position: 200% center; } }
@keyframes fl-sweep { from { transform: translateX(-130%) skewX(-20deg); } to { transform: translateX(230%) skewX(-20deg); } }
@keyframes fl-float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes fl-scan { 0% { top: 8%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 88%; opacity: 0; } }
@keyframes fl-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fl-pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 100% { box-shadow: 0 0 0 12px rgba(52,211,153,0); } }
@keyframes fl-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fl-spin { to { transform: rotate(360deg); } }

/* ---------- Buttons ---------- */
.fl-btn {
    --b-bg: linear-gradient(135deg, var(--fl-mint), var(--fl-green-2));
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    padding: .95rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer;
    font: 700 1rem/1 var(--fl-font); letter-spacing: .01em; text-decoration: none;
    color: #03261b; background: var(--b-bg);
    box-shadow: 0 10px 30px -10px rgba(16,185,129,.7), inset 0 1px 0 rgba(255,255,255,.35);
    transition: transform .25s var(--fl-ease), box-shadow .25s var(--fl-ease), filter .2s;
}
.fl-btn::after {
    content: ''; position: absolute; inset: 0; width: 45%; z-index: -1;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
    animation: fl-sweep 3.2s ease-in-out infinite;
}
.fl-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(16,185,129,.85), inset 0 1px 0 rgba(255,255,255,.35); }
.fl-btn:active { transform: translateY(0) scale(.98); }
.fl-btn:disabled { cursor: progress; filter: saturate(.7) brightness(.95); transform: none; }
.fl-btn i { transition: transform .25s var(--fl-ease); }
.fl-btn:hover i.fa-arrow-right { transform: translateX(4px); }
.fl-btn-gold { --b-bg: linear-gradient(135deg, #fde68a, var(--fl-gold-2)); color: #3a2500; box-shadow: 0 10px 30px -10px rgba(245,158,11,.7), inset 0 1px 0 rgba(255,255,255,.5); }
.fl-btn-ghost {
    background: rgba(255,255,255,.06); color: var(--fl-ink);
    border: 1px solid rgba(255,255,255,.18); box-shadow: none;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.fl-btn-ghost::after { display: none; }
.fl-btn-ghost:hover { background: rgba(255,255,255,.12); box-shadow: none; }
.fl-btn-block { width: 100%; }
.fl-btn.btn-processing .fl-btn-label::after {
    content: ''; display: inline-block; width: 1em; height: 1em; margin-left: .6rem; vertical-align: -.15em;
    border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
    animation: fl-spin .7s linear infinite;
}

/* ---------- Shiny gradient text ---------- */
.fl-shine-text {
    background: linear-gradient(90deg, var(--fl-mint) 0%, #fef3c7 25%, var(--fl-gold) 50%, var(--fl-mint) 75%, #a7f3d0 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: fl-shine-text 5s linear infinite;
}

/* =====================================================================
   LANDING PAGE
   ===================================================================== */
body:has(.fl-landing) { background: var(--fl-bg); overflow-x: hidden; }
body:has(.fl-landing) > .navbar { display: none; }
body:has(.fl-landing) > .container { max-width: none; padding: 0 !important; animation: none; }
body:has(.fl-landing) footer { display: none; }

.fl-landing, .fl-landing * { font-family: var(--fl-font); }
.fl-landing { color: var(--fl-ink); background: var(--fl-bg); }
.fl-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .fl-wrap { padding: 0 24px; } }

/* ---------- Nav ---------- */
.fl-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    transition: background .3s, box-shadow .3s, padding .3s;
    padding: 18px 0;
}
.fl-nav.fl-scrolled {
    background: rgba(4, 20, 15, .82); padding: 10px 0;
    backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 1px 0 var(--fl-line), 0 10px 30px -15px rgba(0,0,0,.6);
}
.fl-nav .fl-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fl-brand { display: flex; align-items: center; gap: 10px; color: var(--fl-ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; }
.fl-brand img { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; box-shadow: 0 0 0 2px rgba(52,211,153,.5), 0 6px 18px -6px rgba(16,185,129,.8); }
.fl-brand span em { font-style: normal; color: var(--fl-gold); }
.fl-nav-links { display: none; gap: 28px; }
.fl-nav-links a { color: var(--fl-muted); text-decoration: none; font-weight: 600; font-size: .93rem; position: relative; transition: color .2s; }
.fl-nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--fl-mint); border-radius: 2px; transition: width .3s var(--fl-ease); }
.fl-nav-links a:hover { color: var(--fl-ink); }
.fl-nav-links a:hover::after { width: 100%; }
.fl-nav-cta { display: flex; gap: 8px; align-items: center; }
.fl-nav-cta .fl-btn { padding: .65rem 1.05rem; font-size: .88rem; }
.fl-nav-login { color: var(--fl-ink); text-decoration: none; font-weight: 700; font-size: .9rem; padding: .6rem .8rem; border-radius: 999px; transition: background .2s; }
.fl-nav-login:hover { background: rgba(255,255,255,.08); }
@media (min-width: 900px) { .fl-nav-links { display: flex; } }

/* ---------- Hero ---------- */
.fl-hero { position: relative; overflow: hidden; padding: 120px 0 70px; isolation: isolate; }
@media (min-width: 900px) { .fl-hero { padding: 150px 0 100px; } }
.fl-hero::before {
    content: ''; position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(60% 60% at 15% 10%, rgba(16,185,129,.28), transparent 60%),
        radial-gradient(50% 50% at 90% 20%, rgba(251,191,36,.16), transparent 60%),
        radial-gradient(70% 60% at 50% 110%, rgba(5,150,105,.35), transparent 60%),
        var(--fl-bg);
}
.fl-hero-grid {
    position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: linear-gradient(var(--fl-line) 1px, transparent 1px), linear-gradient(90deg, var(--fl-line) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.fl-orb { position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; animation: fl-aurora 16s ease-in-out infinite; }
.fl-orb-1 { width: 380px; height: 380px; background: rgba(16,185,129,.35); top: -80px; left: -120px; }
.fl-orb-2 { width: 300px; height: 300px; background: rgba(251,191,36,.2); top: 30%; right: -100px; animation-delay: -6s; }

.fl-hero-inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .fl-hero-inner { grid-template-columns: 1.1fr .9fr; gap: 40px; } }

.fl-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px 7px 8px; border-radius: 999px; font-size: .82rem; font-weight: 600;
    color: #d1fae5; background: rgba(16,185,129,.12); border: 1px solid rgba(52,211,153,.3);
    animation: fl-rise .7s var(--fl-ease) both;
}
.fl-pill b { background: var(--fl-gold); color: #3a2500; padding: 3px 9px; border-radius: 999px; font-size: .72rem; letter-spacing: .04em; }
.fl-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fl-mint); animation: fl-pulse 1.6s infinite; }

.fl-hero h1 {
    margin: 22px 0 18px; font-size: clamp(2.1rem, 6.2vw, 3.9rem); line-height: 1.07; font-weight: 800; letter-spacing: -.025em; color: #fff;
    animation: fl-rise .8s var(--fl-ease) .08s both;
}
.fl-hero-sub { font-size: clamp(1rem, 2.2vw, 1.15rem); color: var(--fl-muted); max-width: 560px; line-height: 1.7; animation: fl-rise .8s var(--fl-ease) .18s both; }
.fl-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; animation: fl-rise .8s var(--fl-ease) .28s both; }
.fl-hero-cta .fl-btn { flex: 1 1 200px; }
@media (min-width: 520px) { .fl-hero-cta .fl-btn { flex: 0 0 auto; } }

.fl-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--fl-muted); font-size: .88rem; animation: fl-rise .8s var(--fl-ease) .38s both; }
.fl-trust span { display: inline-flex; align-items: center; gap: 7px; }
.fl-trust i { color: var(--fl-mint); }

/* Floating NIN slip mock */
.fl-hero-visual { position: relative; display: flex; justify-content: center; animation: fl-rise 1s var(--fl-ease) .3s both; }
.fl-slip {
    position: relative; width: min(100%, 380px); padding: 22px; border-radius: 22px;
    background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.2);
    animation: fl-float 7s ease-in-out infinite; overflow: hidden;
}
.fl-slip::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%); animation: fl-sweep 5s ease-in-out infinite; pointer-events: none; }
.fl-slip-scan { position: absolute; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, transparent, var(--fl-mint), transparent); box-shadow: 0 0 18px 4px rgba(52,211,153,.6); animation: fl-scan 3.2s ease-in-out infinite; }
.fl-slip-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.fl-slip-head small { font-size: .7rem; letter-spacing: .14em; color: var(--fl-muted); font-weight: 700; }
.fl-slip-head .fl-verified { font-size: .72rem; font-weight: 700; color: #03261b; background: var(--fl-mint); padding: 4px 10px; border-radius: 999px; display: inline-flex; gap: 5px; align-items: center; }
.fl-slip-body { display: flex; gap: 16px; }
.fl-slip-photo { width: 84px; height: 100px; flex-shrink: 0; border-radius: 12px; background: linear-gradient(160deg, #1f4d3d, #0d2c22); display: grid; place-items: center; color: rgba(167,243,208,.6); font-size: 2.4rem; border: 1px solid rgba(255,255,255,.1); }
.fl-slip-lines { flex: 1; display: grid; gap: 10px; align-content: start; }
.fl-slip-lines div { display: grid; gap: 4px; }
.fl-slip-lines label { font-size: .62rem; letter-spacing: .12em; color: var(--fl-muted); font-weight: 700; }
.fl-slip-lines span { height: 9px; border-radius: 6px; background: rgba(255,255,255,.18); }
.fl-slip-nin { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.25); display: flex; justify-content: space-between; align-items: center; font-weight: 800; letter-spacing: .18em; font-size: 1.05rem; color: #fff; }
.fl-slip-nin i { color: var(--fl-gold); letter-spacing: 0; }
.fl-chip {
    position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
    background: rgba(6, 32, 25, .9); border: 1px solid var(--fl-line); font-size: .8rem; font-weight: 600; color: var(--fl-ink);
    box-shadow: 0 16px 40px -18px rgba(0,0,0,.8);
    animation: fl-float 6s ease-in-out infinite;
}
.fl-chip i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: .85rem; }
.fl-chip small { display: block; color: var(--fl-muted); font-weight: 500; font-size: .7rem; }
.fl-chip-1 { left: -6px; bottom: 18%; animation-delay: -2s; }
.fl-chip-1 i { background: rgba(251,191,36,.18); color: var(--fl-gold); }
.fl-chip-2 { right: -6px; top: 6%; animation-delay: -4s; }
.fl-chip-2 i { background: rgba(52,211,153,.18); color: var(--fl-mint); }
@media (max-width: 480px) { .fl-chip { display: none; } }

/* ---------- Stats ---------- */
.fl-stats { position: relative; margin-top: -10px; }
.fl-stats-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border-radius: var(--fl-radius); overflow: hidden;
    background: var(--fl-line); border: 1px solid var(--fl-line);
}
@media (min-width: 760px) { .fl-stats-grid { grid-template-columns: repeat(4, 1fr); } }
.fl-stat { background: var(--fl-bg-2); padding: 24px 16px; text-align: center; }
.fl-stat strong { display: block; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; color: #fff; }
.fl-stat strong em { font-style: normal; color: var(--fl-gold); }
.fl-stat span { color: var(--fl-muted); font-size: .85rem; font-weight: 500; }

/* ---------- Network marquee ---------- */
.fl-networks { padding: 46px 0 10px; text-align: center; }
.fl-networks p { color: var(--fl-muted); font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.fl-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.fl-marquee-track { display: flex; gap: 18px; width: max-content; animation: fl-marquee 26s linear infinite; }
.fl-marquee:hover .fl-marquee-track { animation-play-state: paused; }
.fl-net { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--fl-line); color: var(--fl-ink); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.fl-net img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #fff; }
.fl-net i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(52,211,153,.15); color: var(--fl-mint); }

/* ---------- Sections ---------- */
.fl-section { padding: 80px 0; position: relative; }
.fl-section-light { background: var(--fl-light); color: var(--fl-light-ink); }
.fl-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.fl-eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--fl-green-2); background: rgba(16,185,129,.1); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.fl-section:not(.fl-section-light) .fl-eyebrow { color: var(--fl-mint); background: rgba(52,211,153,.12); }
.fl-head h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 12px; }
.fl-head p { color: var(--fl-light-muted); font-size: 1.02rem; line-height: 1.7; }
.fl-section:not(.fl-section-light) .fl-head p { color: var(--fl-muted); }

/* Service cards */
.fl-services { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .fl-services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .fl-services { grid-template-columns: repeat(4, 1fr); } }
.fl-card {
    position: relative; overflow: hidden; padding: 24px 22px; border-radius: var(--fl-radius);
    background: #fff; border: 1px solid #e3efe9; text-decoration: none; color: inherit; display: block;
    box-shadow: 0 1px 2px rgba(11,42,32,.04);
    transition: transform .35s var(--fl-ease), box-shadow .35s var(--fl-ease), border-color .3s;
}
.fl-card::before { /* shine sweep on hover */
    content: ''; position: absolute; top: 0; left: 0; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16,185,129,.12), transparent);
    transform: translateX(-130%) skewX(-20deg);
}
.fl-card:hover::before { animation: fl-sweep .9s var(--fl-ease); }
.fl-card:hover { transform: translateY(-6px); border-color: rgba(16,185,129,.45); box-shadow: 0 24px 50px -24px rgba(5,150,105,.45); }
.fl-card-icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 18px; transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.fl-card:hover .fl-card-icon { transform: rotate(-8deg) scale(1.12); }
.fl-card h3 { font-size: 1.07rem; font-weight: 800; margin-bottom: 6px; color: var(--fl-light-ink); }
.fl-card p { font-size: .9rem; color: var(--fl-light-muted); line-height: 1.6; }
.fl-card-go { margin-top: 16px; font-size: .85rem; font-weight: 700; color: var(--fl-green-2); display: inline-flex; gap: 6px; align-items: center; }
.fl-card:hover .fl-card-go i { transform: translateX(4px); }
.fl-card-go i { transition: transform .25s; }
.fl-tag { position: absolute; top: 16px; right: 16px; font-size: .66rem; font-weight: 800; letter-spacing: .06em; padding: 4px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; }
.ic-green  { background: #d1fae5; color: #047857; }
.ic-gold   { background: #fef3c7; color: #b45309; }
.ic-blue   { background: #dbeafe; color: #1d4ed8; }
.ic-purple { background: #ede9fe; color: #6d28d9; }
.ic-rose   { background: #ffe4e6; color: #be123c; }
.ic-teal   { background: #ccfbf1; color: #0f766e; }
.ic-orange { background: #ffedd5; color: #c2410c; }
.ic-slate  { background: #e2e8f0; color: #334155; }

/* Steps */
.fl-steps { display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 820px) { .fl-steps { grid-template-columns: repeat(3, 1fr); } }
.fl-step {
    position: relative; padding: 28px 24px; border-radius: var(--fl-radius);
    background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid var(--fl-line);
    transition: transform .35s var(--fl-ease), border-color .3s;
}
.fl-step:hover { transform: translateY(-5px); border-color: rgba(52,211,153,.4); }
.fl-step-num { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #03261b; background: linear-gradient(135deg, var(--fl-mint), var(--fl-gold)); margin-bottom: 16px; box-shadow: 0 10px 24px -10px rgba(52,211,153,.8); }
.fl-step h3 { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.fl-step p { color: var(--fl-muted); font-size: .92rem; line-height: 1.65; }

/* Features */
.fl-features { display: grid; gap: 16px; }
@media (min-width: 700px) { .fl-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .fl-features { grid-template-columns: repeat(3, 1fr); } }
.fl-feature { display: flex; gap: 16px; padding: 22px; border-radius: var(--fl-radius); background: #fff; border: 1px solid #e3efe9; transition: transform .3s var(--fl-ease), box-shadow .3s; }
.fl-feature:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(5,150,105,.4); }
.fl-feature .fl-card-icon { margin: 0; flex-shrink: 0; width: 48px; height: 48px; font-size: 1.15rem; }
.fl-feature h4 { font-size: 1rem; font-weight: 800; margin-bottom: 4px; color: var(--fl-light-ink); }
.fl-feature p { font-size: .88rem; color: var(--fl-light-muted); line-height: 1.6; }

/* FAQ */
.fl-faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.fl-faq details { border-radius: 14px; background: #fff; border: 1px solid #e3efe9; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.fl-faq details[open] { border-color: rgba(16,185,129,.45); box-shadow: 0 16px 36px -24px rgba(5,150,105,.45); }
.fl-faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; color: var(--fl-light-ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fl-faq summary::-webkit-details-marker { display: none; }
.fl-faq summary i { color: var(--fl-green-2); transition: transform .3s var(--fl-ease); flex-shrink: 0; }
.fl-faq details[open] summary i { transform: rotate(45deg); }
.fl-faq details p { padding: 0 20px 18px; color: var(--fl-light-muted); font-size: .93rem; line-height: 1.7; animation: fl-rise .4s var(--fl-ease); }

/* CTA band */
.fl-cta {
    position: relative; overflow: hidden; border-radius: 26px; padding: 48px 24px; text-align: center;
    background: radial-gradient(80% 120% at 0% 0%, rgba(52,211,153,.35), transparent 60%),
                radial-gradient(60% 100% at 100% 100%, rgba(251,191,36,.25), transparent 60%),
                linear-gradient(135deg, #064e3b, #022c22);
    border: 1px solid rgba(52,211,153,.25);
}
.fl-cta::after { content: ''; position: absolute; top: 0; left: 0; width: 35%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent); animation: fl-sweep 6s ease-in-out infinite; pointer-events: none; }
.fl-cta h2 { font-size: clamp(1.6rem, 4.5vw, 2.5rem); font-weight: 800; color: #fff; margin-bottom: 10px; letter-spacing: -.02em; }
.fl-cta p { color: #bfe8d6; max-width: 520px; margin: 0 auto 26px; }
.fl-cta .fl-hero-cta { justify-content: center; margin-top: 0; animation: none; }

/* Footer */
.fl-footer { padding: 54px 0 30px; border-top: 1px solid var(--fl-line); color: var(--fl-muted); }
.fl-footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .fl-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.fl-footer h5 { color: #fff; font-size: .95rem; font-weight: 800; margin-bottom: 14px; }
.fl-footer ul { list-style: none; display: grid; gap: 9px; padding: 0; }
.fl-footer a { color: var(--fl-muted); text-decoration: none; font-size: .9rem; transition: color .2s; }
.fl-footer a:hover { color: var(--fl-mint); }
.fl-footer p { font-size: .9rem; line-height: 1.7; margin-top: 12px; max-width: 360px; }
.fl-footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--fl-line); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .82rem; }

/* Scroll reveal (class added by landing.js only) */
.fl-js .fl-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--fl-ease), transform .7s var(--fl-ease); transition-delay: var(--d, 0ms); }
.fl-js .fl-reveal.fl-in { opacity: 1; transform: none; }

/* Back to top */
.fl-top { position: fixed; right: 16px; bottom: 18px; z-index: 900; width: 46px; height: 46px; border-radius: 14px; border: 0; cursor: pointer; display: grid; place-items: center; background: linear-gradient(135deg, var(--fl-mint), var(--fl-green-2)); color: #03261b; font-size: 1rem; box-shadow: 0 12px 30px -10px rgba(16,185,129,.8); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s var(--fl-ease); }
.fl-top.fl-show { opacity: 1; transform: none; pointer-events: auto; }

/* =====================================================================
   AUTH PAGES (Login / Register)
   ===================================================================== */
body:has(.fl-auth) { background: var(--fl-bg); }
body:has(.fl-auth) > .container { animation: none !important; max-width: none; padding: 0 !important; }
body:has(.fl-auth) footer { display: none; }

.fl-auth, .fl-auth * { font-family: var(--fl-font); }
.fl-auth {
    position: fixed; inset: 0; z-index: 50; overflow-y: auto; -webkit-overflow-scrolling: touch;
    display: grid; grid-template-columns: 1fr; background: var(--fl-bg);
}
@media (min-width: 980px) { .fl-auth { grid-template-columns: 1.05fr 1fr; } }

/* Brand side */
.fl-auth-side {
    position: relative; overflow: hidden; isolation: isolate; color: var(--fl-ink);
    padding: 22px 16px 70px;
    background:
        radial-gradient(70% 60% at 10% 0%, rgba(16,185,129,.35), transparent 60%),
        radial-gradient(60% 60% at 100% 100%, rgba(251,191,36,.18), transparent 60%),
        linear-gradient(160deg, #063a2c, #04140f 70%);
}
.fl-auth-side .fl-hero-grid { opacity: .45; }
.fl-auth-side-inner { position: relative; display: flex; flex-direction: column; gap: 18px; height: 100%; }
.fl-auth-side .fl-auth-hero { display: none; }
@media (min-width: 980px) {
    .fl-auth-side { padding: 40px 56px; min-height: 100vh; position: sticky; top: 0; }
    .fl-auth-side .fl-auth-hero { display: flex; flex-direction: column; justify-content: center; flex: 1; gap: 22px; }
}
.fl-auth-hero h2 { font-size: clamp(2rem, 3.2vw, 2.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: #fff; }
.fl-auth-hero > p { color: var(--fl-muted); font-size: 1.02rem; line-height: 1.7; max-width: 460px; }
.fl-auth-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.fl-auth-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--fl-line); font-weight: 600; font-size: .92rem; animation: fl-rise .7s var(--fl-ease) both; }
.fl-auth-list li:nth-child(2) { animation-delay: .1s; }
.fl-auth-list li:nth-child(3) { animation-delay: .2s; }
.fl-auth-list li:nth-child(4) { animation-delay: .3s; }
.fl-auth-list i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(52,211,153,.15); color: var(--fl-mint); flex-shrink: 0; }
.fl-auth-list li:nth-child(even) i { background: rgba(251,191,36,.15); color: var(--fl-gold); }
.fl-auth-side .fl-orb-1 { width: 320px; height: 320px; }

/* Form side */
.fl-auth-main {
    display: flex; align-items: flex-start; justify-content: center;
    padding: 0 16px 40px; margin-top: -48px; position: relative;
}
@media (min-width: 980px) { .fl-auth-main { align-items: center; margin-top: 0; padding: 40px; background: var(--fl-light); } }
.fl-auth-card {
    width: 100%; max-width: 440px; background: #fff; color: var(--fl-light-ink);
    border-radius: 24px; padding: 30px 22px; position: relative;
    box-shadow: 0 30px 70px -30px rgba(0,0,0,.55), 0 0 0 1px rgba(16,185,129,.12);
    animation: fl-rise .7s var(--fl-ease) both;
}
@media (min-width: 480px) { .fl-auth-card { padding: 38px 34px; } }
@media (min-width: 980px) { .fl-auth-card { box-shadow: 0 30px 70px -40px rgba(5,80,60,.45), 0 0 0 1px #e3efe9; } }
.fl-auth-card::before {
    content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 3px; border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--fl-mint), var(--fl-gold), var(--fl-mint)); background-size: 200% auto;
    animation: fl-shine-text 3s linear infinite;
}
.fl-auth-card h1 { font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; color: var(--fl-light-ink); }
.fl-auth-card .fl-sub { color: var(--fl-light-muted); font-size: .94rem; margin-bottom: 24px; }
.fl-auth-card .fl-wave { display: inline-block; transform-origin: 70% 70%; animation: fl-wave 2.4s ease-in-out 1s 2; }
@keyframes fl-wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-8deg); } }

.fl-field { margin-bottom: 16px; }
.fl-field label { display: block; font-size: .84rem; font-weight: 700; color: #234a3d; margin-bottom: 7px; }
.fl-input { position: relative; }
.fl-input > i.fl-lead { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #87a99c; font-size: .95rem; pointer-events: none; transition: color .2s; z-index: 2; }
.fl-input input {
    width: 100%; height: 52px; padding: 0 16px 0 44px !important; border-radius: 14px;
    border: 1.5px solid #dbe9e2; background: #f7fbf9; color: var(--fl-light-ink);
    font: 500 .97rem var(--fl-font); outline: none;
    transition: border-color .2s, box-shadow .25s, background .2s;
}
.fl-input input::placeholder { color: #a3bcb2; }
.fl-input input:hover { border-color: #c4dbd1; }
.fl-input input:focus { border-color: var(--fl-green); background: #fff; box-shadow: 0 0 0 4px rgba(16,185,129,.16); }
.fl-input:focus-within > i.fl-lead { color: var(--fl-green); }
.fl-input.password-wrapper input { padding-right: 46px !important; }
.fl-input .password-toggle-icon { right: 15px; color: #87a99c; }
.fl-input .password-toggle-icon:hover { color: var(--fl-green-2); }
.fl-input input.fl-bad { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.12); }
.fl-input input.fl-good { border-color: var(--fl-green); }
.fl-hint { font-size: .78rem; margin-top: 6px; min-height: 1em; color: var(--fl-light-muted); transition: color .2s; }
.fl-hint.bad { color: #dc2626; }
.fl-hint.good { color: #059669; }

.fl-row { display: grid; gap: 0 14px; }
@media (min-width: 480px) { .fl-row { grid-template-columns: 1fr 1fr; } }

.fl-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 8px; }
.fl-meter span { height: 5px; border-radius: 4px; background: #e3efe9; transition: background .3s; }
.fl-meter[data-s="1"] span:nth-child(-n+1) { background: #ef4444; }
.fl-meter[data-s="2"] span:nth-child(-n+2) { background: #f59e0b; }
.fl-meter[data-s="3"] span:nth-child(-n+3) { background: #84cc16; }
.fl-meter[data-s="4"] span:nth-child(-n+4) { background: #10b981; }

.fl-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -2px 0 20px; font-size: .86rem; }
.fl-check { display: inline-flex; align-items: center; gap: 8px; color: var(--fl-light-muted); cursor: pointer; user-select: none; }
.fl-check input { width: 17px; height: 17px; accent-color: var(--fl-green); }
.fl-link { color: var(--fl-green-2); font-weight: 700; text-decoration: none; position: relative; }
.fl-link::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s var(--fl-ease); }
.fl-link:hover::after { transform: scaleX(1); transform-origin: left; }

.fl-terms { font-size: .8rem; color: var(--fl-light-muted); text-align: center; margin-top: 14px; line-height: 1.6; }
.fl-switch { text-align: center; margin-top: 22px; padding-top: 20px; border-top: 1px dashed #dbe9e2; color: var(--fl-light-muted); font-size: .93rem; }
.fl-secure { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; font-size: .75rem; color: #87a99c; font-weight: 600; }
.fl-secure span { display: inline-flex; gap: 6px; align-items: center; }
.fl-secure i { color: var(--fl-green); }

/* handleAuth() inserts a .alert at the top of the form */
.fl-auth-card .alert { border-radius: 12px !important; font-size: .9rem; font-weight: 500; border: 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .fl-landing *, .fl-auth *, .fl-landing *::before, .fl-auth *::before, .fl-landing *::after, .fl-auth *::after {
        animation: none !important; transition: none !important;
    }
    .fl-js .fl-reveal { opacity: 1; transform: none; }
}

/* Keep the emerald glow on submit buttons (overrides the generic blue hover in animations.css) */
button.fl-btn[type="submit"]:hover:not(:disabled) {
    box-shadow: 0 18px 40px -12px rgba(16,185,129,.85), inset 0 1px 0 rgba(255,255,255,.35);
}

/* Auth pages never show the generic site navbar (reset_password.php renders it) */
body:has(.fl-auth) > .navbar { display: none; }

/* Icon badge at the top of single-purpose auth cards */
.fl-auth-badge {
    width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.4rem;
    margin-bottom: 18px; color: #03261b; background: linear-gradient(135deg, var(--fl-mint), var(--fl-gold));
    box-shadow: 0 14px 30px -12px rgba(16,185,129,.8); animation: fl-float 5s ease-in-out infinite;
}
.fl-auth-badge.fl-admin { background: linear-gradient(135deg, #fde68a, var(--fl-gold-2)); color: #3a2500; box-shadow: 0 14px 30px -12px rgba(245,158,11,.8); }
.fl-back { display: inline-flex; align-items: center; gap: 8px; color: var(--fl-light-muted); text-decoration: none; font-size: .88rem; font-weight: 600; margin-bottom: 18px; transition: color .2s, gap .2s; }
.fl-back:hover { color: var(--fl-green-2); gap: 11px; }
.fl-auth-card .alert-error-static { display: block; background: #fee2e2; color: #991b1b; padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: .9rem; font-weight: 500; animation: fx-shake .5s; }
button.fl-btn.fl-btn-gold[type="submit"]:hover:not(:disabled) {
    box-shadow: 0 18px 40px -12px rgba(245,158,11,.85), inset 0 1px 0 rgba(255,255,255,.5);
}
