content is not placed in the Center of Div
i tried to make of form in the center of a div , t think all of values are correct but form doesn't get center this is the code the form goes in div of content but form stick to up of div , i don't know why
form#id {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border-radius: 30px;
}
.container {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.square {
position: relative;
width: 80vmin;
border: solid white 5px;
box-sizing: border-box;
align-items: center;
justify-content: center;
border-radius: 30px;
}
.square:after {
content: "";
display: block;
padding-bottom: 100%;
align-items: center;
justify-content: center;
}
.content {
position: absolute;
width: 100%;
height: 100%;
align-items: center;
justify-content: center;
border-radius: 29px;
}
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
<div class="container">
<div class="square">
<div class="content">
<form id="id">
<label for="input1">write ID</label>
<input type="number" name="input1" id="input1" placeholder="id">
</form>
</div>
</div>
</div>