@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

* {
  box-sizing: border-box;
}

body {
  background-image: linear-gradient(90deg, #7d5fff, #7158e2);
  font-family: "Roboto", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
  margin: 0;
}

.search {
  position: relative;
  height: 50px;
  animation: fadeInSearch 0.8s ease-in forwards;
  animation-delay: 0.6s;
}
@keyframes fadeInSearch {
  from { opacity: 0; transform: translateY(-10px)}
  to { opacity: 1; transform: translateY(0px)}
}

.search .input {
  padding: 12px 40px;
  border: none;
  border-radius: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  font-size: 16px;
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
}
.search.active .input {
  width: 300px;
}
.search .input:focus {
  box-shadow: 0 0 10px rgba(125, 95, 255, 0.6);
  transition: box-shadow 0.3s ease;
}

.btn {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
}

.btn i {
  color: #7d5fff;
  font-size: 18px;
}

.search.active .btn {
  transform: translateX(250px) translateY(-8px);
}