@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root{
    --red-color: #d22731;
    --light-blue-color: #7bbcd8;
}

*{
    box-sizing: border-box;
}

body{
    font-family: 'Inter', sans-serif;
    background-color: #e8e8e8;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}


.container{
    background-color: #fff;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.3);
}

.container h1 {
    color: var(--red-color);
    margin-bottom: 30px;
    text-align: center;
}

.container a{
    text-decoration: none;
    color: var(--light-blue-color);
}

.form-control{
    position: relative;
    margin: 20px 0 40px;
    color: black;

}

.form-control input {
    border: none;
    border-bottom: 2px solid #e8e8e8;
    display: block;
    width: 100%;
    padding: 15px;
    color: #333;
}

.form-control input:focus,
.form-control input:valid{
    outline: none;
    border-bottom-color: #999;
    font-size: 16px;
}

.btn{
    cursor: pointer;
    display: inline-block;
    width: 100%;
    background-color: var(--red-color);
    border: none;
    color: #fff;
    font-size: 16px;
    padding: 15px;
    border-radius: 25px;
    font-family: inherit;
}

.text{
    text-align: center;
    color:slategray;
}

.text a{
    text-decoration: none;
    color:lightseagreen;
}

.btn:focus{
    outline: none;
}

.btn:active{
    transform: scale(0.98);
}

.form-control label{
    position: absolute;
    top: 15px;
    left: 0;
}

.form-control label span {
    display: inline-block;
    font-size: 18px;
    min-width: 5px;
    transition: 0.3s cubic-bezier(0.7, -0.6, 0.3, 1.55);
}

.form-control input:focus+ label span,
.form-control input:valid + label span{
    color: #999;
    transform: translateY(-30px);
}