:root {
	/* --- MIXCRM IDENTITY --- */
	--mix-dark: #111122;
	--mix-red: #cc0000;

	/* --- CUSTOMER IDENTITY (Dynamic) --- */
	/* This represents the customer using the instance (e.g., TechCorp) */
	--customer-accent: #0d6efd; /* Example: Bootstrap Blue */
	--customer-accent-hover: #0b5ed7;

	/* --- GLASS PHYSICS --- */
	--glass-bg: rgba(255, 255, 255, 0.65);
	--glass-border: 1px solid rgba(255, 255, 255, 0.6);
	--glass-shadow: 0 15px 35px rgba(17, 17, 34, 0.1);
	--blur-amount: 30px;

	/* --- ANIMATION --- */
	--ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	background-color: #e0e5ec;
	/* The signature MixCRM Organic Mesh Background */
	background-image: 
		radial-gradient(at 10% 10%, hsla(353, 85%, 61%, 0.2) 0px, transparent 50%),
		radial-gradient(at 90% 10%, hsla(227, 79%, 54%, 0.2) 0px, transparent 50%),
		radial-gradient(at 50% 90%, hsla(337, 78%, 57%, 0.1) 0px, transparent 50%);
	background-attachment: fixed;
	background-size: cover;
	min-height: 100vh;
	overflow-x: hidden;
}

/* GLASS CARD UTILITY */
.glass-panel {
	background: var(--glass-bg);
	backdrop-filter: blur(var(--blur-amount));
	-webkit-backdrop-filter: blur(var(--blur-amount));
	border: var(--glass-border);
	box-shadow: var(--glass-shadow);
}

/* INPUT STYLING - "Floating" feel */
.form-floating > .form-control {
	background: rgba(255, 255, 255, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	backdrop-filter: blur(10px);
	box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
	transition: all 0.3s ease;
}
.form-floating > .form-control:focus {
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 5px 15px rgba(0,0,0,0.05);
	border-color: var(--customer-accent); /* Use Customer Color for Focus */
}
.form-floating > label {
	color: #666;
	transition: all 0.3s var(--ease-elastic);
}

/* BUTTON STYLING - "Piano Key" Feel */
.btn-auth {
	background: var(--mix-dark); /* MixCRM Core Identity */
	color: white;
	width: 100%;
	padding: 14px;
	border-radius: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
	border: none;
	position: relative;
	overflow: hidden;
	transition: transform 0.1s, box-shadow 0.3s;
}

.btn-auth:hover {
	background: var(--mix-dark);
	box-shadow: 0 10px 20px rgba(17, 17, 34, 0.2);
	transform: translateY(-2px);
}
.btn-auth:active {
	transform: scale(0.98) translateY(0);
}

/* ANIMATIONS */
.fade-up {
	animation: fadeUp 0.8s var(--ease-elastic) forwards;
	opacity: 0;
	transform: translateY(30px);
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* Specific tweaks for Minimalist Option */
.login-card {
	width: 100%;
	max-width: 420px;
	border-radius: 30px;
	padding: 40px;
	position: relative;
}
.customer-branding-strip {
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 6px;
	background: var(--customer-accent); /* Dynamic Strip */
	border-radius: 30px 30px 0 0;
}

/* Split Screen Specifics */
.split-container {
	min-height: 100vh;
	display: flex;
}

/* Left Side: The Visual Anchor */
.visual-side {
	flex: 1;
	position: relative;
	background-color: var(--mix-dark);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 60px;
	color: white;
}

/* The "Glass Prism" Effect over the image */
.prism-overlay {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%) rotate(-10deg);
	width: 80%; height: 60%;
	background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 40px;
	box-shadow: 0 25px 50px rgba(0,0,0,0.5);
	z-index: 1;
}

/* Abstract Circle decoration */
.deco-circle {
	position: absolute;
	width: 500px; height: 500px;
	border-radius: 50%;
	background: radial-gradient(circle, var(--customer-accent) 0%, transparent 70%);
	opacity: 0.2;
	filter: blur(60px);
}

/* Right Side: The Form */
.form-side {
	width: 550px; /* Fixed elegant width */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	background: rgba(255,255,255,0.4); /* Slight tint */
	backdrop-filter: blur(20px);
	position: relative;
}

@media (max-width: 992px) {
	.split-container { flex-direction: column; }
	.visual-side { display: none; } /* Hide visual on mobile */
	.form-side { width: 100%; min-height: 100vh; }
}
