body {
  height: 100vh;
  width: 100vw;
  display: grid;
  place-items: center;
}

.container {
  width: 200px;
  height: 80px;
  background-color: #ffffff;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3)0px 1px 3px -1px;
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.border {
  height: 40px;
  width: 200px;
  background: linear-gradient(45deg, #e94cdc, #4c28e4);
  animation-name: rotate;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

.container:hover .border {
  animation-play-state: running;
}


button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 70px;
  width: 190px;
  background: #fff;
  border: none;
  border-radius: 100px;
  font-size: 16px;
}


@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}