*:focus {
  outline: 0;
}

.highlight {
  height: 60%;
  left: 0;
  opacity: 0.5;
  pointer-events: none;
  position: absolute;
  top: 25%;
}

.group {
  margin-bottom: 35px;
  position: relative;

  label {
    color: #999;
    font-weight: normal;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    transition: 0.2s ease all;
  }

  input,
  label {
    font-size: 0.9em;
    padding: 7px 0;
  }

  .bar {
    position: relative;
    display: block;

    &::before {
      left: 50%;
    }

    &::after {
      right: 50%;
    }

    &::before,
    &::after {
      content: "";
      background: #5264ae;
      bottom: 1px;
      height: 1px;
      position: absolute;
      transition: 0.2s ease all;
      width: 0;
    }
  }

  input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #757575;
    display: block;
    width: 100%;

    &:focus ~ label,
    &:valid ~ label {
      color: #5264ae;
      font-size: 0.7em;
      top: -20px;
    }

    &:focus ~ {
      &.bar::before,
      &.bar::after {
        width: 50%;
      }

      &.highlight {
        animation: inputHighlighter 0.3s ease;
      }
    }
  }
}

.InputAddOn {
  display: flex;
  margin-bottom: 1.5em;

  .InputAddOn-field {
    flex: 1;
  }

  .InputAddOn-item {
    background-color: rgba(147, 128, 108, 0.025);
    color: #666;
    font: inherit;
    font-weight: 400;
  }

  .InputAddOn-field,
  .InputAddOn-item {
    border: 1px solid rgba(147, 128, 108, 0.25);
    padding: 0.5em 0.75em;
  }

  .InputAddOn-field:first-child,
  .InputAddOn-item:first-child {
    border-radius: 4px 0 0 4px;
  }

  .InputAddOn-field:last-child,
  .InputAddOn-item:last-child {
    border-radius: 0 4px 4px 0;
  }

  .InputAddOn-field:not(:first-child) {
    border-left: 0;
  }

  .InputAddOn-field:not(:last-child) {
    border-right: 0;
  }
}
