* {
  outline: none;
  border: none;
  padding: 0;
}


.emldiv {
  position: relative;
  margin: 150px auto 0;
  width: 300px;
}

.emldiv:before {
  content: ' ';
  position: absolute;
  left: 25px;
  top: 14px;
  width: 2px;
  height: 36px;
  -webkit-transform: scale(0);
          transform: scale(0);
  z-index: 1;
  background: rgb(71, 136, 135);
  -webkit-transition: all 0.5s cubic-bezier(.87, -.41, .19, 1.44);
  transition: all 0.5s cubic-bezier(.87, -.41, .19, 1.44);
}

.active:before {
  -webkit-transform: scale(1);
          transform: scale(1);
  -webkit-transition-delay: 0.3s;
          transition-delay: 0.3s;
  -webkit-animation: 0.6s cubic-bezier(.87, -.41, .19, 1.44) 0.5s infinite forwards focus;
          animation: 0.6s cubic-bezier(.87, -.41, .19, 1.44) 0.5s infinite forwards focus;
}

input {
  box-shadow: 0 0 3px #CC0000;
  border-radius: 36px;
  position: absolute;
  width: 64px;
  height: 64px;
  -webkit-transition: all 0.5s cubic-bezier(.87, -.41, .19, 1.44);
  transition: all 0.5s cubic-bezier(.87, -.41, .19, 1.44);
}

.active input {
  width: 100%;
  padding-left: 25px;
  border-radius: 36px;
}

button {
  background: rgba(255, 255, 255, 1);
  position: absolute;
  height: 100%;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  -webkit-transition: all 0.5s cubic-bezier(.87, -.41, .19, 1.44);
  transition: all 0.5s cubic-bezier(.87, -.41, .19, 1.44);
}

button:after {
  content: ' ';
  position: absolute;
  width: 32px;
  height: 32px;
  left: 0;
  right: 0;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  margin: 0 auto;
  background: rgb(254, 111, 117);
  border-radius: 50%;
}

button:before {
  content: ' ';
  position: absolute;
  width: 24px;
  height: 24px;
  left: 0;
  right: 0;
  top: 20px;
  -webkit-transform: scale(0);
          transform: scale(0);
  -webkit-transform-origin: left top;
          transform-origin: left top;
  margin: 0 auto;
  background: white;
  border-radius: 50%;
  z-index: 1;
  -webkit-transition: all 0.8s ease;
  transition: all 0.8s ease;
}

.active button {
  -webkit-transform: translateX(260px);
          transform: translateX(260px);
}

.active button:before {
  -webkit-transform: scale(1);
          transform: scale(1);
}

.focus:before {
  -webkit-transform: scale(0);
          transform: scale(0);
  -webkit-animation: none;
          animation: none;
}

@-webkit-keyframes focus {
  0 {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes focus {
  0 {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}