 :root {
 	--navy: #0f1e35;
 	--navy-mid: #162842;
 	--primary: #1d5fa6;
 	--primary-light: #e8f0fb;
 	--amber: #f59e0b;
 	--amber-light: #fef3c7;
 	--success: #059669;
 	--danger: #dc2626;
 	--warning: #d97706;
 	--text-dark: #0f1e35;
 	--text-muted: #64748b;
 	--border: #e2e8f0;
 	--bg: #f1f5f9;
 	--card-bg: #ffffff;
 	--sidebar-text: rgba(255, 255, 255, .7);
 }

 [data-theme="dark"] {
 	--bg: #0a1628;
 	--card-bg: #0f1e35;
 	--text-dark: #f1f5f9;
 	--text-muted: #94a3b8;
 	--border: #1e3a5f;
 }

 *,
 *::before,
 *::after {
 	box-sizing: border-box;
 }

 body {
 	font-family: 'Nunito', sans-serif;
 	background: var(--bg);
 	min-height: 100vh;
 	display: flex;
 	align-items: center;
 	justify-content: center;
 	padding: 1.5rem;
 	position: relative;
 	overflow: hidden;
 	transition: background .3s;
 }

 /* BG pattern */
 body::before {
 	content: '';
 	position: fixed;
 	inset: 0;
 	background:
 		radial-gradient(ellipse at 10% 20%, rgba(29, 95, 166, .12) 0%, transparent 55%),
 		radial-gradient(ellipse at 90% 80%, rgba(245, 158, 11, .08) 0%, transparent 50%);
 	pointer-events: none;
 }

 .login-split {
 	display: flex;
 	max-width: 900px;
 	width: 100%;
 	border-radius: 24px;
 	overflow: hidden;
 	box-shadow: 0 25px 80px rgba(15, 30, 53, .18);
 	position: relative;
 	z-index: 2;
 }

 /* Left panel */
 .login-hero {
 	background: linear-gradient(160deg, var(--navy) 0%, var(--primary) 100%);
 	padding: 3rem 2.5rem;
 	flex: 1;
 	display: flex;
 	flex-direction: column;
 	justify-content: space-between;
 	min-width: 300px;
 	position: relative;
 	overflow: hidden;
 }

 .login-hero::before {
 	content: '';
 	position: absolute;
 	bottom: -60px;
 	right: -60px;
 	width: 260px;
 	height: 260px;
 	border-radius: 50%;
 	background: rgba(255, 255, 255, .04);
 }

 .login-hero::after {
 	content: '';
 	position: absolute;
 	top: -40px;
 	left: -40px;
 	width: 180px;
 	height: 180px;
 	border-radius: 50%;
 	background: rgba(245, 158, 11, .08);
 }
.hero-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    position: relative;
    z-index: 2;
}

.hero-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--amber);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--navy);
}

.hero-logo i {
    line-height: 1;
    display: block;
    transform: translateY(1px);
}


 .hero-brand-name {
 	font-family: 'Outfit', sans-serif;
 	font-weight: 800;
 	font-size: 1.4rem;
 	color: #fff;
 }

 .hero-brand-name span {
 	color: var(--amber);
 }

 .hero-features {
 	position: relative;
 	z-index: 2;
 }

 .hero-features h2 {
 	font-family: 'Outfit', sans-serif;
 	font-weight: 700;
 	font-size: 1.6rem;
 	color: #fff;
 	margin-bottom: 1rem;
 }

 .feature-item {
 	display: flex;
 	align-items: center;
 	gap: .6rem;
 	color: rgba(255, 255, 255, .75);
 	font-size: .88rem;
 	margin-bottom: .7rem;
 }

 .feature-item i {
 	color: var(--amber);
 	font-size: 1rem;
 }

 /* Right panel (form) */
 .login-form-panel {
 	background: var(--card-bg);
 	padding: 3rem 2.8rem;
 	flex: 1;
 	display: flex;
 	flex-direction: column;
 	justify-content: center;
 	transition: background .3s;
 }

 .login-form-panel h2 {
 	font-family: 'Outfit', sans-serif;
 	font-weight: 700;
 	font-size: 1.6rem;
 	color: var(--text-dark);
 	margin-bottom: .3rem;
 }

 .subtitle {
 	color: var(--text-muted);
 	font-size: .88rem;
 	margin-bottom: 2rem;
 }

 .form-label {
 	font-weight: 700;
 	font-size: .78rem;
 	color: var(--text-dark);
 	text-transform: uppercase;
 	letter-spacing: .06em;
 	margin-bottom: .35rem;
 }

 .form-control {
 	border: 2px solid var(--border);
 	border-radius: 10px;
 	padding: .65rem 1rem;
 	font-size: .92rem;
 	font-family: 'Nunito', sans-serif;
 	color: var(--text-dark);
 	background: var(--bg);
 	transition: all .2s;
 }

 .form-control:focus {
 	border-color: var(--primary);
 	box-shadow: 0 0 0 3px rgba(29, 95, 166, .12);
 	background: var(--card-bg);
 }

 .input-group .ig-icon {
 	background: var(--bg);
 	border: 2px solid var(--border);
 	border-right: none;
 	border-radius: 10px 0 0 10px;
 	color: var(--text-muted);
 	padding: 0 .85rem;
 	display: flex;
 	align-items: center;
 }

 .input-group .form-control {
 	border-left: none;
 	border-radius: 0 10px 10px 0;
 }

 .input-group:focus-within .ig-icon {
 	border-color: var(--primary);
 	background: var(--card-bg);
 }

 .btn-pw-toggle {
 	border: 2px solid var(--border);
 	border-left: none;
 	border-radius: 0 10px 10px 0 !important;
 	background: var(--bg);
 	color: var(--text-muted);
 	transition: all .2s;
 }

 .btn-pw-toggle:hover {
 	color: var(--primary);
 }

 .demo-box {
 	background: var(--primary-light);
 	border: 1.5px solid #c5d9f5;
 	border-radius: 10px;
 	padding: .7rem 1rem;
 	font-size: .82rem;
 	color: var(--primary);
 	margin-bottom: 1.4rem;
 }

 .btn-login {
 	background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
 	color: #fff;
 	border: none;
 	border-radius: 10px;
 	padding: .78rem;
 	font-weight: 700;
 	font-size: .95rem;
 	width: 100%;
 	transition: all .2s;
 	box-shadow: 0 4px 16px rgba(29, 95, 166, .3);
 }

 .btn-login:hover {
 	transform: translateY(-2px);
 	box-shadow: 0 8px 24px rgba(29, 95, 166, .4);
 	color: #fff;
 }

 .err-msg {
 	font-size: .8rem;
 	color: var(--danger);
 	margin-top: .3rem;
 	display: none;
 }

 /* Dark mode toggle */
 .theme-toggle {
 	position: fixed;
 	top: 1.2rem;
 	right: 1.2rem;
 	z-index: 100;
 	width: 38px;
 	height: 38px;
 	border-radius: 50%;
 	background: var(--card-bg);
 	border: 1.5px solid var(--border);
 	display: flex;
 	align-items: center;
 	justify-content: center;
 	cursor: pointer;
 	color: var(--text-muted);
 	font-size: 1rem;
 	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
 	transition: all .2s;
 }

 .theme-toggle:hover {
 	color: var(--primary);
 	border-color: var(--primary);
 }

 @media (max-width: 650px) {
 	.login-hero {
 		display: none;
 	}

 	.login-form-panel {
 		padding: 2.5rem 2rem;
 	}

 	.login-split {
 		border-radius: 18px;
 	}
 }