/* ═══════════════════════════════════════════════════════════
   Nexa Design — Premium Split-Screen Login
   ═══════════════════════════════════════════════════════════ */

:root {
	--nx-accent: #6366f1;
	--nx-accent-hover: #4f46e5;
	--nx-accent-glow: rgba(99, 102, 241, 0.35);
	--nx-accent-soft: rgba(99, 102, 241, 0.06);
	--nx-bg-dark: #050510;
	--nx-bg-panel: #0c0c20;
	--nx-bg-form: #ffffff;
	--nx-text-white: #f8fafc;
	--nx-text-light: #cbd5e1;
	--nx-text-dark: #0f172a;
	--nx-text-body: #334155;
	--nx-text-muted: #94a3b8;
	--nx-border: #e2e8f0;
	--nx-input-bg: #f8fafc;
	--nx-input-border: #e2e8f0;
	--nx-input-focus: #6366f1;
	--nx-error-bg: #fef2f2;
	--nx-error-text: #dc2626;
	--nx-error-border: #fecaca;
	--nx-success: #22c55e;
	--nx-radius-xs: 8px;
	--nx-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
.nexa-login-page, .nexa-login-page *, .nexa-login-page *::before, .nexa-login-page *::after {
	box-sizing: border-box; margin: 0; padding: 0;
}

.nexa-login-page {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	background: var(--nx-bg-dark);
	height: 100vh !important; width: 100vw !important;
	overflow: hidden !important; position: fixed !important;
	top: 0 !important; left: 0 !important;
}

.nexa-login-page .navbar, .nexa-login-page .web-footer,
.nexa-login-page footer.web-footer, .nexa-login-page .page-container,
.nexa-login-page header, .nexa-login-page .web-sidebar {
	display: none !important;
}

/* ── Split Layout ─────────────────────────────────────────── */
.login-container {
	display: flex; height: 100vh; width: 100vw;
}

/* ── LEFT: Brand Panel ────────────────────────────────────── */
.brand-panel {
	flex: 0 0 46%; max-width: 46%;
	background: var(--nx-bg-panel);
	position: relative; display: flex; flex-direction: column;
	justify-content: center; align-items: center;
	padding: 60px 50px; overflow: hidden;
}

.brand-bg { position: absolute; inset: 0; overflow: hidden; }

.brand-orb {
	position: absolute; border-radius: 50%;
	filter: blur(100px); opacity: 0.5;
}

.brand-orb-1 {
	width: 450px; height: 450px;
	background: rgba(99,102,241,0.25);
	top: -120px; left: -100px;
	animation: drift1 18s ease-in-out infinite;
}
.brand-orb-2 {
	width: 350px; height: 350px;
	background: rgba(139,92,246,0.2);
	bottom: -80px; right: -60px;
	animation: drift2 22s ease-in-out infinite;
}
.brand-orb-3 {
	width: 200px; height: 200px;
	background: rgba(6,182,212,0.15);
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	animation: drift3 15s ease-in-out infinite;
}

.brand-grid {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
	background-size: 50px 50px;
}

@keyframes drift1 {
	0%,100% { transform: translate(0,0); }
	33% { transform: translate(50px,40px); }
	66% { transform: translate(-30px,20px); }
}
@keyframes drift2 {
	0%,100% { transform: translate(0,0); }
	33% { transform: translate(-40px,-50px); }
	66% { transform: translate(30px,-20px); }
}
@keyframes drift3 {
	0%,100% { transform: translate(-50%,-50%) scale(1); }
	50% { transform: translate(-30%,-60%) scale(1.3); }
}

.brand-content {
	position: relative; z-index: 1; text-align: center;
	animation: fadeUp 0.8s var(--nx-ease);
}

.brand-logo { margin-bottom: 28px; }
.brand-logo img {
	height: 56px; width: auto; object-fit: contain;
	filter: brightness(1.15) drop-shadow(0 4px 20px rgba(99,102,241,0.15));
}

.brand-heading {
	font-size: 2rem; font-weight: 700;
	color: var(--nx-text-white); letter-spacing: -0.03em;
	margin-bottom: 10px;
}

.brand-tagline {
	font-size: 1rem; color: var(--nx-text-light);
	font-weight: 400; margin-bottom: 48px; opacity: 0.8;
}

.brand-features {
	display: flex; flex-direction: column; gap: 18px;
	align-items: flex-start; max-width: 280px; margin: 0 auto;
}

.feature-item {
	display: flex; align-items: center; gap: 14px;
	color: var(--nx-text-light); font-size: 0.9rem;
	font-weight: 400; opacity: 0.85;
}

.feature-icon {
	width: 38px; height: 38px; min-width: 38px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 10px;
	background: rgba(99,102,241,0.12);
	border: 1px solid rgba(99,102,241,0.15);
}
.feature-icon svg { width: 18px; height: 18px; stroke: var(--nx-accent); }

.brand-footer {
	position: absolute; bottom: 30px; left: 50%;
	transform: translateX(-50%); z-index: 1;
}
.brand-footer p {
	font-size: 0.75rem; color: rgba(255,255,255,0.2); white-space: nowrap;
}

/* ── RIGHT: Form Panel ────────────────────────────────────── */
.form-panel {
	flex: 1; background: var(--nx-bg-form);
	display: flex; align-items: center; justify-content: center;
	padding: 40px; position: relative; overflow-y: auto;
}

.form-panel-inner {
	width: 100%; max-width: 380px;
	animation: fadeUp 0.6s var(--nx-ease) 0.1s both;
}

@keyframes fadeUp {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}

.mobile-logo { display: none; text-align: center; margin-bottom: 28px; }
.mobile-logo img { height: 44px; width: auto; }

/* ── Headings ─────────────────────────────────────────────── */
.login-title {
	font-size: 1.6rem; font-weight: 700;
	color: var(--nx-text-dark); letter-spacing: -0.02em; margin-bottom: 6px;
}
.login-subtitle {
	font-size: 0.9rem; color: var(--nx-text-muted);
	font-weight: 400; margin-bottom: 32px;
}

/* ── Error Banner ─────────────────────────────────────────── */
.login-error {
	background: var(--nx-error-bg); border: 1px solid var(--nx-error-border);
	color: var(--nx-error-text); border-radius: var(--nx-radius-xs);
	padding: 11px 14px; font-size: 0.83rem; margin-bottom: 20px;
	display: flex; align-items: flex-start; gap: 10px;
	animation: shake 0.4s ease; line-height: 1.45;
}
.error-icon { width: 18px; height: 18px; min-width: 18px; margin-top: 1px; }

@keyframes shake {
	0%,100% { transform: translateX(0); }
	20% { transform: translateX(-5px); }
	40% { transform: translateX(5px); }
	60% { transform: translateX(-3px); }
	80% { transform: translateX(3px); }
}

/* ── Form Group ───────────────────────────────────────────── */
.login-section .form-group { margin-bottom: 20px; }

.login-section label {
	display: block; font-size: 0.82rem; font-weight: 600;
	color: var(--nx-text-body); margin-bottom: 7px;
}

.label-row {
	display: flex; justify-content: space-between;
	align-items: center; margin-bottom: 7px;
}
.label-row label { margin-bottom: 0; }

.forgot-link {
	font-size: 0.8rem; color: var(--nx-accent);
	text-decoration: none; font-weight: 500; transition: color 0.2s;
}
.forgot-link:hover { color: var(--nx-accent-hover); }

/* ── Input ────────────────────────────────────────────────── */
.input-wrapper { position: relative; display: flex; align-items: center; }

.input-icon {
	position: absolute; left: 13px; width: 18px; height: 18px;
	color: var(--nx-text-muted); pointer-events: none;
	transition: color 0.25s var(--nx-ease); z-index: 1;
}

.input-wrapper input {
	width: 100%; padding: 11px 42px 11px 42px;
	font-size: 0.88rem; font-family: inherit;
	border: 1.5px solid var(--nx-input-border);
	border-radius: var(--nx-radius-xs);
	background: var(--nx-input-bg); color: var(--nx-text-dark);
	transition: all 0.25s var(--nx-ease); outline: none;
}

.input-wrapper input:focus {
	border-color: var(--nx-input-focus); background: #fff;
	box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.input-wrapper input:focus ~ .input-icon { color: var(--nx-input-focus); }
.input-wrapper input::placeholder { color: #b0b8c8; font-weight: 400; }

/* ── Toggle Password ──────────────────────────────────────── */
.toggle-password {
	position: absolute; right: 10px; background: none; border: none;
	cursor: pointer; padding: 4px; color: var(--nx-text-muted);
	transition: color 0.2s; z-index: 1; display: flex;
}
.toggle-password:hover { color: var(--nx-text-body); }
.toggle-password svg { width: 18px; height: 18px; }

/* ── Custom Checkbox ──────────────────────────────────────── */
.remember-me {
	display: flex; align-items: center; gap: 9px;
	font-size: 0.84rem; color: var(--nx-text-body); cursor: pointer;
	margin-bottom: 24px; user-select: none; font-weight: 400 !important;
}
.remember-me input[type="checkbox"] { display: none; }

.check-box {
	width: 18px; height: 18px; min-width: 18px;
	border: 1.5px solid var(--nx-border); border-radius: 5px;
	display: flex; align-items: center; justify-content: center;
	transition: all 0.2s var(--nx-ease); background: #fff; position: relative;
}
.check-box::after {
	content: ''; width: 10px; height: 10px; border-radius: 3px;
	background: var(--nx-accent); opacity: 0; transform: scale(0);
	transition: all 0.2s var(--nx-ease);
}
.remember-me input:checked + .check-box { border-color: var(--nx-accent); }
.remember-me input:checked + .check-box::after { opacity: 1; transform: scale(1); }

/* ── Login Button ─────────────────────────────────────────── */
.btn-login {
	width: 100%; height: 46px; font-size: 0.92rem; font-weight: 600;
	font-family: inherit; color: #fff; background: var(--nx-accent);
	border: none; border-radius: var(--nx-radius-xs); cursor: pointer;
	transition: all 0.3s var(--nx-ease);
	display: flex; align-items: center; justify-content: center;
	gap: 8px; position: relative; overflow: hidden;
}

.btn-login:hover {
	background: var(--nx-accent-hover);
	box-shadow: 0 6px 24px var(--nx-accent-glow);
	transform: translateY(-1px);
}
.btn-login:active {
	transform: translateY(0); box-shadow: 0 2px 8px var(--nx-accent-glow);
}
.btn-login:disabled {
	opacity: 0.65; cursor: not-allowed;
	transform: none !important; box-shadow: none !important;
}

.btn-arrow svg {
	width: 18px; height: 18px; transition: transform 0.3s var(--nx-ease);
}
.btn-login:hover .btn-arrow svg { transform: translateX(4px); }

.btn-login::after {
	content: ''; position: absolute; top: 0; left: -100%;
	width: 100%; height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
	transition: left 0.5s ease;
}
.btn-login:hover::after { left: 100%; }

.btn-spinner .spinner { width: 20px; height: 20px; animation: spin 0.75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Divider ──────────────────────────────────────────────── */
.login-divider {
	display: flex; align-items: center; margin: 24px 0;
	color: var(--nx-text-muted); font-size: 0.78rem; font-weight: 500;
}
.login-divider::before, .login-divider::after {
	content: ''; flex: 1; height: 1px; background: var(--nx-border);
}
.login-divider span {
	padding: 0 16px; text-transform: uppercase; letter-spacing: 0.05em;
}

/* ── Social Logins ────────────────────────────────────────── */
.social-logins { display: flex; flex-direction: column; gap: 10px; }

.btn-social {
	display: flex; align-items: center; justify-content: center;
	gap: 10px; padding: 10px 16px;
	border: 1.5px solid var(--nx-border); border-radius: var(--nx-radius-xs);
	background: #fff; color: var(--nx-text-body);
	font-size: 0.85rem; font-weight: 500; text-decoration: none;
	transition: all 0.25s var(--nx-ease);
}
.btn-social:hover {
	border-color: var(--nx-accent);
	background: var(--nx-accent-soft); color: var(--nx-accent);
}

/* ── Forgot Section ───────────────────────────────────────── */
.section-info {
	font-size: 0.88rem; color: var(--nx-text-muted);
	margin-bottom: 24px; line-height: 1.55;
}
.back-to-login { text-align: center; margin-top: 20px; }
.back-to-login a {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 0.85rem; color: var(--nx-text-muted);
	text-decoration: none; font-weight: 500; transition: color 0.2s;
}
.back-to-login a:hover { color: var(--nx-accent); }

/* ── Success ──────────────────────────────────────────────── */
.btn-login.btn-success { background: var(--nx-success); }
.btn-login.btn-success:hover {
	background: #16a34a; box-shadow: 0 6px 24px rgba(34,197,94,0.3);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
	.brand-panel { flex: 0 0 40%; max-width: 40%; padding: 40px 30px; }
	.brand-heading { font-size: 1.65rem; }
	.brand-features { gap: 14px; }
}

@media (max-width: 768px) {
	.login-container { flex-direction: column; }
	.brand-panel { display: none; }
	.form-panel {
		background: linear-gradient(160deg, #f8f9fc 0%, #eef1f8 100%);
		padding: 32px 24px;
	}
	.form-panel-inner { max-width: 400px; }
	.mobile-logo { display: block; }
	.login-title { text-align: center; }
	.login-subtitle { text-align: center; }
}

@media (max-width: 400px) {
	.form-panel { padding: 24px 18px; }
	.login-title { font-size: 1.35rem; }
	.btn-login { height: 44px; }
}
