        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background-color: #fafafa;
            color: #1a1a1a;
            font-size: 14px;
            line-height: 1.5;
            -webkit-font-smoothing: antialiased; /* Smarter font rendering */
            -moz-osx-font-smoothing: grayscale;
        }

        .container {
            display: flex;
            min-height: 100vh;
            width: 100%;
            overflow-x: hidden;
        }

        /* LEFT SECTION - LOGIN FORM */
        .login-section {
            flex: 1;
            background: #ffffff;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 60px 40px;
            position: relative;
        }

        .login-box {
            width: 100%;
            max-width: 400px;
        }

        .login-box h1 {
            font-size: 28px;
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: 8px;
        }

        .login-box .subtitle {
            font-size: 14px;
            color: #6b7280;
            margin-bottom: 32px;
        }

        /* FORM */
        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            color: #374151;
            margin-bottom: 8px;
        }

        .form-group input {
            width: 100%;
            padding: 12px 14px;
            font-size: 14px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            background: #ffffff;
            color: #1f2937;
            transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
        }

        .form-group input::placeholder {
            color: #9ca3af;
        }

        .form-group input:focus {
            border-color: #3b82f6;
            outline: none;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
            transform: translateY(-2px);
        }

        /* FORGOT PASSWORD */
        .forgot-password {
            text-align: right;
            margin-bottom: 24px;
        }

        .forgot-password a {
            font-size: 13px;
            color: #6b7280;
            text-decoration: none;
            font-weight: 500;
        }

        .forgot-password a:hover {
            color: #1a1a1a;
        }

        /* === PASSWORD HIDE/SHOW ICON STYLE === */

        /* Wrapper agar posisi icon bisa relative terhadap input */
        .password-wrapper {
            position: relative;
            width: 100%;
        }

        /* Posisi icon mata */
        .toggle-password {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #9ca3af;
            /* Warna abu-abu seperti placeholder */
            font-size: 16px;
            transition: color 0.2s;
            z-index: 10;
        }

        .toggle-password:hover {
            color: #374151;
            /* Warna lebih gelap saat hover */
        }

        .btn-back {
            position: absolute;
            top: 30px;
            left: 30px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            color: #6b7280;
            font-weight: 600;
            font-size: 14px;
            transition: color 0.2s ease, transform 0.2s ease;
            z-index: 10;
        }

        /* Efek Hover */
        .btn-back:hover {
            color: #1a1a1a;
            /* Jadi hitam saat di-hover */
            transform: translateX(-4px);
            /* Efek gerak sedikit ke kiri */
        }

        /* Beri jarak padding kanan pada input agar teks tidak menabrak icon mata */
        .password-wrapper input {
            padding-right: 45px;
        }

        /* BUTTONS */
        .btn-signin {
            width: 100%;
            padding: 12px;
            font-size: 14px;
            font-weight: 600;
            background: #1a1a1a;
            color: #ffffff;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            margin-bottom: 16px;
        }

        .btn-signin:hover {
            background: #2d2d2d;
        }

        .btn-google {
            width: 100%;
            padding: 12px;
            font-size: 14px;
            font-weight: 500;
            background: #ffffff;
            color: #1a1a1a;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-bottom: 24px;
        }

        .btn-google:hover {
            background: #f9fafb;
            border-color: #9ca3af;
        }

        .google-icon {
            width: 18px;
            height: 18px;
        }

        /* SIGNUP LINK */
        .signup-link {
            text-align: center;
            font-size: 13px;
            color: #6b7280;
        }

        .signup-link a {
            color: #1a1a1a;
            font-weight: 600;
            text-decoration: none;
        }

        .signup-link a:hover {
            color: #3b82f6;
        }

        /* RECAPTCHA V2 STYLES - CLEAN & ALIGNED LEFT */
        .captcha-container-v2 {
            display: none; /* Sembunyikan awal */
            justify-content: flex-start;
            margin: 10px 0 20px 0;
            padding: 0;
            background: transparent;
            border: none;
            animation: fadeInDown 0.4s ease forwards;
        }

        @keyframes fadeInDown {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Pastikan pesan error juga rata kiri */
        #captcha-error {
            text-align: left !important;
            margin-top: -15px;
            margin-bottom: 20px;
            padding-left: 2px;
        }

        /* Responsive adjustment for reCAPTCHA */
        @media (max-width: 400px) {
            .g-recaptcha {
                transform: scale(0.85);
                transform-origin: 0 0;
            }
            .captcha-container-v2 {
                justify-content: flex-start;
                overflow: hidden;
            }
        }

        /* RIGHT SECTION - IMAGE */
        .image-section {
            flex: 1;
            background-image: url('../image/IMG-20231211-WA0029%20(1).jpg');
            background-size: cover;
            background-position: center;
            position: relative;
        }

        .image-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
            z-index: 1;
        }

        .image-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 85%;
            max-width: 480px;
            padding: 40px;
            color: #ffffff;
            z-index: 2;
            text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
        }

        .image-content h2 {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 24px;
            color: #ffffff;
            text-align: center;
        }

        .instruction-list {
            list-style: none;
        }

        .instruction-item {
            display: flex;
            gap: 16px;
            margin-bottom: 24px;
            align-items: flex-start;
        }

        .instruction-item:last-child {
            margin-bottom: 0;
        }

        .instruction-icon {
            width: 44px;
            height: 44px;
            background: rgba(255, 255, 255, 0.25);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        }

        .instruction-text h3 {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 6px;
            letter-spacing: 0.5px;
        }

        .instruction-text p {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.95);
            line-height: 1.6;
            font-weight: 400;
        }

        .instruction-text b {
            color: #ffffff;
        }

        /* RESPONSIVE - FIXED & CONSISTENT (No layout shifts) */
        @media (max-width: 1024px) {
            .image-content {
                max-width: 420px;
                padding: 30px;
            }
            .instruction-text h3 { font-size: 16px; }
            .instruction-text p { font-size: 13px; }
        }

        @media (max-width: 968px) {
            .container {
                flex-direction: column;
                min-height: 100vh;
            }

            .login-section {
                padding: 60px 24px;
                flex: none;
                order: 2;
            }

            .image-section {
                min-height: 380px;
                padding: 40px 20px;
                flex: none;
                order: 1; /* Always image on top for mobile consistency */
            }

            .image-content {
                position: relative;
                top: 0;
                left: 0;
                transform: none;
                width: 100%;
                max-width: 500px;
                margin: 0 auto;
                padding: 0;
                text-align: left;
            }

            .image-content h2 {
                font-size: 24px;
                margin-bottom: 24px;
                text-align: left;
            }

            .instruction-item {
                margin-bottom: 20px;
                gap: 12px;
            }
        }

        @media (max-width: 480px) {
            .login-section {
                padding: 40px 20px;
            }

            .login-box h1 {
                font-size: 26px;
                letter-spacing: -0.5px;
            }

            .captcha-display {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }

            .captcha-code-box {
                width: 100%;
                height: 50px;
            }

            .image-section {
                min-height: 320px;
                padding: 40px 20px;
            }

            .instruction-icon {
                width: 38px;
                height: 38px;
                font-size: 18px;
            }

            .instruction-text h3 {
                font-size: 16px;
            }

            .btn-back {
                top: 15px;
                left: 15px;
            }
        }



        /* Efek halus saat input difokuskan */
        .form-group input {
            transition: all 0.25s ease;
        }

        /* Saat user klik (focus), input sedikit "naik" dan berwarna lembut */
        .form-group input:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
            transform: translateY(-2px);
        }

        /* Saat hover, beri efek bayangan ringan */
        .form-group input:hover {
            box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
        }



        /* ============================================= */
        /* ✨ FLASH MESSAGE / OTP NOTIFICATION STYLE     */
        /* ============================================= */

        .flash-messages {
            margin-bottom: 20px;
            animation: fadeInUp 0.6s ease forwards;
        }

        .alert {
            padding: 12px 16px;
            border-radius: 8px;
            font-size: 14px;
            margin-bottom: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
            opacity: 0;
            animation: fadeIn 0.8s ease forwards;
        }

        /* Warna kategori alert */
        .alert-success {
            background-color: #e6f9ed;
            color: #047857;
            border-left: 4px solid #10b981;
        }

        .alert-info {
            background-color: #e0f2fe;
            color: #0369a1;
            border-left: 4px solid #0ea5e9;
        }

        .alert-danger {
            background-color: #fee2e2;
            color: #b91c1c;
            border-left: 4px solid #ef4444;
        }

        /* Animasi lembut */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-5px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Tambahan: animasi hilang perlahan (optional) */
        .alert {
            transition: opacity 0.5s ease;
        }

        .alert.hide {
            opacity: 0;
        }





        .btn-google {
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
            border: 1px solid #ddd;
            border-radius: 6px;
            padding: 10px;
            margin-top: 15px;
            cursor: pointer;
            text-decoration: none;
            color: #444;
            font-weight: 500;
            transition: 0.2s;
        }

        .btn-google img {
            width: 20px;
            margin-right: 10px;
        }

        .btn-google:hover {
            background: #f5f5f5;
        }

        .divider {
            text-align: center;
            margin: 20px 0 10px;
            color: #888;
            font-size: 14px;
            position: relative;
        }

        .divider span {
            background: #fff;
            padding: 0 10px;
            position: relative;
            z-index: 2;
        }

        .divider::before {
            content: "";
            position: absolute;
            top: 50%;
            left: 0;
            width: 100%;
            height: 1px;
            background: #ddd;
            z-index: 1;
        }






        /* =========================================================
   OTP BOX STYLE — MODERN UI (Seperti contoh screenshot)
   ========================================================= */

        .otp-box {
            background: #ffffff;
            padding: 32px 28px;
            border-radius: 14px;
            margin-top: 20px;
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
            animation: fadeIn 0.35s ease-out;
        }

        .otp-box h3 {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 8px;
            color: #333;
            text-align: center;
        }

        .otp-box .subtitle {
            font-size: 14px;
            color: #555;
            text-align: center;
            line-height: 1.5;
            margin-bottom: 20px;
        }

        /* Input OTP */
        .otp-box input[type="text"] {
            width: 100%;
            padding: 14px 18px;
            font-size: 18px;
            letter-spacing: 4px;
            text-align: center;
            border: 2px solid #dcdcdc;
            border-radius: 10px;
            outline: none;
            transition: 0.25s ease;
            font-weight: bold;
        }

        .otp-box input[type="text"]:focus {
            border-color: #4a90e2;
            box-shadow: 0 0 8px rgba(74, 144, 226, 0.3);
        }

        /* Tombol Verifikasi */
        .otp-box button.btn-signin {
            width: 100%;
            margin-top: 24px;
            background: #3b82f6;
            padding: 14px;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 700;
            color: white;
            border: none;
            cursor: pointer;
            transition: all 0.25s ease;
            letter-spacing: 1px;
        }

        .otp-box button.btn-signin:hover {
            background: #2563eb;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }

        /* Text note */
        .otp-box .note {
            margin-top: 15px;
            font-size: 14px;
            text-align: center;
            color: #777;
        }

        .otp-box .note a {
            color: #4a90e2;
            font-weight: 600;
        }

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

        /* Fade-in animation */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(8px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }


