   /* Variables CSS para colores */
:root {
    --primary-color: #007bff; /* Azul vibrante para elementos principales */
    --primary-dark: #0056b3;  /* Tono más oscuro del azul para hover/active */
    --secondary-color: #6c757d; /* Gris para texto secundario */
    --text-dark: #343a40; /* Texto oscuro principal */
    --text-light: #f8f9fa; /* Texto claro */
    --bg-color: #f8f9fa; /* Color de fondo ligero para la página */
    --card-bg: #ffffff; /* Fondo blanco para la caja del formulario */
    --border-color: #ced4da; /* Color de borde para inputs */
    --shadow-medium: rgba(0, 0, 0, 0.15); /* Sombra media */
}

/* Estilos globales del cuerpo */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Ocupa al menos el alto completo de la ventana */
    margin: 0;
    padding: 20px; /* Padding para evitar que el contenido toque los bordes en pantallas pequeñas */
    box-sizing: border-box;
    color: var(--text-dark);
}

/* Estilos de la caja del formulario */
.form-box {
    background: rgba(255, 255, 255, 0.1); /* Fondo semi-transparente similar al welcome-container */
    backdrop-filter: blur(15px); /* Efecto de desenfoque */
    padding: 35px 40px;
    border-radius: 12px; /* Bordes redondeados */
    box-shadow: 0 10px 30px var(--shadow-medium); /* Sombra pronunciada */
    width: 100%;
    max-width: 420px; /* Ancho máximo del formulario */
    text-align: center;
    box-sizing: border-box;
}

.form-box h2 {
    color: var(--text-light);
    text-shadow: 0 0 10px rgba(238, 145, 6, 0.849), 0 0 20px rgba(238, 145, 6, 0.849), 0 0 30px rgba(238, 145, 6, 0.849), 0 0 40px rgba(238, 145, 6, 0.849);
    margin-bottom: 25px;
    font-size: 2.2em;
    font-weight: 700;
}

/* Estilos para el campo de email */
.form-box input[type="email"] {
    width: calc(100% - 20px); /* Ancho completo con padding */
    padding: 12px 10px;
    margin-bottom: 25px; /* Más espacio debajo del input */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none; /* Elimina el contorno azul al enfocar */
}

.form-box input[type="email"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-box input::placeholder {
    color: var(--text-light);
    opacity: 0.8;
}

/* Estilos para el botón de enviar */
.form-box button[type="submit"] {
    background: linear-gradient(162deg, rgb(0 0 0 / 79%), rgb(217 138 20 / 82%));
    color: var(--text-light);
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 10px; /* Espacio superior */
    box-shadow: 0 4px 10px rgb(0 0 0 / 79%);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.form-box button[type="submit"]:hover {
    background-color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
}

.form-box button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.2);
}

/* Estilos para el enlace de "Volver al Login" */
.form-box p {
    margin-top: 25px; /* Espacio arriba del párrafo */
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.form-box p a {
    color: var(--text-light);
    text-shadow: 0 0 10px rgba(238, 145, 6, 0.849), 0 0 20px rgba(238, 145, 6, 0.849), 0 0 30px rgba(238, 145, 6, 0.849), 0 0 40px rgba(238, 145, 6, 0.849);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.form-box p a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

/* Media Queries para responsividad */
@media (max-width: 576px) {
    body {
        padding: 15px; /* Reduce el padding global */
    }
    .form-box {
        padding: 25px 25px; /* Menos padding en pantallas pequeñas */
        max-width: 95%; /* Asegura que el formulario ocupe más espacio en móviles */
    }

    .form-box h2 {
        font-size: 1.8em; /* Ajusta tamaño del título */
        margin-bottom: 20px;
    }

    .form-box input[type="email"] {
        padding: 10px; /* Reduce padding de inputs */
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .form-box button[type="submit"] {
        padding: 10px 20px;
        font-size: 1em;
    }
}

/* Modal base */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-success {
    border-left: 4px solid green;
    background: #d4edda;
    color: #155724;
}

.modal-error {
    border-left: 4px solid red;
    background: #f8d7da;
    color: #721c24;
}

.modal-content h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: white;
    background-color: #007bff;
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 15px;
}

.close-btn {
    margin-top: 15px;
    padding: 8px 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.close-btn:hover {
    background: #2980b9;
}
.g-recaptcha {
            margin-bottom: 20px; /* Provides space below the reCAPTCHA */
            display: flex;       /* Use flexbox to center its content */
            justify-content: center; /* Horizontally center the reCAPTCHA widget */
            /* If you want to vertically center it within the form-group, you could add align-items: center; */
        }
    