Changing from Windows to MAC for MS Office

Hi I purchased MS office student and Home edition of MS Office in 2021 which i was using in windows laptop. recently i have purchased Mac book and i want to use the same MS office version in my mac. however when i tried to download the same in mac and tried log in using my windows account it says you do not have access to ms office eventhough in my windows account it shows i have access to MS office of student and home edition. Any guidance will be helpful in this matter. Thanks.