The styles.css is NOT applicable to Login component(Not part of Admin Panel). It's only used on Admin panel.
Also there's so much code I cannot scope to layout component.
How can I prevent the login component from applying styles on this file?
Disclaimer: If look at official examples it appears easy since they're using Tailwind CSS which is inline CSS. But with bootstrap it seems to be so difficult due global styles.
You can simply create a whole new page for login without extending the app layout and without the link to styles.css so that the styles of styles.css don't get applied.
or you could also conditionally add the link to styles.css if the page is not a login page like this ->
@kenprogrammer So you need the layout for admin and also need the login component there and your issue is admin styles overwrites the login component styles right?
@kenprogrammer Then for hiding the sidebar and topbar render the components for the sidebar and topbar conditionally and you need to make sure that your login component styles do not get overwritten by your admin styles so you need to make the specificity of your login components styles higher than admin panels styles or just use different classes.