@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&family=Mulish:wght@200;300;400;500;600;700;800;900&family=Roboto:wght@100;300;400;500;700;900&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: "Mulish", sans-serif;
    background-color: #645CAA;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    margin: 0;
}

.container {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 20px 40px;
    border-radius: 5px;
}
.container h1 {
    text-align: center;
    margin-bottom: 30px;
}
.container a {
    text-decoration: none;
    color: lightblue;
}
.btn {
    cursor: pointer;
    display: inline-block;
    width: 100%;
    background-color: lightblue;
    padding: 12px;
    font-family: inherit;
    font-size: 16px;
    border: 0;
    border-radius: 5px;
}
.btn:focus {
    outline: none;
}
.btn:active { /*active - when you click down on it*/
    transform: scale(0.98);
}
.text {
    margin-top: 30px;
}
.form-control {
    position: relative;
    margin: 20px 0 40px;
    width: 300px;
}
.form-control input {
    background-color: transparent;
    border: 0;
    border-bottom: 1.5px solid #fff;
    display: block; /*so its on its own line and not inline*/
    width: 100%;
    padding: 15px 0;
    font-size: 18px;
    color: #fff;
}
.form-control input:focus, .form-control input:valid {
    outline: none;
    border-bottom-color: lightblue;
}
.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.68, -0.55, 0.265, 1.55); /*cubic-bezier defines a curve and can be used as a transition effect with a variable speed from start to end(takes in 4 points ie. p0, p1, p2, p3- p0 and p3 are the start and end of the curve)*/
}
.form-control input:focus + label span, .form-control input:valid + label span{ /*+ label span - we want the direct label span*/
    color: lightblue;
    transform: translateY(-30px); /*negative values upwards the y axis and to the left on the x-axis*/
}