/* Estilos globales y reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.parte_arriba{
    width: 100%;
    height: 100px;
    background-color: #482ff7;
    text-align: center;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    text-align:center;
    font-size:2rem;
}



body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
}

main {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estilos del formulario */
form {
    background-color: #fff;
    max-width: 700px;
    margin: 50px auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

img {
    width: 130px;
    height: 80px;
    margin: 3% auto;
}



/* Título del formulario */
h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 30px;
}

/* Estilos de los campos */
.campo {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 20px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 24px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #a29bfe;
    outline: none;
}

/* Estilos del botón */
button {
    width: 100%;
    padding: 14px;
    background-color: #6c5ce7;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #482ff7;
}

/* Estilos de mensajes de error */
.error {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* Pie de Página */
footer {
    width: 100%;
    height: 4rem;
    background-color: #482ff7;
    color: white;
    text-align: center;
    font-size: 1.5rem;
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Responsividad */
@media (max-width: 768px) {
    
    
    

    
    form {
        margin: 30px 20px;
        padding: 20px;
    }

    h2 {
        font-size: 24px;
    }

    label {
        font-size: 14px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"] {
        font-size: 14px;
        padding: 10px;
    }

    button {
        font-size: 16px;
        padding: 12px;
    }
    
    footer {
    font-size: 1rem;
}


    
}



@media (max-width: 480px) {
    
    h1 {
        font-size: 1rem;
    }
    
    form {
        margin: 20px 10px;
        padding: 15px;
    }

    h2 {
        font-size: 20px;
    }

    label {
        font-size: 12px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"] {
        font-size: 12px;
        padding: 8px;
    }

    button {
        font-size: 14px;
        padding: 10px;
    }
    
    
    
}

/* Preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none;
    }
}
