* {
  margin: 0;
  padding: 0;
}

section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  background: #FAF8FF;
}

section h2 {
  color: #302d55;
  margin-bottom: 10px;
}

fa-icon {
  font-size: 10em;
  color: #302d55;
}

.form-box {
  position: relative;
  width: 400px;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}

h2 {
  font-size: 2em;
  color: #5F5C6D;
  text-align: center;
}

.inputbox {
  position: relative;
  margin: 30px 0;
  width: 310px;
  border-bottom: 2px solid #5F5C6D;
}

.inputbox label {
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  color: #5F5C6D;
  font-size: 1em;
  pointer-events: none;
  transition: .2s;
}

input:focus ~ label,
input:valid ~ label {
  top: -5px;
}

.inputbox input {
  width: 100%;
  height: 50px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1em;
  padding: 0 35px 0 5px;
  color: #302d55;
}

.inputbox fa-icon {
  position: absolute;
  right: 8px;
  color: #302d55;
  font-size: 1.2em;
  top: 20px;
}

button {
  width: 100%;
  height: 40px;
  border-radius: 40px;
  background: #302d55;
  color: #FAF8FF;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: .2s;
}

button:hover {
  background: #00A981;
}

.register {
  font-size: .9em;
  color: #302d55;
  text-align: center;
  margin: 25px 0 10px;
}

.register button {
  text-decoration: none;
  color: #302d55;
  font-weight: 600;
  width: auto;
  background: inherit;
}

.register a:hover {
  text-decoration: underline;

}