        /* SweetAlert Custom Styles */
        .swal2-popup {
            font-size: 14px !important;
            border-radius: 12px !important;
        }
        .swal2-title {
            font-size: 20px !important;
            font-weight: 600 !important;
            border-bottom: none !important;
            box-shadow: none !important;
            padding-bottom: 0 !important;
        }
        .swal2-html-container {
            font-size: 14px !important;
            border-top: none !important;
        }
        .swal2-confirm {
            border-radius: 8px !important;
            padding: 8px 20px !important;
            font-weight: 500 !important;
        }
        .swal2-cancel {
            border-radius: 8px !important;
            padding: 8px 20px !important;
            font-weight: 500 !important;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', sans-serif;
        }

        /* ---------- LIGHT MODE (default, no toggle) ---------- */
        :root {
            --bg-color: #f0f2f5;
            --text-dark: #1e293b;
            --text-light: #475569;
            --primary-color: #0f3b5c;
            --primary-hover: #1e4a6e;
            --border-color: #e2e8f0;
            --card-bg: #ffffff;
            --hover-bg: #f8fafc;
            --danger-color: #dc2626;
            --success-color: #059669;
            --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
            --shadow-md: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
        }

        body {
            background: linear-gradient(135deg, #eef2f7 0%, #d9e2ec 100%);
            color: var(--text-dark);
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 10px;
        }

        /* ---- MAIN CARD - CLEAN RECTANGLE WITH SUBTLE ROUNDING (NO EXCESSIVE ROUND) ---- */
        .login-card {
            background: var(--card-bg);
            width: 100%;
            max-width: 400px;
            border-radius: 20px;          /* subtle, balanced rounding — removed extreme "muda huaa" curve */
            padding: 42px 36px;
            box-shadow: var(--shadow-md);
            border: 1px solid rgba(255,255,255,0.3);
            transition: transform 0.2s ease, box-shadow 0.2s;
            backdrop-filter: blur(0px);
        }

        .login-card:hover {
            box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.15);
        }

        /* Logo & Branding */
        .logo {
            margin-bottom: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 12px;
        }
        .logo img {
            height: 42px;
            width: 200px;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
        }
        .logo span {
            font-size: 28px;
            font-weight: 800;
            background: linear-gradient(120deg, #0f3b5c, #1e6f5c);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            letter-spacing: -0.3px;
        }
        .subtitle {
            color: var(--text-light);
            font-size: 14px;
            margin-bottom: 32px;
            text-align: center;
            font-weight: 500;
            border-bottom: 1px dashed var(--border-color);
            display: inline-block;
            width: auto;
            padding-bottom: 6px;
            margin-left: auto;
            margin-right: auto;
        }

        /* Form groups */
        .input-group {
            margin-bottom: 24px;
        }
        .input-group label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 8px;
            letter-spacing: 0.3px;
        }
        .input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }
        .input-wrapper i.icon-left {
            position: absolute;
            left: 14px;
            color: #94a3b8;
            font-size: 16px;
            z-index: 2;
            transition: color 0.2s;
        }
        .input-wrapper input {
            width: 100%;
            padding: 14px 15px 14px 44px;
            border: 1.5px solid var(--border-color);
            border-radius: 14px;
            background: var(--card-bg);
            color: var(--text-dark);
            font-size: 14px;
            outline: none;
            transition: all 0.2s ease;
            font-weight: 500;
        }
        .input-wrapper input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(15, 59, 92, 0.1);
        }
        .toggle-pin {
            position: absolute;
            right: 14px;
            background: none;
            border: none;
            color: #94a3b8;
            cursor: pointer;
            font-size: 16px;
            padding: 0;
            transition: color 0.2s;
        }
        .toggle-pin:hover {
            color: var(--primary-color);
        }
        .forgot-link {
            display: block;
            text-align: right;
            font-size: 12px;
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
            margin-top: -10px;
            margin-bottom: 28px;
            transition: opacity 0.2s;
        }
        .forgot-link:hover {
            text-decoration: underline;
            opacity: 0.85;
            cursor: pointer;
        }
        .submit-btn {
            width: 100%;
            padding: 14px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 40px;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            transition: all 0.25s;
            margin-top: 6px;
            letter-spacing: 0.3px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        }
        .submit-btn:hover {
            background: var(--primary-hover);
            transform: translateY(-1px);
            box-shadow: 0 8px 18px rgba(15, 59, 92, 0.2);
        }
        .submit-btn:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
        }
        .footer-text {
            margin-top: 30px;
            font-size: 13px;
            color: var(--text-light);
            text-align: center;
            border-top: 1px solid var(--border-color);
            padding-top: 20px;
        }
        .footer-text a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 700;
        }
        .footer-text a:hover {
            text-decoration: underline;
        }

        /* Remember me checkbox style */
        .remember-group {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
        }
        .remember-group input {
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: var(--primary-color);
        }
        .remember-group label {
            font-size: 13px;
            font-weight: 500;
            color: var(--text-light);
            cursor: pointer;
            user-select: none;
        }

        /* loading spinner */
        .btn-spinner {
            display: inline-block;
            width: 18px;
            height: 18px;
            border: 2px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 0.6s linear infinite;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* reCAPTCHA container hidden (invisible) */
        #recaptcha-container {
            display: none;
        }

        /* subtle responsive */
        @media (max-width: 520px) {
            .login-card {
                padding: 32px 24px;
            }
            .logo span {
                font-size: 24px;
            }
        }