:root {
	--crn-accent-color: #0f62ff;
}

.crn-login-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	text-align: center;
	padding-bottom: 1.5rem;
}

.crn-login-brand .crn-brand-logo img {
	width: 120px;
	height: auto;
	max-height: 120px;
	object-fit: contain;
}

.crn-login-brand .crn-brand-mark {
	font-weight: 700;
	font-size: 1.25rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--crn-accent-color);
}

.crn-login-brand .crn-brand-title {
	font-size: clamp(1.75rem, 2.5vw, 2.5rem);
	font-weight: 700;
}

.crn-login-brand .crn-brand-subtitle {
	font-size: 1rem;
	color: rgba(0, 0, 0, 0.65);
}

body #login-page .btn-primary,
body#login-page .login-form .btn-primary {
	background-color: var(--crn-accent-color);
	border-color: var(--crn-accent-color);
	box-shadow: none;
}

body#login-page .login-form .btn-primary:hover {
	filter: brightness(1.05);
}

body#login-page .login-form .btn-primary:focus {
	box-shadow: 0 0 0 0.2rem var(--crn-accent-color);
}

body#login-page .login-form .btn-outline-primary {
	border-color: var(--crn-accent-color);
	color: var(--crn-accent-color);
}

.crn-login-brand+* {
	margin-top: 0;
}



/* 
   Make the main body transparent so the fixed background animation shows through.
   The actual content containers will provide the surface color.
*/
body,
#app {
	background-color: transparent !important;
}

/* 
   Glassmorphism card effect for the Dashboard/Home container.
   Using a cleaner glass effect that shows the pattern while maintaining specific user background tone preference.
   User asked for #f3f3f3 previously -> mapped to #f5f7fa with opacity.
*/
.page-container.crn-pw-home {
	/* Base background color (Light Grey) */
	background-color: #f8f9fa !important;

	/* Pattern: Technical Dot Grid */
	background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px);
	background-size: 24px 24px;

	/* Frost/Glass effect (optional, mainly if sitting on top of something else, 
	   but nice for depth if we add inner elements) */
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);

	/* Border and definition */
	border: 1px solid rgba(0, 0, 0, 0.05);
	border-radius: 16px;

	/* Premium Shadow */
	box-shadow:
		0 4px 6px -1px rgba(0, 0, 0, 0.02),
		0 2px 4px -1px rgba(0, 0, 0, 0.02),
		0 10px 40px -10px rgba(0, 0, 0, 0.05);

	/* Spacing */
	margin: 16px;
	min-height: calc(100vh - 100px);
}

/* Ensure other pages have a solid background if needed */
.page-container:not(.crn-pw-home) {
	background-color: rgba(255, 255, 255, 0.95);
}

/* 
   Premium Custom Scrollbar Utility 
   (As requested for .my-container and global consistency)
*/

/* For Chrome, Edge, and Safari */
::-webkit-scrollbar,
.my-container::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

::-webkit-scrollbar-track,
.my-container::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb,
.my-container::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover,
.my-container::-webkit-scrollbar-thumb:hover {
	background: #555;
}

/* Firefox */
* {
	scrollbar-width: thin;
	scrollbar-color: #888 transparent;
}

/* 
   Splash Screen Branding 
   Replaces the default ERPNext logo with the software company logo 
*/
.centered.splash img {
	content: url("/assets/crn_erp_manufacture/images/crn-logo.svg");
	max-width: 220px !important;
	height: auto;
	filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}