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;
Without knowing any details, it could be related to negative z-indexes.
The stacking order makes distinction between positive and negative values:
Try making z-index on div1 positive instead of the z-index of div2 negative
Be careful, z-index only applies on the stack level of a box whose position value is one of absolute, fixed, or relative.