
/* Contenedor del formulario */
/* 📌 Hacer que el contenedor del formulario crezca */
.register-form {
    flex-grow: 1; /* 📌 Ahora ocupará el espacio restante */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-shadow: var(--shadow-color);
}

#mensaje {
    margin-top: 10px;
    font-size: 20px;
    color: var(--text-color);
}

/* Contenedor del formulario */
.form-container {
    width: 100%;
    max-width: 1000px; /* Ancho máximo */
    margin: 130px auto; /* Centrado en la pantalla */
    padding: 30px;
    background-color: var(--card-bg); /* Usar variable CSS */
    border-radius: 10px; /* Bordes redondeados */
    border-color: var(--primary-color);
    border: 5px solid var(--primary-color); /* Borde sólido de 5px */
    box-shadow: 0 4px 8px var(--shadow-color); /* Sombra suave */
    font-family: 'Arial', sans-serif; /* Fuente limpia y moderna */
    color: var(--text-color); /* Color de texto */
}

.form-container h1 {
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center; /* Centra el contenido horizontalmente */
    color: var(--text-color);
}

.form-container p {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Estilo de los campos del formulario */
form {
    display: flex;
    flex-direction: column;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    padding: 10px;
    margin-bottom: 15px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(127, 90, 240, 0.2);
}

/* Estilo del botón de Google */
.google-login {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

.google-button {
    background-color: #4285F4;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    max-width: 300px; /* Limitar el tamaño */
    transition: background-color 0.3s ease;
}

.google-button:hover {
    background-color: #3367d6;
}

.google-button img {
    width: 20px; /* Ajustar el tamaño del icono de Google */
    margin-right: 10px;
}

/* Estilo del botón "Continuar con Cuenta Infantil" */
.submit-btn {
    display: block; /* Asegura que el botón se comporta como un bloque */
    margin: 0 auto; /* Centra el botón dentro de su contenedor */
    width: 100%; /* Ocupa todo el ancho disponible */
    background-color: var(--button-bg);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Contenedor de los botones */
/* Si el contenedor del botón está usando flexbox */
.button-container {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente si el contenedor tiene altura */
    width: 100%; /* Asegura que ocupe todo el ancho disponible */
}

.submit-btn:hover {
    background-color: var(--button-hover);
}

/* Cambiar el color del asterisco a rojo */
.required {
    color: var(--danger-color);
    font-weight: bold;
}

/* Estilos para labels */
label {
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: 500;
}

/* Estilos para el separador "O:" */
.google-login p {
    color: var(--text-secondary);
    margin: 0 10px;
}

/* Responsive design */
@media (max-width: 768px) {
    .form-container {
        margin: 100px 20px;
        padding: 20px;
    }
    
    .form-container h1 {
        font-size: 20px;
    }
    
    .submit-btn {
        font-size: 16px;
        padding: 10px 20px;
    }
}

/* ===== ESTILOS PARA MENSAJES DE ERROR ===== */
.mensaje-error {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    border: 2px solid #FF4444;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(255, 68, 68, 0.2);
    animation: slideInError 0.3s ease-out;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.error-text {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




