body { position: relative; width: 100vw; height: 100vh; margin: 0; padding: 0; } header { position: relative; width: 100%; height: 25%; display: flex; justify-content: center; align-items: center; } main { position: relative; width: 100%; height: 70%; display: flex; justify-content: center; align-items: center; } footer { position: relative; width: 100%; height: 5%; display: flex; justify-content: center; align-items: center; font-size: 0.9em; } form { position: relative; width: 40%; height: 80%; } form > div { position: relative; width: 100%; height: 3em; margin-bottom: 2em; font-size: 1.1em; display: flex; justify-content: center; align-items: center; } form > div:nth-child(3) { margin-top: 6em; } form > div > label { position: relative; width: 25%; height: 100%; padding-right: 1em; display: flex; justify-content: right; align-items: center; } form > div > input { position: relative; width: 60%; height: 80%; outline: none; border: 1px solid rgb(0, 0, 0); border-radius: 10px; padding-left: 0.5em; font-size: 1.1em; } form > div > input::placeholder { font-size: 0.7em; } form > div > button { position: relative; width: 50%; height: 70%; outline: none; border: none; border-radius: 50px; background-image: linear-gradient(to bottom, rgb(250, 250, 250), rgb(220, 220, 220)); box-shadow: 1px 1px 3px rgba(100, 100, 100, 0.6); letter-spacing: 0.5em; padding-left: 0.5em; cursor: pointer; } form > div > button:active { position: relative; top: 2px; } div#error { position: absolute; left: 50%; bottom: 0.5em; transform: translateX(-50%); color: rgb(255, 0, 0); }