.regilog-title{ margin: 50px 0; } .regilog-form{ background: $background2; padding: 50px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: auto; width: 50%; width: -moz-fit-content; .flexgroup{ display: flex; justify-content: space-between; width: 100%; input:first-child{ margin-right: 20px; } input:last-child{ margin-left: 20px; } } input{ background: transparent; color: $light; font-size: 20px; border: none; width: 100%; border-bottom: 2px solid white; margin-bottom: 30px; &::placeholder{ color: $light2; } } input[type="submit"]{ width: fit-content; width: -moz-fit-content; padding: 10px 20px; display: block; margin: auto; color: $accent; border: 2px solid $accent; font-size: 25px; } }