body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  margin: 0;
}

.input-group {
  position: relative;
  width: 44px;
  border-radius: 21px;
  overflow: hidden;
  transition: 0.3s;

  .form-control {
    width: 0;
    padding: 0;
    border: none;
    transition: 0.3s;

    &::placeholder {
      transform: translateY(150%);
      transition: 0.3s 0.2s;
    }
  }

  .btn {
    position: relative;
    border: none;
    border-radius: 50% !important;
    transition: color 0.3s;
    
    &::before {
      position: absolute;
      content: '';
      top: 0;
      left: 0;
      z-index: -1;
      width: 100%;
      height: 100%;
      background: white;
      border-radius: 0 23px 23px 0;
    }

    i {
      transition: 0.3s;
    }
  }

  & ~ .backdrop {
    transform: translate(-50%, -50%) scale(0);
  }

  &.active {
    width: 250px;
 
    .form-control {
      width: 100%;
      padding: 0 0 0 16px;

      &::placeholder {
        transform: translateY(0);
      }
    }

    .btn {
      color: var(--primary-color);
      background: white;
      border-radius: 0 21px 21px 0 !important;
    }

    & ~ .backdrop {
      transform: translate(-50%, -50%) scale(1);
    }
  }
}

.backdrop {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: -2;
  width: 4000px;
  height: 4000px;
  background: var(--primary-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: 0.6s;
}
