/* =====================================================================
   CITRA ENERGI BUMI — Portal Klien (login + dashboard)
   Memperluas style.css tanpa membuat gaya visual baru — hanya
   menambahkan struktur topbar & layout dashboard SaaS yang ringkas.
   ===================================================================== */

/* ---------- Body khusus portal ---------- */
.portal-body {
  background: var(--bg);
  min-height: 100vh;
}

/* ---------- Auth: sisi formulir (kanan) ---------- */
.auth-form-side {
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background: var(--bg);
}
.auth-aside-inner { position: relative; z-index: 2; }
.auth-aside .auth-points { display: grid; gap: 18px; margin-top: 8px; }
.auth-point { display: flex; gap: 14px; align-items: flex-start; }
.auth-point .ap-ico {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; color: var(--accent);
  background: var(--accent-soft); border: 1px solid rgba(255,122,26,.25);
}
.auth-point .ap-ico svg { width: 20px; height: 20px; }
.auth-point h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.auth-point p { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.auth-foot { color: var(--faint); font-size: .82rem; font-family: var(--font-mono); }
.auth-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; transition: color .25s; }
.auth-back:hover { color: var(--accent); }

/* ---------- Topbar dashboard ---------- */
.portal-top {
  position: sticky; top: 0; z-index: 1000; height: 70px;
  display: flex; align-items: center;
  background: rgba(8,11,18,.96);
  border-bottom: 1px solid var(--border);
}

/* Konten dashboard klien selalu tampil (tidak bergantung animasi reveal) */
body.portal-body [data-reveal] { opacity: 1 !important; transform: none !important; }
.portal-top .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.portal-top .brand { font-size: 1.1rem; }
.portal-user { display: flex; align-items: center; gap: 16px; }
.portal-user .pu-meta { text-align: right; line-height: 1.25; }
.portal-user .pu-name { font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.portal-user .pu-role { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.portal-avatar {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
  color: #1a1206; background: var(--grad-accent); box-shadow: 0 8px 22px -8px rgba(255,122,26,.7);
}
@media (max-width: 560px){ .portal-user .pu-meta { display: none; } }

/* ---------- Area konten dashboard ---------- */
.portal-main { padding-block: clamp(34px, 6vw, 56px); }
.portal-hello h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.portal-hello .lead { margin-top: 12px; }

/* ---------- Kartu statistik ---------- */
.stat-card { padding: clamp(20px, 2.6vw, 28px); }
.stat-card .sc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat-card .sc-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid rgba(255,122,26,.25); color: var(--accent); }
.stat-card .sc-ico svg { width: 22px; height: 22px; }
.stat-card .sc-num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 700; line-height: 1; margin-top: 18px; }
.stat-card .sc-lbl { color: var(--muted); margin-top: 8px; font-size: .9rem; }

/* ---------- Kartu proyek ---------- */
.proj-card { padding: clamp(24px, 3vw, 34px); }
.proj-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.proj-head h3 { margin: 0; }
.proj-meta { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 16px; }
.proj-meta .pm {
  display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--muted);
  background: rgba(255,255,255,.03); border: 1px solid var(--border); padding: 6px 12px; border-radius: 100px;
}
.proj-meta .pm svg { width: 15px; height: 15px; color: var(--faint); }
.proj-desc { color: var(--muted); margin-top: 16px; font-size: .94rem; max-width: 70ch; }

.proj-progress { margin-top: 24px; }
.proj-progress .pp-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.proj-progress .pp-lbl { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.proj-progress .pp-num { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.proj-progress .pp-num span { color: var(--accent); }
.proj-progress .progress { height: 12px; }

.proj-timeline-head {
  display: flex; align-items: center; gap: 10px; margin: 28px 0 22px;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.proj-timeline-head::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.tl-item h4 { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; margin: 6px 0 4px; }
.tl-item p { color: var(--muted); font-size: .9rem; margin: 0; }
.tl-prog { display: inline-block; margin-top: 8px; font-family: var(--font-mono); font-size: .72rem; color: var(--accent); }

/* ---------- Empty state ---------- */
.portal-empty { padding: clamp(34px, 5vw, 56px); text-align: center; }
.portal-empty .pe-ico { width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 18px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid rgba(255,122,26,.25); color: var(--accent); }
.portal-empty .pe-ico svg { width: 28px; height: 28px; }
