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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, "Helvetica Neue", Arial, Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, #FFD700, #019101, #0000FF);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cpf-invalido {
    border: 2px solid red;
    background-color: #ffe6e6;
}

form {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px;
    border-radius: 35px;
    box-shadow: 0 4 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

fieldset {
    border: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

legend h2 {
    text-align: center;
    background: linear-gradient(to right, #FFD700, #008000, #0000FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

label {
    font-weight: bold;
    margin-top: 10px;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="date"],
select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

input[type="radio"] {
    margin-right: 5px;
    margin-left: 10px;
}

input[type="submit"],
input[type="reset"] {
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
}

button {
    background-color: #f83513;
    display: inline-block;
    color: rgb(0, 0, 0);
    padding: 10px;
    border: none;
    font-size: 18px;
    border-radius: 12px;
    margin: 20px auto;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

button a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

button:hover {
    background-color: #f35d5d;
}

@media (max-width: 600px) {
    form {
        padding: 20px;
    }

    input[type="radio"] {
        margin-left: 0;
    }
}