#account { padding: 1em; } #account .box { max-width: 40em; } #account div.form { margin: 0 auto; max-width: 25em; padding: 2em; } div.form-group { padding: 0.4em; } div.form-group label { display: block; margin-bottom: 0.5em; } div.form-group input[type=text], div.form-group input[type=password] { margin: 0; width: 100%; } div.form-group input[type=password] { margin-bottom: 0.5em; }