        body,
        html {
            height: 100%;
            margin: 0;
            font-family: 'Poppins', sans-serif;
            overflow: hidden;
        }

        /* Wrapper Utama dengan Wallpaper */
        .login-wrapper {
            display: flex;
            height: 100vh;
            width: 100vw;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            position: relative;
            justify-content: flex-end;
            align-items: center;
            box-sizing: border-box;
            padding: 10px;
            overflow: hidden;
        }

        /* Overlay transparansi putih tipis */
        .login-wrapper::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.2);
            z-index: 1;
        }

        /* Sisi Kanan: Kotak Form Login (Kompak) */
        .login-right {
            position: relative;
            z-index: 2;
            width: 100%;
            max-width: 350px;
            margin-right: 2px;
        }

        .login-box-custom {
            background: #fff;
            padding: 18px 22px;
            border-radius: 10px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(0, 0, 0, 0.1);
            max-height: 98vh;
            overflow: hidden;
            cursor: move;
        }

        /* Navigasi Metode Login (Tabs) */
        .login-tabs {
            display: flex;
            justify-content: space-between;
            margin-bottom: 12px;
            border-bottom: 2px solid #f4f4f4;
            padding-bottom: 6px;
        }

        .login-tab-btn {
            background: none;
            border: none;
            font-size: 11px;
            font-weight: 600;
            color: #777;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 4px;
            transition: all 0.2s;
        }

        .login-tab-btn.active {
            background: #0073b7;
            color: #fff;
        }

        /* Logo Header */
        .login-logo-area {
            text-align: center;
            margin-bottom: 6px;
        }

        .logo-icon-img img.img-logo-custom {
            max-height: 55px;
            width: auto;
            object-fit: contain;
            margin-bottom: 2px;
        }

        .welcome-text {
            text-align: center;
            color: #555;
            font-size: 9px;
            margin-top: 10px;
            margin-bottom: 8px;
            font-weight: 600;
        }

        /* Input & Control Styling */
        .form-group {
            margin-bottom: 8px;
        }

        .input-group-right {
            position: relative;
            display: flex;
            align-items: center;
        }

        .input-group-right .form-control {
            background: #fff;
            border: 1px solid #d2d6de;
            color: #333;
            border-radius: 4px !important;
            height: 36px;
            padding-right: 36px;
            padding-left: 10px;
            font-size: 13px;
            box-shadow: none;
            width: 100%;
            font-family: 'Poppins', sans-serif;
        }

        .input-group-right select.form-control {
            padding-right: 12px;
        }

        .input-group-right .form-control:focus {
            border-color: #3c8dbc;
            box-shadow: none;
        }

        .input-group-right .icon-addon-right {
            position: absolute;
            right: 0;
            top: 0;
            height: 36px;
            width: 36px;
            background: transparent;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #555;
            font-size: 14px;
            cursor: pointer;
            border-left: none;
        }

        /* Fix Select2 agar proporsional di Card & Modal */
        .select2-container {
            width: 100% !important;
            font-size: 12px;
        }

        .select2-container .select2-selection--single {
            height: 36px !important;
            border: 1px solid #d2d6de !important;
            border-radius: 4px !important;
            padding-top: 3px;
        }

        .select2-container--default .select2-selection--single .select2-selection__arrow {
            height: 34px !important;
        }

        /* Captcha Section Layout */
        .captcha-wrapper-flex {
            display: flex;
            gap: 6px;
            align-items: center;
            margin-bottom: 8px;
        }

        .captcha-box-img {
            flex: 1;
            background: #f9fafc;
            border: 1px solid #d2d6de;
            border-radius: 4px;
            padding: 4px 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: monospace;
            font-size: 16px;
            font-weight: bold;
            letter-spacing: 3px;
            color: #0073b7;
            user-select: none;
            height: 36px;
            text-decoration: line-through;
        }

        .captcha-refresh-btn {
            width: 36px;
            height: 36px;
            background: #fff;
            border: 1px solid #d2d6de;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #555;
            cursor: pointer;
            font-size: 14px;
        }

        .captcha-refresh-btn:hover {
            background: #f4f4f4;
        }

        /* Action Row */
        .action-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-top: 8px;
            margin-bottom: 6px;
        }

        .links-col {
            font-size: 12px;
        }

        .links-col a {
            color: #0073b7;
            display: block;
            margin-bottom: 2px;
            text-decoration: none;
            font-weight: 500;
        }

        .links-col a:hover {
            text-decoration: underline;
        }

        .btn-login-custom {
            background: #fff;
            border: 1px solid #444;
            color: #333;
            font-weight: 600;
            padding: 6px 16px;
            border-radius: 4px;
            font-size: 13px;
            transition: all 0.2s;
            font-family: 'Poppins', sans-serif;
            letter-spacing: 0.5px;
        }

        .btn-login-custom:hover {
            background: #f4f4f4;
            color: #000;
        }

        /* Scanner & Face Camera Box */
        .scanner-container {
            width: 100%;
            height: 180px;
            background: #000;
            border-radius: 4px;
            margin-bottom: 8px;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #qr-reader {
            width: 100% !important;
            border: none !important;
        }

        #qr-reader video {
            object-fit: cover;
        }

        #faceCameraFeed {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Divider & Footer */
        .login-divider {
            border-top: 1px solid #e1e1e1;
            margin: 20px 0 8px 0;
        }

        .footer-note {
            text-align: center;
            font-size: 10px;
            color: #555;
            line-height: 1.15;
            margin-top: 0px;
        }

        .footer-note p {
            margin: 2px 0;
        }

        .footer-note a {
            color: #0073b7;
            text-decoration: none;
        }

        .footer-note a:hover {
            text-decoration: underline;
        }

        /* Modal Custom styling agar tampil di atas elemen lain & tidak tertutup overlay */
        .modal {
            z-index: 99999 !important;
        }

        .modal-backdrop {
            z-index: 99990 !important;
        }

        .modal-content {
            font-family: 'Poppins', sans-serif;
            border-radius: 8px;
        }

        .swal-custom-popup {
            width: 380px !important;
            font-size: 14px !important;
        }

        .swal-custom-popup .swal2-icon {
            transform: scale(0.7);
            margin: 15px auto 0 !important;
        }

        .swal-custom-popup .swal2-title {
            font-size: 20px !important;
        }

        .swal-custom-popup .swal2-content {
            font-size: 14px !important;
        }

        .swal-custom-popup .swal2-styled.swal2-confirm {
            padding: 8px 20px !important;
            font-size: 14px !important;
        }

        /* Responsif untuk Mobile Device */
        @media(max-width: 768px) {
            .login-wrapper {
                padding: 0;
                justify-content: center;
                align-items: stretch;
            }

            .login-right {
                max-width: 100%;
                margin-right: 0;
                height: 100vh;
                display: flex;
                flex-direction: column;
            }

            .login-box-custom {
                border-radius: 0;
                border: none;
                box-shadow: none;
                height: 100%;
                max-height: 100vh;
                padding: 20px 15px;
                display: flex;
                flex-direction: column;
                justify-content: center;
                background: rgba(255, 255, 255, 0.95);
                cursor: default;
            }
        }