Auto adjusting form using margin
I analyzed your code. You have just to remove the height: 100vh
from your .container
.
The next step is to remove the margin-top: -250px
from your .form1
. then it should look good.
Bonus Tip: the unit vh
stands for viewport-height (browser height). so 100vh is 100% of the viewport height.