You won't be affected until AFTER foreclosure. The new owner will either ask you to move or allow you to stay under a new lease. You have comfort in knowing you probably have the 90 day protection of the act that you cited.
In Florida, HOAs do generally have the right to attempt to foreclose a property due to past-due assessments. You may or may not be named in the suit, likely you will be named as "unknown tenant #1." The good news is that the owner is the person responsible for paying the HOA, not you. The owner may attempt to settle with the HOA and begin a payment plan for the past-due amounts, if the HOA will consent to such an agreement. As a tenant you are entitled to appear at the court hearings, however, it is not entirely clear what your basis for defending the case would be given that you only have a leasehold interest in the property and are not being sued for the debt.