/* Landing PERANTAU (hub + halaman persatuan) — design Kama 2026-09-26
   ("Perantau Landing" / "Perantau Persatuan"). Hanya untuk index.html:
   header, footer, #view-hub dan #view-org. Skrin lain (daftar, borang,
   log masuk penuh) kekal guna portal.css. */

:root {
  --l-ink: #0E1412;
  --l-ink-2: #26302C;
  --l-meta: #4A5550;
  --l-meta-2: #5B6662;
  --l-meta-3: #6B7571;
  --l-green: #0F6B57;
  --l-green-deep: #08463A;
  --l-mint: #8FDCC6;
  --l-mint-strong: #4FC1A0;
  --l-mint-soft: #A9E3D3;
  --l-mint-bg: #E3F4EE;
  --l-cta: #74D6BE;
  --l-cta-hover: #9BE5D2;
  --l-line: #E7F1ED;
  --l-line-2: #E4ECE9;
  --l-dash: #DCE9E4;
  --l-chip-line: #DCE5E1;
  --l-field-line: #DCE3E0;
  --l-field-bg: #FAFBFA;
  --l-wa: #1FAF55;
  --l-wa-hover: #23C160;
  --l-danger: #B3261E;
  /* Permukaan & butang (ditukar dalam mod gelap) */
  --l-bg: #fff;
  --l-surface: #fff;
  --l-section: #fff;
  --l-footer: #fff;
  --l-blur: none;
  --l-skel: #EEF3F1;
  --l-sep: #B7C2BD;
  --l-accent: var(--l-green);
  --l-accent-hover: var(--l-green-deep);
  --l-btn-bg: var(--l-green);
  --l-btn-ink: #fff;
  --l-btn-hover: var(--l-green-deep);
  --l-pill-bg: #fff;
  --l-pill-line: #D9DEDB;
  --l-cta-bg: var(--l-ink);
  --l-cta-line: transparent;
  --l-ghost-line: #3A4541;
  --l-field-focus: #fff;
  --l-placeholder: #9AA39F;
  --l-shadow-c: rgba(15, 107, 87, .45);
  --l-shadow-c2: rgba(15, 107, 87, .4);
  --l-shadow-c3: rgba(15, 107, 87, .55);
  --l-shadow-c4: rgba(15, 107, 87, .5);
  --l-tile-hover: var(--l-green);
  --l-stat-hover: var(--l-mint-strong);
  --l-display: "Unbounded", "Schibsted Grotesk", system-ui, sans-serif;
  --l-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --l-wrap: 1320px;
  --l-gutter: 32px;
  --l-lift: 0 5px 0 -1px var(--l-mint), 0 12px 26px -18px var(--l-shadow-c);
  --l-lift-hover: 0 8px 0 -1px var(--l-stat-hover), 0 22px 38px -16px var(--l-shadow-c3);
}
@media (max-width: 640px) { :root { --l-gutter: 16px; } }

body.p-body { background: var(--l-bg); overflow-x: clip; }
.lp-main { position: relative; }

/* ---------- header ---------- */
.p-sitehead.lp2-head { position: relative; z-index: 3; background: transparent; border-bottom: 0; box-shadow: none; }
.lp2-head .p-sitehead__inner { max-width: var(--l-wrap); height: auto; min-height: 0; margin: 0 auto; padding: 22px var(--l-gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lp2-brand { flex: none; display: flex; align-items: center; gap: 14px; min-width: 0; text-decoration: none; color: var(--l-accent); }
.lp2-brand__logo { flex: none; width: clamp(44px, 4.4vw, 60px); height: clamp(44px, 4.4vw, 60px); border-radius: 50%; object-fit: cover; display: block; }
.lp2-brand__word { font-family: var(--l-display); font-weight: 900; font-size: clamp(24px, 3.2vw, 42px); letter-spacing: -.01em; line-height: 1; color: var(--l-accent); }
.lp2-head .p-sitehead__nav { display: flex; align-items: center; gap: 10px; }
.lp2-pill { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 11px 22px; border-radius: 99px; font-family: var(--l-sans); font-size: 15.5px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.lp2-pill--solid { background: var(--l-btn-bg); color: var(--l-btn-ink); border: 0; }
.lp2-pill--solid:hover { background: var(--l-btn-hover); color: var(--l-btn-ink); }
.lp2-pill--line { background: var(--l-pill-bg); color: var(--l-ink); border: 1.5px solid var(--l-pill-line); padding: 10px 18px; }
.lp2-pill--line:hover { border-color: var(--l-accent); color: var(--l-accent); }
.lp2-pill .ti { font-size: 17px; }
@media (max-width: 420px) {
  .lp2-brand { gap: 10px; }
  .lp2-pill { padding: 10px 16px; font-size: 14.5px; }
  .lp2-pill--line .lp2-pill__long { display: none; }
}
/* Butang tema (bulat, kiri pil header). Bulan dalam mod cerah, matahari dalam mod gelap. */
.lp2-theme { flex: none; width: 46px; height: 46px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; background: var(--l-pill-bg); -webkit-backdrop-filter: var(--l-blur); backdrop-filter: var(--l-blur); border: 1.5px solid var(--l-field-line); color: var(--l-ink); transition: border-color .2s, background-color .4s, color .4s; }
.lp2-theme:hover { border-color: #3FAE8E; }
.lp2-theme:focus-visible { outline: 3px solid var(--l-cta); outline-offset: 2px; }
.lp2-theme .ti { font-size: 20px; line-height: 1; }
.lp2-theme .ti-sun, html[data-theme="dark"] .lp2-theme .ti-moon { display: none; }
html[data-theme="dark"] .lp2-theme .ti-sun { display: inline; }
/* Tema hanya untuk landing (hub + halaman persatuan); skrin lain tiada butang tema */
body:not(.lp2-on) #nav-tema { display: none; }
/* Telefon: header muat sebaris dengan butang tema (jenama + tema + pil). Hanya pada landing
   (butang tema tiada di skrin lain, jadi header di sana kekal saiz asal). Saiz logo kekal. */
@media (max-width: 480px) {
  body.lp2-on .lp2-head .p-sitehead__inner { gap: 8px; }
  body.lp2-on .lp2-head .p-sitehead__nav { gap: 8px; }
  body.lp2-on .lp2-brand { gap: 8px; }
  body.lp2-on .lp2-brand__word { font-size: 20px; }
  .lp2-theme { width: 44px; height: 44px; }
  .lp2-theme .ti { font-size: 19px; }
}
@media (max-width: 380px) {
  body.lp2-on .lp2-brand__word { font-size: 17px; }
  body.lp2-on .lp2-head .p-sitehead__nav { gap: 6px; }
}
@media (max-width: 340px) {
  body.lp2-on { --l-gutter: 12px; }
  body.lp2-on .lp2-brand__word { font-size: 15px; }
  body.lp2-on .lp2-brand__logo { width: 32px; height: 32px; }
}

/* Halaman persatuan: kad log masuk ada dalam halaman itu sendiri, jadi header hanya ada "Semua persatuan" */
body.lp2-org-on #nav-login { display: none; }

/* ---------- common ---------- */
.lp2 { position: relative; font-family: var(--l-sans); color: var(--l-ink); }
.lp2 :where(h1, h2, h3, p) { margin: 0; }
.lp2-wrap { position: relative; z-index: 2; width: 100%; max-width: var(--l-wrap); margin: 0 auto; padding-left: var(--l-gutter); padding-right: var(--l-gutter); }
.lp2-eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--l-accent); }
.lp2-flag { position: absolute; z-index: 0; width: min(640px, 62vw); aspect-ratio: 2 / 1; opacity: .07; pointer-events: none; transition: opacity .4s; }
.lp2-flag svg { display: block; width: 100%; height: 100%; }
.lp2-flag--br { right: -90px; bottom: -60px; transform: rotate(-8deg); transform-origin: bottom right; }
.lp2-flag--bl { left: -110px; bottom: -70px; opacity: .06; transform: rotate(7deg); transform-origin: bottom left; }
.lp2-bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, #fff 0%, #F4F4F2 100%); pointer-events: none; transition: opacity .5s; }
.lp2 .p-skel { background: var(--l-skel); }

/* Stat card: angka Unbounded, bayang "lantai" mint */
.lp2-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lp2-stat { min-width: 0; background: var(--l-surface); -webkit-backdrop-filter: var(--l-blur); backdrop-filter: var(--l-blur); border: 1px solid var(--l-line); border-radius: 20px; padding: 16px 16px 15px; box-shadow: var(--l-lift); transition: box-shadow .25s, transform .25s; }
.lp2-stat:hover { box-shadow: var(--l-lift-hover); transform: translateY(-3px); }
.lp2-stat__top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lp2-stat__icon { flex: none; width: 34px; height: 34px; border-radius: 11px; background: var(--l-mint-bg); color: var(--l-accent); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.lp2-stat__num { font-family: var(--l-display); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lp2-stat__label { font-size: 13.5px; font-weight: 600; color: var(--l-meta); margin-top: 10px; }
.lp2-stat__hint { font-size: 12px; color: var(--l-meta-3); margin-top: 2px; }
.lp2-stat.is-loading .lp2-stat__num { color: transparent; background: var(--l-skel); border-radius: 8px; min-width: 2.4ch; }
@media (max-width: 480px) {
  .lp2-stats { gap: 8px; }
  .lp2-stat { padding: 12px 10px; border-radius: 16px; }
  .lp2-stat__icon { width: 28px; height: 28px; font-size: 15px; border-radius: 9px; }
  .lp2-stat__top { gap: 7px; }
  .lp2-stat__num { font-size: 22px; }
  .lp2-stat__label { font-size: 12px; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .lp2-stat, .lp2-tile { transition: none; } .lp2-stat:hover, .lp2-tile:hover { transform: none; } }

/* ---------- HUB ---------- */
.lp2-hub__first { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: calc(100svh - 104px); }
.lp2-hub__main { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: center; padding-top: 8px; padding-bottom: 28px; }
.lp2-hub__intro { display: flex; flex-direction: column; gap: 26px; }
.lp2-hub__h1 { font-weight: 800; font-size: clamp(36px, 4.2vw, 58px); line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
.lp2-hub__h1 em { font-style: normal; color: var(--l-accent); }
.lp2-hub__lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; margin-top: 16px !important; color: var(--l-ink-2); max-width: 500px; text-wrap: pretty; }
.lp2-pilih__head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; margin-bottom: 16px; }
.lp2-pilih__h2 { font-weight: 800; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.02em; }
.lp2-pilih__meta { font-size: 14px; color: var(--l-meta-2); }
.lp2-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 480px) { .lp2-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.lp2-tile { height: 100%; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px 16px 14px; background: var(--l-surface); -webkit-backdrop-filter: var(--l-blur); backdrop-filter: var(--l-blur); border: 1px solid var(--l-line); border-radius: 20px; text-decoration: none; color: var(--l-ink); box-shadow: 0 5px 0 -1px var(--l-mint-soft), 0 12px 26px -18px var(--l-shadow-c2); transition: box-shadow .25s, transform .25s; }
.lp2-tile.is-active { box-shadow: 0 5px 0 -1px var(--l-mint-strong), 0 12px 26px -18px var(--l-shadow-c2); }
.lp2-tile:hover { color: var(--l-ink); box-shadow: 0 9px 0 -1px var(--l-tile-hover), 0 26px 42px -16px var(--l-shadow-c3); transform: translateY(-4px); }
.lp2-tile:focus-visible { outline: 3px solid var(--l-accent); outline-offset: 3px; }
.lp2-tile__code { font-family: var(--l-display); font-weight: 900; font-size: clamp(20px, 1.8vw, 26px); line-height: 1; }
.lp2-tile__negeri { font-size: 12.5px; font-weight: 500; color: var(--l-meta); margin-top: 6px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp2-tile__foot { margin-top: auto; display: flex; align-items: baseline; gap: 5px; padding-top: 10px; border-top: 1px dashed var(--l-dash); }
.lp2-tile__num { font-family: var(--l-display); font-weight: 800; font-size: 19px; line-height: 1; }
.lp2-tile.is-active .lp2-tile__num { color: var(--l-accent); }
.lp2-tile__unit { font-size: 12.5px; font-weight: 600; color: var(--l-meta-3); }
.lp2-tile__dot { margin-left: auto; align-self: center; width: 8px; height: 8px; border-radius: 50%; background: #1FA37F; }
.lp2-tile.is-loading { pointer-events: none; }

.lp2-cta { background: var(--l-cta-bg); -webkit-backdrop-filter: var(--l-blur); backdrop-filter: var(--l-blur); box-shadow: inset 0 0 0 1px var(--l-cta-line); color: #fff; border-radius: 28px; padding: 30px 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.lp2-cta__text { flex: 1; min-width: 240px; }
.lp2-cta__h { color: #fff; font-weight: 800; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.015em; }
.lp2-cta__p { margin-top: 8px !important; font-size: 16px; line-height: 1.45; color: #B8C4BF; text-wrap: pretty; }
.lp2-cta__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.lp2-btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 99px; padding: 15px 28px; font-family: var(--l-sans); font-size: 16px; font-weight: 800; line-height: 1.2; cursor: pointer; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s; }
.lp2-btn--mint { background: var(--l-cta); color: #062A22; border: 0; }
.lp2-btn--mint:hover { background: var(--l-cta-hover); color: #062A22; }
.lp2-btn--ghostdark { background: transparent; color: #fff; border: 1.5px solid var(--l-ghost-line); font-weight: 700; }
.lp2-btn--ghostdark:hover { border-color: var(--l-cta); color: #fff; }
.lp2-btn:focus-visible, .lp2-pill:focus-visible { outline: 3px solid var(--l-cta); outline-offset: 2px; }
@media (max-width: 640px) {
  .lp2-cta { padding: 24px 20px; border-radius: 22px; }
  .lp2-cta__btns { width: 100%; }
  .lp2-cta__btns .lp2-btn { flex: 1 1 0; padding: 14px 18px; }
}
.lp2-hub__ctawrap { padding-bottom: 22px; }
.lp2-scrollhint { display: flex; justify-content: center; padding: 0 0 18px; position: relative; z-index: 2; }
.lp2-scrollhint a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; color: var(--l-meta-2); text-decoration: none; }
.lp2-scrollhint a:hover { color: var(--l-accent); }

.lp2-about { position: relative; z-index: 2; background: var(--l-section); border-top: 1px solid var(--l-line-2); }
.lp2-about__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; padding-top: 70px; padding-bottom: 80px; }
.lp2-about__p { font-size: 17px; line-height: 1.6; color: var(--l-ink-2); margin-top: 14px !important; text-wrap: pretty; }
@media (max-width: 640px) { .lp2-about__grid { gap: 28px; padding-top: 44px; padding-bottom: 52px; } }

/* ---------- HALAMAN PERSATUAN ---------- */
.lp2-org__first { position: relative; overflow: hidden; }
.lp2-org__main { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 56px; align-items: start; padding-top: 18px; padding-bottom: 48px; }
@media (max-width: 640px) { .lp2-org__main { gap: 32px; padding-bottom: 32px; } }
.lp2-org__about { min-width: 0; }
.lp2-org__eyebrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lp2-org__since { font-size: 13.5px; font-weight: 600; color: var(--l-meta-2); }
.lp2-org__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--l-sep); }
.lp2-org__code { font-family: var(--l-display); font-weight: 900; font-size: clamp(72px, 9vw, 128px); line-height: .9; letter-spacing: -.03em; margin-top: 16px; overflow-wrap: anywhere; }
.lp2-org__name { font-weight: 800; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.015em; line-height: 1.15; margin-top: 16px !important; text-wrap: balance; }
.lp2-org__name:focus { outline: none; }
.lp2-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 0; padding: 0; list-style: none; }
.lp2-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; padding: 7px 13px; border-radius: 99px; background: var(--l-pill-bg); -webkit-backdrop-filter: var(--l-blur); backdrop-filter: var(--l-blur); border: 1px solid var(--l-chip-line); color: var(--l-ink-2); }
.lp2-chip .ti { font-size: 14px; color: var(--l-accent); }
.lp2-org__desc { font-size: 17px; line-height: 1.65; color: var(--l-ink-2); margin-top: 24px !important; max-width: 600px; text-wrap: pretty; white-space: pre-line; }
.lp2-org__about .lp2-stats { margin-top: 28px; max-width: 600px; }
.lp2-org__about .lp2-stat { border-radius: 18px; padding: 15px 16px; }
.lp2-org__about .lp2-stat__num { font-size: 26px; }
.lp2-org__about .lp2-stat__label { font-size: 13px; margin-top: 8px; }
@media (max-width: 480px) { .lp2-org__about .lp2-stat { padding: 12px 10px; } .lp2-org__about .lp2-stat__num { font-size: 22px; } }

.lp2-admin { margin-top: 28px; max-width: 600px; background: var(--l-cta-bg); -webkit-backdrop-filter: var(--l-blur); backdrop-filter: var(--l-blur); box-shadow: inset 0 0 0 1px var(--l-cta-line); color: #fff; border-radius: 22px; padding: 18px 18px 18px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lp2-admin__text { flex: 1; min-width: 200px; }
.lp2-admin__k { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--l-cta); }
.lp2-admin__name { font-size: 16.5px; font-weight: 700; margin-top: 5px; overflow-wrap: anywhere; }
.lp2-admin__sub { font-size: 13.5px; color: #AEB9B4; margin-top: 3px; }
.lp2-wa { flex: none; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 9px; min-height: 48px; background: var(--l-wa); color: #fff; border-radius: 99px; padding: 14px 22px; font-size: 15.5px; font-weight: 800; transition: background-color .2s, transform .2s; }
.lp2-wa:hover { background: var(--l-wa-hover); color: #fff; transform: translateY(-2px); }
.lp2-wa:focus-visible { outline: 3px solid var(--l-cta); outline-offset: 2px; }
.lp2-wa .ti { font-size: 20px; }
@media (max-width: 480px) { .lp2-wa { width: 100%; justify-content: center; } }

.lp2-switch { margin-top: 22px; max-width: 600px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lp2-switch__label { font-size: 14px; color: var(--l-meta-2); }
.lp2-switch__list { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.lp2-switch__a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; font-family: var(--l-display); font-size: 11.5px; font-weight: 800; padding: 7px 10px; border-radius: 9px; background: var(--l-pill-bg); border: 1px solid var(--l-chip-line); color: var(--l-ink-2); transition: border-color .2s, color .2s; }
.lp2-switch__a:hover { border-color: var(--l-accent); color: var(--l-accent); }

/* Kad log masuk */
.lp2-org__side { min-width: 0; display: flex; justify-content: center; }
.lp2-login { width: 100%; max-width: 470px; background: var(--l-surface); -webkit-backdrop-filter: var(--l-blur); backdrop-filter: var(--l-blur); border: 1px solid var(--l-line); border-radius: 28px; padding: 32px 30px 28px; box-shadow: 0 8px 0 -1px var(--l-mint-strong), 0 30px 60px -28px var(--l-shadow-c4); scroll-margin-top: 16px; }
@media (max-width: 480px) { .lp2-login { padding: 26px 20px 22px; border-radius: 24px; } }
.lp2-login__h { font-weight: 800; font-size: 28px; letter-spacing: -.02em; margin-top: 6px !important; }
.lp2-login__sub { font-size: 15px; line-height: 1.5; color: var(--l-meta-2); margin: 6px 0 24px !important; text-wrap: pretty; }
.lp2-login form { display: block; }
.lp2-field + .lp2-field { margin-top: 18px; }
.lp2-label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; color: var(--l-ink); }
.lp2-labelrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.lp2-labelrow .lp2-label { margin-bottom: 0; }
.lp2-input { width: 100%; font-family: var(--l-sans); font-size: 16px; padding: 15px 16px; border-radius: 14px; border: 1.5px solid var(--l-field-line); background: var(--l-field-bg); outline: none; color: var(--l-ink); transition: border-color .15s, background-color .15s; }
.lp2-input::placeholder { color: var(--l-placeholder); }
.lp2-input:focus { border-color: var(--l-accent); background: var(--l-field-focus); }
.lp2-input[aria-invalid="true"] { border-color: #D9534F; }
.lp2-help { font-size: 12.5px; color: var(--l-meta-3); margin-top: 6px !important; }
.lp2-pw { position: relative; }
.lp2-pw .lp2-input { padding-right: 52px; }
.lp2-pw .p-iconbtn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--l-meta-2); }
.lp2-link { background: none; border: 0; padding: 4px 0; cursor: pointer; font-family: var(--l-sans); font-size: 13.5px; font-weight: 700; color: var(--l-accent); text-decoration: underline; text-underline-offset: 3px; }
.lp2-link:hover { color: var(--l-accent-hover); }
.lp2-login .p-notice { margin-top: 14px; }
.lp2-submit { width: 100%; margin-top: 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; background: var(--l-btn-bg); color: var(--l-btn-ink); border: 0; border-radius: 99px; padding: 16px; font-family: var(--l-sans); font-size: 16.5px; font-weight: 800; cursor: pointer; transition: background-color .2s; }
.lp2-submit:hover { background: var(--l-btn-hover); }
.lp2-submit:focus-visible { outline: 3px solid var(--l-mint-strong); outline-offset: 3px; }
.lp2-submit:disabled { opacity: .7; cursor: progress; }
.lp2-login__foot { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--l-dash); text-align: center; font-size: 15px; color: var(--l-meta); }
.lp2-login__foot .lp2-link { font-size: 15px; font-weight: 800; }
.lp2-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; cursor: pointer; font-family: var(--l-sans); font-size: 14px; font-weight: 700; color: var(--l-meta-2); }
.lp2-back:hover { color: var(--l-accent); }
.lp2-login__view[hidden] { display: none; }

/* Bahagian bawah: program, AJK, hubungi */
.lp2-org__more { position: relative; z-index: 2; background: var(--l-section); border-top: 1px solid var(--l-line-2); }
.lp2-org__moregrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px 56px; padding-top: 56px; padding-bottom: 64px; align-items: start; }
@media (max-width: 640px) { .lp2-org__moregrid { gap: 32px; padding-top: 36px; padding-bottom: 44px; } }
.lp2-org__moregrid > section > .lp2-eyebrow { margin-bottom: 14px; }
.lp2-org__moregrid .p-datecard { border-radius: 20px; border-color: var(--l-line); box-shadow: var(--l-lift); }
.lp2-org__moregrid .lp-kosong { border-radius: 16px; border-color: var(--l-line); }
.lp2-org__daftar { font-size: 14px; color: var(--l-meta-2); margin-top: -18px !important; }
.lp2-org__stack { display: flex; flex-direction: column; gap: 32px; }

.lp2-state { padding-top: 32px; padding-bottom: 64px; }

/* ---------- footer ---------- */
.p-footer.lp2-foot { position: relative; z-index: 2; border-top: 1px solid var(--l-line-2); background: var(--l-footer); }
.lp2-foot .p-footer__inner { max-width: var(--l-wrap); margin: 0 auto; padding: 22px var(--l-gutter); display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; font-family: var(--l-sans); font-size: 14px; color: var(--l-meta-2); }
.lp2-foot .p-footer__inner p { margin: 0; }

/* Telefon sangat kecil (320–360px): jenama dan butang header dikecilkan supaya muat sebaris */
@media (max-width: 360px) {
  .lp2-head .p-sitehead__inner { padding-top: 16px; padding-bottom: 16px; gap: 8px; }
  .lp2-brand { gap: 8px; }
  .lp2-brand__logo { width: 36px; height: 36px; }
  .lp2-brand__word { font-size: 20px; }
  .lp2-pill { min-height: 40px; padding: 8px 14px; font-size: 14px; }
  .lp2-pill--line { padding: 8px 12px; }
}

/* ================= MOD GELAP =================
   Design Kama 2026-09-26 ("Perantau Landing/Persatuan", data-theme="dark").
   Hanya aktif bila <html data-theme="dark"> DAN body.lp2-on (skrin landing ditunjuk).
   Skrin lain (daftar, borang, log masuk penuh) kekal cerah. */
html[data-theme="dark"] body.lp2-on {
  color-scheme: dark;
  --l-ink: #ECF4F0;
  --l-ink-2: #CBD8D2;
  --l-meta: #A9B8B1;
  --l-meta-2: #8FA098;
  --l-meta-3: #8FA098;
  --l-accent: #74D6BE;
  --l-accent-hover: #9BE5D2;
  --l-mint: #1F6B57;
  --l-mint-soft: #1F6B57;
  --l-mint-strong: #3FAE8E;
  --l-mint-bg: rgba(116, 214, 190, .12);
  --l-line: rgba(116, 214, 190, .16);
  --l-line-2: rgba(255, 255, 255, .08);
  --l-dash: rgba(255, 255, 255, .12);
  --l-chip-line: rgba(255, 255, 255, .14);
  --l-field-line: rgba(116, 214, 190, .3);
  --l-field-bg: rgba(255, 255, 255, .04);
  --l-field-focus: rgba(255, 255, 255, .07);
  --l-placeholder: #80918A;
  --l-bg: #050907;
  --l-surface: rgba(10, 18, 15, .62);
  --l-section: #070C0A;
  --l-footer: #070C0A;
  --l-blur: blur(12px);
  --l-skel: rgba(255, 255, 255, .08);
  --l-sep: #4A5A53;
  --l-btn-bg: #74D6BE;
  --l-btn-ink: #062A22;
  --l-btn-hover: #9BE5D2;
  --l-pill-bg: rgba(10, 18, 15, .6);
  --l-pill-line: rgba(255, 255, 255, .14);
  --l-cta-bg: rgba(4, 9, 7, .72);
  --l-cta-line: rgba(116, 214, 190, .22);
  --l-shadow-c: rgba(0, 0, 0, .7);
  --l-shadow-c2: rgba(0, 0, 0, .7);
  --l-shadow-c3: rgba(0, 0, 0, .7);
  --l-shadow-c4: rgba(0, 0, 0, .7);
  --l-tile-hover: #74D6BE;
  --l-stat-hover: #74D6BE;
  --l-lift: 0 5px 0 -1px #1F6B57, 0 12px 26px -18px rgba(0, 0, 0, .7);
  --l-lift-hover: 0 8px 0 -1px #74D6BE, 0 22px 38px -16px rgba(0, 0, 0, .7);
}
/* Lapisan gambar: satu skrin penuh dari atas (termasuk header), pudar ke --l-bg di bawah.
   ::before tanpa induk positioned = relatif kepada viewport awal, jadi ia skrol bersama halaman. */
body.lp2-on::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100vh; min-height: 640px; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .6s; }
html[data-theme="dark"] body.lp2-on::before {
  opacity: 1;
  background-color: #050907;
  background-image:
    linear-gradient(90deg, rgba(5, 9, 7, .94) 0%, rgba(5, 9, 7, .72) 34%, rgba(5, 9, 7, .28) 62%, rgba(5, 9, 7, .55) 100%),
    linear-gradient(180deg, rgba(5, 9, 7, .15) 0%, rgba(5, 9, 7, 0) 55%, rgba(5, 9, 7, .95) 100%),
    url("../img/bg-gelap.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, 72% 42%;
  background-repeat: no-repeat;
}
/* Halaman persatuan: kecerunan design "Perantau Persatuan" */
html[data-theme="dark"] body.lp2-on.lp2-org-on::before {
  background-image:
    linear-gradient(90deg, rgba(5, 9, 7, .92) 0%, rgba(5, 9, 7, .7) 40%, rgba(5, 9, 7, .45) 70%, rgba(5, 9, 7, .75) 100%),
    linear-gradient(180deg, rgba(5, 9, 7, .1) 0%, rgba(5, 9, 7, 0) 50%, rgba(5, 9, 7, .9) 100%),
    url("../img/bg-gelap.jpg");
  background-position: center, center, 35% 40%;
}
/* Telefon (potret): teks penuh lebar, jadi kecerunan menegak + peta di tengah */
@media (max-width: 760px) {
  html[data-theme="dark"] body.lp2-on::before,
  html[data-theme="dark"] body.lp2-on.lp2-org-on::before {
    background-image:
      linear-gradient(180deg, rgba(5, 9, 7, .58) 0%, rgba(5, 9, 7, .56) 45%, rgba(5, 9, 7, .75) 75%, rgba(5, 9, 7, 1) 100%),
      linear-gradient(90deg, rgba(5, 9, 7, .35) 0%, rgba(5, 9, 7, 0) 100%),
      url("../img/bg-gelap.jpg");
    background-position: center, center, 56% 45%;
  }
}
html[data-theme="dark"] body.lp2-on .lp2-bg,
html[data-theme="dark"] body.lp2-on .lp2-flag { opacity: 0; }
html[data-theme="dark"] body.lp2-on .lp2-hub__first,
html[data-theme="dark"] body.lp2-on .lp2-org__first { background: transparent; }
html[data-theme="dark"] body.lp2-on .lp2-org__more,
html[data-theme="dark"] body.lp2-on .lp2-about { border-top-color: var(--l-line-2); }
html[data-theme="dark"] body.lp2-on .lp2-input[aria-invalid="true"] { border-color: #E5736B; }
html[data-theme="dark"] body.lp2-on .lp2-tile__dot { box-shadow: 0 0 0 4px rgba(31, 163, 127, .18); }
html[data-theme="dark"] body.lp2-on .lp2-pw .p-iconbtn:hover { background: rgba(255, 255, 255, .08); color: var(--l-ink); }

/* Token portal.css di dalam landing (kad program, AJK, hubungi, notis ralat, skeleton) */
html[data-theme="dark"] body.lp2-on .lp2 {
  --surface: rgba(10, 18, 15, .66);
  --surface-hover: rgba(255, 255, 255, .06);
  --panel: rgba(255, 255, 255, .06);
  --panel-press: rgba(255, 255, 255, .1);
  --line: rgba(116, 214, 190, .16);
  --edge: rgba(255, 255, 255, .22);
  --edge-strong: rgba(255, 255, 255, .35);
  --ink: #ECF4F0;
  --ink-2: #CBD8D2;
  --ink-3: #8FA098;
  --meta: #A9B8B1;
  --on-ink: #062A22;
  --accent-fill: #74D6BE;
  --accent-strong: #74D6BE;
  --accent-strong-hover: #9BE5D2;
  --accent-strong-active: #5FC7AD;
  --accent-ink: #74D6BE;
  --accent-tint: rgba(116, 214, 190, .12);
  --action: #74D6BE;
  --action-hover: #9BE5D2;
  --action-active: #5FC7AD;
  --select-bg: rgba(116, 214, 190, .12);
  --focus: #74D6BE;
  --tone-green: #74D6BE;
  --tone-green-bg: rgba(116, 214, 190, .12);
  --success: #74D6BE;
  --success-bg: rgba(116, 214, 190, .1);
  --success-line: rgba(116, 214, 190, .3);
  --pending: #F2BC84;
  --pending-bg: rgba(242, 188, 132, .1);
  --pending-line: rgba(242, 188, 132, .3);
  --danger: #F0948C;
  --danger-bg: rgba(229, 115, 107, .12);
  --danger-line: rgba(229, 115, 107, .38);
  --info: #A9BCE0;
  --info-bg: rgba(169, 188, 224, .1);
  --info-line: rgba(169, 188, 224, .3);
}
html[data-theme="dark"] body.lp2-on .lp2 .p-datecard,
html[data-theme="dark"] body.lp2-on .lp2 .lp-kosong,
html[data-theme="dark"] body.lp2-on .lp2 .p-actionbtn { -webkit-backdrop-filter: var(--l-blur); backdrop-filter: var(--l-blur); }

/* Peralihan tema: hanya sejurus selepas tekan butang (kelas sementara), tiada bila kurang gerak */
html.lp2-tema-tukar body.lp2-on,
html.lp2-tema-tukar body.lp2-on *:not(.lp2-bg):not(.lp2-flag) { transition: background-color .4s, color .4s, border-color .4s, box-shadow .4s !important; }
@media (prefers-reduced-motion: reduce) {
  body.lp2-on::before, .lp2-bg, .lp2-flag, .lp2-theme { transition: none; }
  html.lp2-tema-tukar body.lp2-on,
  html.lp2-tema-tukar body.lp2-on *:not(.lp2-bg):not(.lp2-flag) { transition: none !important; }
}
