body {
    background-color: #e3e4e6;
    font-family: 'Arial', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.logo {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    z-index: 1;
}

form {
    background-color: #ebeceb;
    padding: 2rem;
    border-radius: 15px;
    max-width: 400px;
    width: 100%;
    text-align: center; /* Centraliza o texto */
    margin-bottom: 1rem; /* Espaço entre o formulário e o link */
}

form h2 {
    color: #4142ea;
    margin-bottom: 1.5rem;
    text-align: center;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 1rem; /* Aumenta a altura dos inputs */
    margin-bottom: 1.5rem; /* Aumenta o espaço entre os inputs */
    border: 1px solid #cbdb33;
    border-radius: 10px;
    box-sizing: border-box;
    background-color: #ebeceb;
}

input[type="submit"] {
    background-color: #4a42ea; /* Cor do botão alterada */
    color: #cbdb33;
    font-weight: bold; /* Deixa o texto em negrito */
    border: none;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

input[type="submit"]:hover {
    background-color: #3b32b3; /* Cor alterada no hover */
}

.forgot-password {
    color: #4a42ea;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
    text-align: center; /* Centraliza o texto */
    margin-top: 5px;
}

.forgot-password:hover {
    color: #3b32b3;
}

.background-svg {
    position: absolute;
    top: calc(90% - 40%);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45%;
    z-index: -1;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input[type="password"] {
    padding-right: 2.5rem; /* Espaço para o ícone */
}

.password-wrapper img {
    position: absolute;
    right: 1rem;
    top: 35%; /* Ajuste fino para centralizar verticalmente */
    transform: translateY(-50%);
    cursor: pointer;
    width: 18px; /* Reduz um pouco o tamanho do ícone */
    height: auto;
}

/* Media queries para dispositivos móveis */
@media (max-width: 768px) {
    body {
        height: auto;
        padding: 2rem 1rem;
    }

    .logo {
        top: 100px;
        width: 150px;
    }

    form {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    form h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="submit"] {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .forgot-password {
        font-size: 0.9rem;
        margin-top: 1rem;
    }

    .background-svg {
        width: 80%;
        top: calc(90% - 30%);
    }
}

@media (max-width: 480px) {
    .logo {
        top: 80px;
        width: 120px;
    }

    form {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    form h2 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="submit"] {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .forgot-password {
        font-size: 0.8rem;
        margin-top: 0.8rem;
    }

    .background-svg {
        width: 90%;
        top: calc(90% - 25%);
    }
}
