.has-float-label {
  position: relative
}

.has-float-label label {
  position: absolute;
  cursor: text;
  font-size: 75%;
  opacity: 1;
  -webkit-transition: all .2s;
  transition: all .2s;
  top: -.5em;
  left: 12px;
  z-index: 3;
  padding: 0px 5px;
  background: #fff;
  border-radius: 5px;
}

.has-float-label label::after {
  content: " ";
  display: block;
  position: absolute;
  height: 2px;
  top: 50%;
  left: -.2em;
  right: -.2em;
  z-index: -1
}

.has-float-label .form-control::-webkit-input-placeholder {
  opacity: 1;
  -webkit-transition: all .2s;
  transition: all .2s
}

.has-float-label .form-control:placeholder-shown:not(:focus)::-webkit-input-placeholder {
  opacity: 0
}

.has-float-label .form-control:placeholder-shown:not(:focus)+label {
  font-size: 150%;
  opacity: .5;
  top: .3em;
  font-weight: 400
}

.input-group .has-float-label {
  display: table-cell
}

.input-group .has-float-label .form-control {
  border-radius: 4px
}

.input-group .has-float-label:not(:last-child) .form-control {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0
}

.input-group .has-float-label:not(:first-child) .form-control {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  margin-left: -1px
}
