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

body {
    font-family: 'Poppins', sans-serif; /* Fuente moderna */
    background: linear-gradient(to right, #28a745, #218838); /* Fondo verde */
    color: #333;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Asegura que la altura de la ventana esté llena */
    flex-direction: column;
}

h1, p {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600; /* Negrita para los títulos y texto */
}

a {
    color: #28a745;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Fondo con gradiente animado */
.background {
    background: linear-gradient(to right, #1e7e34, #85e085, #144d32);
    background-size: 400% 400%; /* Asegura que el gradiente ocupe toda la pantalla */
    animation: gradientBackground 8s ease infinite; /* Anima el fondo */
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes gradientBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contenedor para el logo centrado en la parte superior, justo debajo de la barra de URL */
.logo-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: #ffffff; /* Fondo blanco para el contenedor del logo */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Sombra ligera para el contenedor */
}

.logo {
    width: 250px; /* Tamaño del logo más grande */
    height: auto;
    border: none; /* Sin borde adicional */
}

/* Estilos para el contenido principal (cuenta, inicio de sesión, etc.) */
.container {
    width: 80%;
    max-width: 800px;
    text-align: top;
    background-color: #ffffff;
    padding: 40px 80px;
    border-radius: 90px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); 
    position: relative;
    z-index: 1;
}

/* el inicia tu sesion */
h1 {
    color: #144d32;
    font-size: 32px; /* Título grande */
    margin-bottom: 10px;
    align-items: center;
    padding-left: 0px;
}

button {
    padding: 10px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100px;
    margin: 10px 0;
    font-weight: 600; /* Botones con texto en negrita */
}

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

/* Cuadro para el botón de "Iniciar sesión" */
.login-box {
    display: flex;
    justify-content: left;
    align-items: left;
    margin-top: 90px;
    width: 100%;
}

/* Ajustes de media query para pantallas más pequeñas */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 20px; /* Padding reducido para pantallas pequeñas */
    }

    h1 {
        font-size: 28px; /* Reducir el tamaño del texto en dispositivos pequeños */
    }

    .logo {
        width: 180px; /* Reducir el tamaño del logo en dispositivos pequeños */
    }

    button {
        width: 100%; /* Hacer los botones de ancho completo en pantallas pequeñas */
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 24px;
    }

    button {
        width: 100%; /* Hacer los botones de ancho completo */
    }
}

/* Fondo con gradiente animado */
.background {
    background: linear-gradient(to right, #1e7e34, #85e085, #144d32);
    background-size: 400% 400%;
    animation: gradientBackground 8s ease infinite;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estilos del formulario */
.form-wrapper {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    animation: fadeIn 1s ease-in-out;
}

/* Estilo de los campos de entrada */
.input-group {
    margin-bottom: 20px;
}

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

input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

input:focus {
    border-color: #28a745;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.4);
}

/* Estilo para el botón */
button {
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 20px;
}

button:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* Estilo para el mensaje de error */
.error-message {
    color: red;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

