@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body {
    font-family: "Roboto", sans-serif;
    background-color: #060b23;
    display: grid;
    justify-content: center;
    align-items: center;
    place-items: center;
    font-size: 1.2rem;
    height: 100vh;
} */

.form {
    position: relative;
    width: 20rem;
    height: 3rem;
}

.titulo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: red;
}

.form__input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* padding: 1.2rem; */
    border: 2px solid #e1e5ee;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: inherit;
    color: #2b8cbe;
    outline: none;
    padding: 1.25rem;
    background: none;
    transition: all 160ms ease-in;
}

.form__input::hover {
    color: #adffff !important;
}
.form__input::focus {
    border-color: red !important;
}

.form__label {
    position: absolute;
    left: 1rem;
    top: 0.8rem;
    padding: 0 0.5rem;
    color: red;
    cursor: text;
    transition: top 200ms ease-in, left 200ms ease-in, font-size 200ms ease-in;
    background-color: #fff;
}

.form__input:focus ~ .form__label,
.form__input:not(:placeholder-shown).form__input:not(:focus) ~ .form__label {
    top: -0.9rem;
    font-size: 0.8 rem;
    left: 0.8rem;
}
