@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", serif;
    width: 100%;
    overflow-x: hidden;
}

.splash {
    display: block;
}

h1 {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid;
    width: 0;
    animation: typing 3s steps(30) 1s forwards;
}

.box {
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

header {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.box h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.box h2 {
    font-weight: 400;
}

form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.name,
.email,
.cardNumber,
.password,
.passwordConfirm {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.034) 0px 10px 20px, rgba(0, 0, 0, 0.082) 0px 6px 6px;
}

input {
    background-color: #F1F4FF;
    padding: 1.5rem;
    border: none;
    width: 100%;
    font-size: 1rem;
    padding-right: 4.5rem;
}

input::placeholder {
    font-size: 1rem;
}

input:focus {
    font-size: 1rem;
    border: none;
}

.fa-check {
    color: rgb(0, 255, 85);
}

.fa-exclamation {
    color: red;
}

i {
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
    overflow: hidden;
}

form i {
    width: 7%;
    position: absolute;
    left: 86%;
    transform-origin: center center;
    padding: 0;
}

.button {
    margin-bottom: 1rem;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.button button {
    padding: 1rem;
    font-size: 1rem;
    background-color: #1F41BB;
    color: white;
    border: none;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
}

.moveImage {
    width: 100%;
    position: absolute;
    z-index: -1;
    left: 0;
    top: 0;
    animation: moveImage 4s ease-in-out infinite;
}

@keyframes moveImage {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(50px, 0px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@media only screen and (min-width: 600px) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        background-color: #f5faff;
    }

    .splash {
        display: none;
    }

    .box {
        max-width: 600px;
        padding: 2rem;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        background-color: white;
    }

    .box h1 {
        font-size: 2rem; /* Ajuste para telas grandes */
        font-weight: bold;
    }

    .box h2 {
        font-size: 1.2rem; /* Subtítulo menor */
        font-weight: 400;
    }

    input {
        font-size: 1.2rem; /* Fonte maior */
        padding: 1rem; /* Redução no padding */
    }

    input::placeholder {
        font-size: 1rem;
    }

    .fa-check,
    .fa-exclamation {
        font-size: 1.2rem;
    }

    .button button {
        font-size: 1.2rem; /* Botão ajustado */
        padding: 0.8rem;
    }
}

@media only screen and (max-width: 600px) {


    @media only screen and (max-width: 428px) {
        .box h1 {
            font-size: 2.2rem;
        }

        @media screen and (max-width: 320px) {
            .box h1 {
                font-size: 1.8rem;
            }
        }
    }
}
