I want to resize my input field as per browser. can I write media query for each browser so separate width for input field on separate browser, like for mozilla it will have
Media queries are media queries, not browser queries. They are there to test certain properties of the viewport, device or display. There are no media features that let you test for a certain browser.