.main { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100vw; height: 100vh; } .form { display: flex; flex-direction: column; } .form div { display: flex; flex-direction: row; justify-content: space-between; } .form div label { margin-right: 1rem; } .form div input { width: 15rem; }