        :root {
            --primary-color: #004d40;
            --primary-dark: #00352c;
            --primary-light: #00695c;
            --primary-soft: rgba(0, 77, 64, 0.08);
            --secondary-color: #c5a973;
            --secondary-light: #dfc696;
            --secondary-soft: rgba(197, 169, 115, 0.16);
            --slate-950: #061c17;
            --slate-900: #0f172a;
            --slate-700: #334155;
            --slate-500: #64748b;
            --slate-200: #e2e8f0;
            --slate-100: #f1f5f9;
        }

        * {
            box-sizing: border-box;
        }

        body {
            font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
            background-color: #f8fafc;
            color: var(--slate-900);
            min-height: 100vh;
            margin: 0;
            display: flex;
            flex-direction: column;
        }

        /* =========================================================
           BAR PREVIEW & DOWNLOAD (Otomatis dihapus saat di-download)
        ========================================================= */
        .preview-bar {
            background: var(--slate-950);
            color: #fff;
            padding: 8px 20px;
            font-size: 0.78rem;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            border-bottom: 2px solid var(--secondary-color);
            z-index: 2000;
        }

        /* =========================================================
           MAIN LOGIN WRAPPER (SPLIT SCREEN & CENTERED MODE)
        ========================================================= */
        .sso-auth-wrapper {
            flex: 1;
            display: flex;
            min-height: calc(100vh - 45px);
            width: 100%;
        }

        /* Sisi Kiri: Branding Emerald & Gold */
        .sso-brand-side {
            flex: 1.15;
            background: linear-gradient(145deg, #03221c 0%, #004d40 60%, #00382e 100%);
            color: #ffffff;
            padding: 48px 56px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
        }

        /* Ornamen Cahaya Gold & Emerald */
        .sso-brand-side::before {
            content: "";
            position: absolute;
            top: -15%;
            right: -15%;
            width: 520px;
            height: 520px;
            background: radial-gradient(circle, rgba(197, 169, 115, 0.25) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
        }

        .sso-brand-side::after {
            content: "";
            position: absolute;
            bottom: -20%;
            left: -10%;
            width: 440px;
            height: 440px;
            background: radial-gradient(circle, rgba(0, 150, 136, 0.2) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
        }

        .brand-top-identity {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .brand-emblem {
            width: 54px;
            height: 54px;
            border-radius: 14px;
            background: rgba(197, 169, 115, 0.14);
            backdrop-filter: blur(10px);
            border: 1.5px solid rgba(197, 169, 115, 0.45);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8px;
        }

        .brand-emblem img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        .brand-hero-content {
            position: relative;
            z-index: 2;
            max-width: 540px;
            margin: auto 0;
            padding: 32px 0;
        }

        .sso-pill-tag {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(197, 169, 115, 0.15);
            border: 1px solid rgba(197, 169, 115, 0.45);
            color: var(--secondary-light);
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.6px;
            text-transform: uppercase;
            padding: 6px 14px;
            border-radius: 50px;
            margin-bottom: 20px;
        }

        .hero-heading {
            font-size: 2.35rem;
            font-weight: 800;
            line-height: 1.2;
            letter-spacing: -0.5px;
            margin-bottom: 16px;
            color: #ffffff;
        }

        .hero-heading span {
            color: var(--secondary-color);
        }

        .hero-desc {
            font-size: 0.96rem;
            color: rgba(255, 255, 255, 0.82);
            line-height: 1.65;
            margin-bottom: 32px;
        }

        /* Bento Feature Cards di Sisi Kiri */
        .feature-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 14px;
        }

        .feature-glass-card {
            background: rgba(255, 255, 255, 0.06);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(197, 169, 115, 0.22);
            border-radius: 16px;
            padding: 16px;
            transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
        }

        .feature-glass-card:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--secondary-color);
            transform: translateY(-3px);
        }

        .feature-glass-card i {
            font-size: 1.5rem;
            color: var(--secondary-color);
            margin-bottom: 8px;
            display: inline-block;
        }

        .feature-glass-card h6 {
            font-size: 0.88rem;
            font-weight: 700;
            margin-bottom: 4px;
            color: #fff;
        }

        .feature-glass-card p {
            font-size: 0.76rem;
            color: rgba(255, 255, 255, 0.72);
            margin: 0;
            line-height: 1.4;
        }

        .brand-footer-note {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.78rem;
            color: rgba(255, 255, 255, 0.65);
            border-top: 1px solid rgba(197, 169, 115, 0.22);
            padding-top: 20px;
        }

        /* =========================================================
           SISI KANAN: AREA FORM LOGIN
        ========================================================= */
        .sso-form-side {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 36px 24px;
            background: #ffffff;
            position: relative;
        }

        .login-card-box {
            width: 100%;
            max-width: 430px;
        }

        .form-header-logo {
            width: 56px;
            height: 56px;
            border-radius: 16px;
            background: var(--primary-soft);
            color: var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            margin-bottom: 20px;
            border: 1.5px solid var(--secondary-color);
            box-shadow: 0 6px 16px rgba(0, 77, 64, 0.08);
        }

        .login-title {
            font-size: 1.65rem;
            font-weight: 800;
            color: var(--primary-color);
            letter-spacing: -0.4px;
            margin-bottom: 6px;
        }

        .login-subtitle {
            font-size: 0.9rem;
            color: var(--slate-500);
            margin-bottom: 26px;
        }

        /* Input Group Modern */
        .form-label-custom {
            font-size: 0.82rem;
            font-weight: 700;
            color: var(--slate-700);
            margin-bottom: 7px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .input-icon-group {
            position: relative;
        }

        .input-icon-group .lead-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.2rem;
            color: #94a3b8;
            pointer-events: none;
            transition: color 0.2s ease;
        }

        .form-control-sso {
            width: 100%;
            height: 50px;
            padding: 10px 46px 10px 46px;
            font-size: 0.92rem;
            font-weight: 500;
            color: var(--slate-900);
            background-color: #f8fafc;
            border: 1.5px solid var(--slate-200);
            border-radius: 13px;
            transition: all 0.2s ease;
        }

        .form-control-sso::placeholder {
            color: #94a3b8;
            font-weight: 400;
        }

        .form-control-sso:focus {
            background-color: #ffffff;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 4px rgba(0, 77, 64, 0.12);
            outline: none;
        }

        .input-icon-group:focus-within .lead-icon {
            color: var(--primary-color);
        }

        /* Tombol Show/Hide Password */
        .btn-toggle-pass {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            border: none;
            background: transparent;
            color: #94a3b8;
            width: 34px;
            height: 34px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.15s;
        }

        .btn-toggle-pass:hover {
            background: var(--slate-100);
            color: var(--primary-color);
        }

        /* Caps Lock Warning */
        .capslock-indicator {
            display: none;
            font-size: 0.75rem;
            font-weight: 600;
            color: #b45309;
            margin-top: 6px;
        }

        /* Kotak Cloudflare Turnstile */
        .turnstile-container {
            background: #f8fafc;
            border: 1px solid var(--slate-200);
            border-radius: 13px;
            padding: 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 78px;
            margin-bottom: 20px;
        }

        /* Tombol Submit Utama (#004d40 + Aksen #c5a973) */
        .btn-sso-submit {
            width: 100%;
            height: 52px;
            border: 1px solid rgba(197, 169, 115, 0.4);
            border-radius: 13px;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
            color: #ffffff;
            font-size: 0.96rem;
            font-weight: 700;
            letter-spacing: 0.2px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            cursor: pointer;
            box-shadow: 0 10px 22px -5px rgba(0, 77, 64, 0.4);
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .btn-sso-submit:hover {
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
            border-color: var(--secondary-color);
            transform: translateY(-2px);
            box-shadow: 0 14px 26px -5px rgba(0, 77, 64, 0.5);
        }

        .btn-sso-submit i {
            color: var(--secondary-color);
        }

        /* Divider & Register Link */
        .auth-divider {
            display: flex;
            align-items: center;
            text-align: center;
            margin: 24px 0 18px 0;
            color: #94a3b8;
            font-size: 0.78rem;
            font-weight: 600;
        }

        .auth-divider::before,
        .auth-divider::after {
            content: "";
            flex: 1;
            border-bottom: 1px solid var(--slate-200);
        }

        .auth-divider span {
            padding: 0 12px;
        }

        .btn-register-outline {
            width: 100%;
            height: 46px;
            border-radius: 12px;
            border: 1.5px solid var(--secondary-color);
            background: var(--secondary-soft);
            color: var(--primary-color);
            font-size: 0.88rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .btn-register-outline:hover {
            background: var(--secondary-color);
            color: var(--slate-950);
        }

        /* =========================================================
           MODE LAYOUT TENGAH (CENTERED CARD MODE)
        ========================================================= */
        .sso-auth-wrapper.centered-mode {
            background: linear-gradient(145deg, #03221c 0%, #004d40 60%, #00382e 100%);
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        .sso-auth-wrapper.centered-mode .sso-brand-side {
            display: none !important;
        }

        .sso-auth-wrapper.centered-mode .sso-form-side {
            flex: none;
            width: 100%;
            max-width: 470px;
            border-radius: 24px;
            padding: 40px 36px;
            border: 2px solid rgba(197, 169, 115, 0.4);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
        }

        /* Responsif untuk Tablet & Mobile */
        @media (max-width: 991px) {
            .sso-auth-wrapper {
                flex-direction: column;
            }

            /* Panel brand diringkas jadi header.
               Sebelumnya tingginya 484px di layar HP — lebih dari
               setengah layar — sehingga kartu form terdorong ke bawah
               dan autofocus membuat browser menebak sendiri seberapa
               jauh harus scroll. Hasilnya berbeda-beda per halaman:
               di halaman register judul "Registrasi Akun" ikut
               terpotong ke atas layar, di login tidak. */
            .sso-brand-side {
                padding: 20px 20px 22px;
                gap: 0;
            }

            /* Di layar HP, teks promosi hero disembunyikan.
               Tujuannya satu: kartu form harus sudah terlihat tanpa
               perlu scroll, di SEMUA halaman auth. Selama tinggi
               header berubah-ubah, posisi scroll otomatis ikut
               berubah dan terasa tidak konsisten.
               Identitas instansi (lambang + nama) tetap tampil. */
            .brand-hero-content {
                display: none;
            }

            .feature-grid,
            .brand-footer-note {
                display: none;
            }

            .sso-form-side {
                /* Cukup ruang agar kartu tidak menempel di tepi,
                   tetapi tidak mendorongnya terlalu jauh ke bawah.
                   Padding kiri/kanan disamakan dengan header (20px)
                   supaya lambang dan kartu rata satu garis. */
                padding: 20px 20px 32px;
                align-items: flex-start;
            }

            /* Bila browser tetap perlu men-scroll (mis. layar sangat
               pendek atau keyboard terbuka), sisakan ruang di atas
               field yang difokuskan supaya judul kartu tidak ikut
               terpotong. */
            .login-card-box input,
            .login-card-box button {
                scroll-margin-top: 90px;
            }
        }
