As we need to maintain margin for both positions in futures then isn’t their a concept of unlimited loss in futures as margin will be the maximum loss?
No, losses in Futures aren’t capped to the extent of margin blocked.
If you are new to F&O, would suggest you read these modules on Varsity: