How to create search button using css & html

 <!DOCTYPE html>

<head>
    <meta charset="UTF-8">
    <style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #a93bf6;
}
.search-bar{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    width: 60px;
    background-color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 0 40px rgba(0,0,0,0.3);
    transition: 0.5s ease-in-out;
}
.search-bar input{
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 400;
    background-color: transparent;
    color: #a93bf6;
}
.search-bar i{
    cursor: pointer;
    font-size: 25px;
    color: #a93bf6;
}
.search-bar:hover{
    width: 400px;
}
    </style>
    <script src="https://kit.fontawesome.com/4cf6d58f03.js" crossorigin="anonymous"></script>
</head>
<body>
    <div class="search-bar">
        <input type="text" placeholder="Search...">
        <i class="fa-solid fa-magnifying-glass"></i>
    </div>
</body>
</html>