:root {
    --primary: #000000;
    --primary-dark: #262626;
    --accent: #262626;
    --theme-card-radius: 16px;
}

/* ============================================================================
   ECI (Electronic City) theme tokens — di-load global oleh theme.php.
   Mengikuti gaya eci.id: biru #0F69AB, aksen oranye #F7941D, kanvas abu terang.
   ============================================================================ */
:root {
    --tpl-primary: #0F69AB;
    --tpl-primary-dark: #0B4F82;
    --tpl-primary-light: #1A86D1;
    --tpl-accent: #F7941D;
    --tpl-page-bg: #F3F5F7;
    --tpl-card-radius: 10px;
    --tpl-topbar: #0F69AB;
    --tpl-font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

body[data-theme="eci"] {
    background: var(--tpl-page-bg);
    font-family: var(--tpl-font);
}

/* Logo header tampil di atas latar putih → jangan di-invert seperti tema gelap. */
body[data-theme="eci"] #mainHeader .site-logo { filter: none; }

/* Tombol primary global tetap biru ECI. */
body[data-theme="eci"] .btn-shopee {
    background: var(--tpl-primary);
}
body[data-theme="eci"] .btn-shopee:hover {
    background: var(--tpl-primary-dark);
}

/* Swiper pagination aktif → aksen oranye ECI (sesuai dot aktif di eci.id). */
body[data-theme="eci"] .swiper-pagination-bullet-active {
    background: var(--tpl-accent) !important;
}

/* ============================================================================
   ECI (Electronic City) — Auth screen (#authPage).
   Gaya Unilever terpusat: gradasi biru ECI penuh layar + logo watermark
   + glass card mengambang. Warna brand ECI: biru #0F69AB, aksen #F7941D.
   ============================================================================ */

/* ---- Latar gradasi biru ECI penuh layar ---- */
body[data-theme="eci"] #authPage {
    background:
        radial-gradient(135% 120% at 50% -10%, #1A86D1 0%, #0F69AB 38%, #0B4F82 70%, #083660 100%) !important;
    padding: 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

/* ---- Tekstur grid halus a la portal enterprise ---- */
body[data-theme="eci"] #authPage::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(120% 100% at 50% 30%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(120% 100% at 50% 30%, #000 0%, transparent 78%);
}

/* ---- Sorot cahaya ambient (depth) ---- */
body[data-theme="eci"] .auth-uni-glow {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 48% at 50% 32%, rgba(26, 134, 209, 0.22), transparent 70%),
        radial-gradient(42% 42% at 86% 8%, rgba(15, 105, 171, 0.30), transparent 70%),
        radial-gradient(48% 48% at 8% 92%, rgba(8, 54, 96, 0.55), transparent 72%);
}

/* ---- Watermark logo ECI transparan raksasa di tengah ---- */
body[data-theme="eci"] .auth-uni-watermark {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url('templates/eci/assets/logo-auth.png');
    background-repeat: no-repeat;
    background-position: center 44%;
    background-size: min(120vmin, 980px) auto;
    opacity: 0.08;
    filter: brightness(0) invert(1) drop-shadow(0 40px 90px rgba(0, 0, 0, 0.35));
    animation: eciWatermarkFloat 14s ease-in-out infinite;
}

@keyframes eciWatermarkFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-14px) scale(1.012); }
}

@media (prefers-reduced-motion: reduce) {
    body[data-theme="eci"] .auth-uni-watermark { animation: none; }
}

/* ---- Hero: logo ECI di atas kartu ---- */
body[data-theme="eci"] .auth-uni-hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    text-align: center;
}

body[data-theme="eci"] .auth-uni-hero-logo {
    width: clamp(140px, 16vmin, 200px);
    height: auto;
    display: block;
    opacity: 0.96;
    filter: brightness(0) invert(1) drop-shadow(0 18px 42px rgba(0, 28, 60, 0.5));
    animation: eciHeroIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes eciHeroIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.96); }
    to   { opacity: 0.96; transform: translateY(0) scale(1); }
}

body[data-theme="eci"] .auth-uni-hero-eyebrow {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(210, 230, 255, 0.82);
    padding: 5px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* ---- Kerangka: satu kolom terpusat ---- */
body[data-theme="eci"] .auth-corporate-layout {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100dvh;
    padding: calc(40px + env(safe-area-inset-top, 0px)) 20px calc(28px + env(safe-area-inset-bottom, 0px));
}

/* ---- Sembunyikan panel brand kiri & topbar ---- */
body[data-theme="eci"] .auth-corporate-brand,
body[data-theme="eci"] #authPage .auth-topbar,
body[data-theme="eci"] #authPage .auth-split-left {
    display: none !important;
}

body[data-theme="eci"] .auth-corporate-panel {
    flex: none;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    min-height: 0;
}

body[data-theme="eci"] .auth-corporate-panel-body {
    width: 100%;
    padding: 0;
    display: block;
}

body[data-theme="eci"] #authPage .auth-split-inner {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 0 !important;
    gap: 0 !important;
}

/* ---- Kartu kaca (glassmorphism) ---- */
body[data-theme="eci"] #authPage .auth-card {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 34px 32px 30px !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.93) !important;
    -webkit-backdrop-filter: blur(22px) saturate(125%);
    backdrop-filter: blur(22px) saturate(125%);
    border: 1px solid rgba(255, 255, 255, 0.65) !important;
    box-shadow:
        0 34px 80px -24px rgba(8, 40, 80, 0.62),
        0 2px 0 rgba(255, 255, 255, 0.6) inset,
        0 0 0 1px rgba(15, 60, 105, 0.06) !important;
    animation: eciCardRise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes eciCardRise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Judul ---- */
body[data-theme="eci"] #authPage .auth-card h2 {
    color: #0B2E4E !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 22px;
    padding-bottom: 0;
    border-bottom: none;
}

/* ---- Input ---- */
body[data-theme="eci"] #authPage .auth-card input {
    background: #f4f8fc !important;
    border: 1px solid #c8daea !important;
    border-radius: 11px !important;
    height: 48px !important;
    font-size: 14px !important;
    color: #0B2E4E;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

body[data-theme="eci"] #authPage .auth-card input::placeholder {
    color: #8FA5BE;
    font-weight: 400;
}

body[data-theme="eci"] #authPage .auth-card input:focus {
    border-color: #0F69AB !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(15, 105, 171, 0.13);
    outline: none;
}

body[data-theme="eci"] #authPage .auth-card .bg-gradient-to-br {
    background: #EAF3FB !important;
    border: 1px solid #bdd4e7 !important;
    border-radius: 12px !important;
}

body[data-theme="eci"] #authPage .auth-card label {
    color: #2A6A9A !important;
    font-weight: 700 !important;
    font-size: 10px !important;
    letter-spacing: 0.12em;
}

/* ---- Tombol utama ---- */
body[data-theme="eci"] #authPage .btn-shopee {
    background: linear-gradient(135deg, #1A86D1 0%, #0B4F82 100%) !important;
    border-radius: 11px !important;
    height: 50px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff !important;
    box-shadow: 0 14px 28px -10px rgba(8, 50, 100, 0.70) !important;
    transition: filter 0.2s, transform 0.1s, box-shadow 0.2s;
}

body[data-theme="eci"] #authPage .btn-shopee:hover {
    filter: brightness(1.08);
    box-shadow: 0 18px 34px -10px rgba(8, 50, 100, 0.78) !important;
}

body[data-theme="eci"] #authPage .btn-shopee:active {
    transform: translateY(1px);
}

/* ---- Tautan & teks bantu ---- */
body[data-theme="eci"] #authPage .auth-card .text-blue-600,
body[data-theme="eci"] #authPage .auth-card .text-blue-600 span {
    color: #0F69AB !important;
    font-weight: 600 !important;
}

body[data-theme="eci"] #authPage .auth-card .text-gray-500,
body[data-theme="eci"] #authPage .auth-card .text-gray-600 {
    color: #5A7A99 !important;
}

/* ---- Footer legal di bawah kartu ---- */
body[data-theme="eci"] .auth-corporate-footer {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    margin: 18px auto 0;
    padding: 14px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    text-align: center;
    border-top: none;
    background: transparent;
}

body[data-theme="eci"] .auth-corporate-footer p {
    font-size: 11px !important;
    line-height: 1.7 !important;
    color: rgba(210, 228, 250, 0.62) !important;
    max-width: 400px;
    margin: 0 auto;
}

body[data-theme="eci"] .auth-corporate-footer a {
    color: #8EC9F5 !important;
    font-weight: 600 !important;
    text-decoration: none;
}

body[data-theme="eci"] .auth-corporate-footer a:hover {
    text-decoration: underline;
}

/* ---- Responsif ---- */
@media (min-width: 900px) {
    body[data-theme="eci"] .auth-uni-watermark {
        background-size: min(96vmin, 1040px) auto;
        opacity: 0.07;
    }

    body[data-theme="eci"] #authPage .auth-card {
        padding: 40px 38px 34px !important;
    }

    body[data-theme="eci"] .auth-uni-hero-logo {
        width: clamp(150px, 17vmin, 188px);
    }
}

@media (max-width: 480px) {
    body[data-theme="eci"] .auth-uni-watermark {
        background-size: 150vmin auto;
        opacity: 0.07;
    }

    body[data-theme="eci"] .auth-corporate-layout {
        padding-top: calc(28px + env(safe-area-inset-top, 0px));
    }

    body[data-theme="eci"] .auth-uni-hero-logo {
        width: clamp(124px, 38vw, 160px);
    }

    body[data-theme="eci"] #authPage .auth-card {
        padding: 28px 22px 26px !important;
    }

    body[data-theme="eci"] #authPage .auth-card h2 {
        font-size: 1.35rem !important;
    }
}
