I want to have 2 divs. looking like that:

The problem is that if i just set margin-top: -50px DIV2 becomes on TOP.
If i use z-index, DIV2 goes behind, but the form on DIV2 cannot be used, since it DIV2 is somewhat behind, cannot be clicked, selected or any of those.
How do I make it work?
DIV1 css:
position:relative;
height: 350px;
margin-top: -50px;
z-index: -10;
DIV2 css:
padding: 24px;
z-index: 10;
margin-bottom: -50px;