/* QAF LIMS — enterprise login (LabWare-class structure, QAFLIMS identity) */
/* System font stack — no external CDN dependency */

.qaf-login-page {
	min-height: 100vh;
	background:
		radial-gradient(ellipse 80% 60% at 10% 20%, rgba(30, 86, 217, 0.16), transparent 55%),
		radial-gradient(ellipse 70% 50% at 90% 80%, rgba(14, 165, 233, 0.12), transparent 50%),
		linear-gradient(165deg, #e8eef9 0%, #f4f7fc 45%, #eef2f8 100%);
	font-family: "Outfit", "Cairo", var(--qaf-font, sans-serif);
	position: relative;
	overflow: hidden;
}

html[dir="rtl"] .qaf-login-page {
	font-family: "Cairo", "Outfit", var(--qaf-font-ar, sans-serif);
}

.qaf-login-bokeh {
	position: fixed;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}

.qaf-login-bokeh span {
	position: absolute;
	border-radius: 50%;
	filter: blur(2px);
	background: radial-gradient(circle, rgba(30, 86, 217, 0.28) 0%, transparent 70%);
	animation: qaf-float 14s ease-in-out infinite;
}

.qaf-login-bokeh span:nth-child(1) {
	width: 380px; height: 380px; top: -100px; left: -80px;
}
.qaf-login-bokeh span:nth-child(2) {
	width: 280px; height: 280px; bottom: 8%; right: 2%;
	animation-delay: -4s;
	background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, transparent 70%);
}
.qaf-login-bokeh span:nth-child(3) {
	width: 200px; height: 200px; top: 42%; left: 28%;
	animation-delay: -7s;
}

@keyframes qaf-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-18px); }
}

.qaf-login-shell {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px 20px;
}

.qaf-login-card {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	width: 100%;
	max-width: 980px;
	min-height: 580px;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(15, 40, 90, 0.18);
	background: #fff;
	border: 1px solid rgba(148, 163, 184, 0.35);
	animation: qaf-login-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes qaf-login-rise {
	from { opacity: 0; transform: translateY(20px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.qaf-login-card,
	.qaf-login-bokeh span { animation: none; }
}

.qaf-login-brand {
	background:
		linear-gradient(155deg, #0b2a6e 0%, #1e56d9 48%, #2563eb 100%);
	color: #fff;
	padding: 52px 44px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	overflow: hidden;
}

.qaf-login-brand::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.06) 40%, rgba(255,255,255,0.06) 41%, transparent 41%),
		linear-gradient(45deg, transparent 60%, rgba(255,255,255,0.04) 60%);
	pointer-events: none;
}

.qaf-login-brand::after {
	content: "";
	position: absolute;
	bottom: -50px;
	inset-inline-end: -40px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
}

.qaf-login-brand > div { position: relative; z-index: 1; }

.qaf-login-brand h1 {
	font-size: clamp(1.6rem, 2.2vw, 2rem);
	font-weight: 700;
	margin: 28px 0 14px;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.qaf-login-brand p {
	opacity: 0.92;
	font-size: 1rem;
	line-height: 1.65;
	margin: 0;
	max-width: 28ch;
}

.qaf-login-brand .copyright {
	position: relative;
	z-index: 1;
	font-size: 0.78rem;
	opacity: 0.7;
}

.qaf-login-form-side {
	padding: 48px 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: #fff;
}

.qaf-login-form-side .app-logo {
	height: 36px;
	width: auto;
	margin-bottom: 1.25rem;
}

.qaf-login-form-side h4 {
	font-size: 1.35rem;
	font-weight: 650;
	margin: 0 0 1.25rem;
	color: #0f172a;
	letter-spacing: -0.01em;
}

.qaf-login-form-side .page-card {
	border: none;
	box-shadow: none;
	padding: 0;
	background: transparent;
}

.qaf-login-form-side .form-control {
	border-radius: 10px;
	border-color: #cbd5e1;
	min-height: 44px;
	padding: 0.65rem 0.9rem;
}

.qaf-login-form-side .form-control:focus {
	border-color: #1e56d9;
	box-shadow: 0 0 0 3px rgba(30, 86, 217, 0.15);
}

.qaf-login-form-side .btn-primary {
	background: #1e56d9;
	border-color: #1e56d9;
	border-radius: 10px;
	min-height: 44px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.qaf-login-form-side .btn-primary:hover {
	background: #1648b8;
	border-color: #1648b8;
}

.qaf-login-form-side .sign-up-message,
.qaf-login-form-side .forgot-password-message {
	font-size: 0.9rem;
}

.qaf-login-form-side a { color: #1e56d9; }

@media (max-width: 820px) {
	.qaf-login-card {
		grid-template-columns: 1fr;
		min-height: auto;
	}
	.qaf-login-brand {
		padding: 36px 28px;
		min-height: 220px;
	}
	.qaf-login-brand p { max-width: none; }
	.qaf-login-form-side { padding: 32px 24px 40px; }
}
