*{
  margin: 0;
  padding: 0;
  outline: none;
  box-sizing: border-box;
}

body {
  background: url("../images/home_back.jpg") no-repeat;
  background-size: cover;
  font-family: 'Oswald', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.wrapper{
  width: 25%;
  background-color: black;
  background: rgba(0,0,0,0.5);
  padding: 70px;
}

.wrapper .inputdata{
  width: 100%;
  position: relative;
}

.wrapper .inputdata input{
  height: 100%;
  width: 100%;
  padding-bottom: 1.5%;
  border: none;
  font-size: 17px;
  color: white;
  border-bottom: 1px solid silver;
  background: none;
}

.inputdata input:focus ~ label,
.inputdata input:valid ~ label{
  transform: translateY(-20px);
  font-size: 15px;
  color: cyan;
}
.wrapper .inputdata label{
  position: absolute;
  bottom: 10px;
  left: 0;
  color: grey;
  pointer-events: none;
  transition: all 0.3s ease;
}
.inputdata .underline{
  position: absolute;
  height: 2px;
  width: 100%;
  bottom: 0;
}
.inputdata .underline:before{
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  background: cyan;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}
.inputdata input:focus ~ .underline:before,
.inputdata input:valid ~ .underline:before{
  transform: scaleX(1);
}

#error {
  color: red;
  opacity: 90%;
  position: absolute;
  top: 120%;
}
