/* https://codepen.io/wesbos/pen/KgdzPq?editors=1100 */

input:placeholder-shown + label {
  opacity: 0;
  transform: translateY(100%);
}
html {
  box-sizing: border-box;
  font-family: sans-serif;
}
a {
  color: #d01127;
}
h2 {
  font-size: 24px;
  margin: 0;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background-color: #FFF;
}
@media (min-width:641px){
  form {
    width: 500px;
  }
}
form {
  border: 1px solid grey;
  padding: 50px;
  background: white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.41), 0 0 1px 20px rgba(0, 0, 0, 0.08);
}
input {
  width: 100%;
  padding: 20px;
  margin: 18px 0;
  border: 2px solid black;
  transition: all 0.1s;
  font-size: 20px;
}
.group {
  position: relative;
}
input + label {
  border: 1px solid black;
  position: absolute;
  top: 0;
  left: 20px;
  transition: all 0.1s;
  opacity: 1;
  background: white;
  border:2px solid;
  border-width: 0 2px 0 2px;
  padding:0 5px;
  transform: translateY(calc(50% + 5px));
}
input:focus {
  outline: 0;
  border-color: #d01127;
}
input:focus + label {
  border-color: #d01127;
}
.button {
  display: inline-block;
  border-radius: 4px;
  background-color: #d01127;
  border: none;
  color: white;
  text-align: center;
  font-size: 28px;
  padding: 20px;
  width: 200px;
  transition: all 0.5s;
  cursor: pointer;
  float: right;
}
.button span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
}
.button span:after {
  content: '\00bb';
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;
}
.button:hover span {
  padding-right: 25px;
}
.button:hover span:after {
  opacity: 1;
  right: 0;
}
p {
  padding-top: 15px;
}
