*{
    box-sizing: border-box;
}

body {
    display: flex;
    background-color: blueviolet;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: white;
    overflow: hidden;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wrapper{
    width: 11rem;
    position: relative;
}

.wrapper input{
    transition: all .4s ease;
    width: 0;
    display: inline;
    margin: 0;
    height: 2rem;
    transform: translateX(6rem);
}

.wrapper button{
    margin: 0;
    height: 2rem;
    transform: translateX(5.5rem);
    transition: all .3s ease-in-out;
}

.wrapper input.active-input {
    width: 9rem;
    transform: translateX(0);
}

.wrapper button.active-btn{
    transform: translateX(0);
}