- 🇮🇹Italy nessunluogo Tremestieri Etneo (CT)
1 year after followup, but I think this can help the community.
Another nice solution I suggest is using the HTTP Client Error Status Block Condition module → with the default Login block, a contributed alternative or a custom one.
Just place the block in a region of your choice and select the 403 (forbidden) HTTP status in the visibility tabs.
It's D10 compatible, pretty easy to use and very versatile. Plus you don't need to redirect that is more coherent with the OP and the D7 Logintoboggan feature.