/* Professional portal login — polished UI */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
	--portal-bg: #e8eef3;
	--portal-surface: #ffffff;
	--portal-ink: #0f172a;
	--portal-muted: #64748b;
	--portal-line: #e2e8f0;
	--portal-accent: #0f766e;
	--portal-accent-hover: #0d9488;
	--portal-accent-soft: rgba(15, 118, 110, 0.12);
	--portal-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
	--portal-font: 'Manrope', "Segoe UI", system-ui, sans-serif;
}

body.login-page.main-body {
	margin: 0 !important;
	min-height: 100vh;
	font-family: var(--portal-font);
	color: var(--portal-ink);
	background:
		radial-gradient(ellipse 90% 60% at 12% 18%, rgba(45, 212, 191, 0.28), transparent 52%),
		radial-gradient(ellipse 60% 50% at 88% 82%, rgba(15, 118, 110, 0.45), transparent 48%),
		linear-gradient(155deg, #0b1220 0%, #0f2f34 42%, #0f766e 100%);
	overflow-x: hidden;
}

body.login-page #global-loader {
	background: #0b1220;
}

.login-portal {
	position: relative;
	min-height: 100vh;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	isolation: isolate;
	overflow: hidden;
	background:
		radial-gradient(ellipse 90% 60% at 12% 18%, rgba(45, 212, 191, 0.28), transparent 52%),
		radial-gradient(ellipse 60% 50% at 88% 82%, rgba(15, 118, 110, 0.45), transparent 48%),
		linear-gradient(155deg, #0b1220 0%, #0f2f34 42%, #0f766e 100%);
}

.login-portal::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 44px 44px;
	opacity: 0.5;
	mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, #000 15%, transparent 80%);
	pointer-events: none;
}

.login-portal::after {
	content: '';
	position: absolute;
	width: 420px;
	height: 420px;
	right: 8%;
	bottom: -120px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: inset 0 0 0 48px rgba(255, 255, 255, 0.03);
	animation: login-float 12s ease-in-out infinite;
	pointer-events: none;
	z-index: 0;
}

.login-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(2px);
	pointer-events: none;
	z-index: 0;
}

.login-orb.one {
	width: 180px;
	height: 180px;
	top: 12%;
	left: 42%;
	background: rgba(45, 212, 191, 0.16);
	animation: login-float 9s ease-in-out infinite;
}

.login-orb.two {
	width: 110px;
	height: 110px;
	bottom: 22%;
	left: 14%;
	background: rgba(255, 255, 255, 0.06);
	animation: login-float 11s ease-in-out 1s infinite reverse;
}

.login-orb.three {
	width: 140px;
	height: 140px;
	top: 18%;
	right: 12%;
	background: rgba(45, 212, 191, 0.1);
	animation: login-float 10s ease-in-out 0.5s infinite reverse;
}

/* —— Hero —— */
.login-hero {
	position: relative;
	z-index: 1;
	padding: 52px 60px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	color: #f8fafc;
	overflow: visible;
	background: transparent;
}

.login-hero-brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	animation: login-rise 0.6s ease both;
}

.login-hero-mark {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06));
	border: 1px solid rgba(255, 255, 255, 0.22);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 1.15rem;
	color: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.login-hero-brand strong {
	display: block;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.015em;
}

.login-hero-brand small {
	display: block;
	margin-top: 3px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #99f6e4;
}

.login-hero-copy {
	max-width: 440px;
	padding: 36px 0;
	animation: login-rise 0.65s ease 0.08s both;
}

.login-hero-copy .eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #ccfbf1;
}

.login-hero-copy .eyebrow i {
	font-size: 13px;
	color: #5eead4;
}

.login-hero-copy h1 {
	margin: 0 0 16px;
	font-size: clamp(2.1rem, 3.6vw, 2.85rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.03em;
	color: #fff;
}

.login-hero-copy h1 span {
	display: block;
	background: linear-gradient(90deg, #fff 0%, #99f6e4 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.login-hero-copy p {
	margin: 0 0 22px;
	font-size: 1.02rem;
	line-height: 1.65;
	color: rgba(248, 250, 252, 0.8);
	max-width: 36ch;
}

.login-hero-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.login-hero-chips span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.8rem;
	font-weight: 600;
	color: rgba(248, 250, 252, 0.88);
	backdrop-filter: blur(6px);
}

.login-hero-chips i {
	color: #5eead4;
	font-size: 14px;
}

.login-hero-foot {
	font-size: 0.84rem;
	font-weight: 600;
	color: rgba(248, 250, 252, 0.65);
	display: flex;
	align-items: center;
	gap: 10px;
	animation: login-rise 0.65s ease 0.16s both;
}

.login-hero-foot .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #34d399;
	box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
}

/* —— Form side (professional flat) —— */
.login-side {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 40px;
	background: transparent;
}

.login-card {
	width: 100%;
	max-width: 400px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-shadow: none;
	padding: 32px 30px 26px;
	position: relative;
	animation: login-rise 0.5s ease 0.05s both;
}

.login-card::before {
	display: none;
}

.login-card-header {
	margin-bottom: 22px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e2e8f0;
}

.login-card-header .welcome-icon {
	display: none;
}

.login-card-header h2 {
	margin: 0 0 4px;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--portal-ink);
}

.login-card-header p {
	margin: 0;
	font-size: 0.88rem;
	color: var(--portal-muted);
	line-height: 1.5;
	font-weight: 500;
}

.login-form .form-group {
	margin-bottom: 16px;
}

.login-form label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: #334155;
	margin-bottom: 6px;
	letter-spacing: 0;
	text-transform: none;
}

.login-input {
	position: relative;
}

.login-input > i {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 15px;
	color: #94a3b8;
	pointer-events: none;
	z-index: 1;
}

.login-input:focus-within > i {
	color: var(--portal-accent);
}

.login-form .form-control {
	height: 44px;
	border-radius: 6px;
	border: 1px solid #d0d7e2;
	background: #fff;
	padding: 10px 12px 10px 38px;
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--portal-ink);
	box-shadow: none !important;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.login-form .form-control:hover {
	border-color: #b6c2d1;
	background: #fff;
}

.login-form .form-control:focus {
	border-color: var(--portal-accent);
	background: #fff;
	outline: none;
	box-shadow: none !important;
	transform: none;
}

.login-form .form-control::placeholder {
	color: #94a3b8;
	font-weight: 400;
}

.login-alert {
	border: 1px solid #fecaca;
	border-left: 3px solid #dc2626;
	background: #fef2f2;
	color: #b91c1c;
	border-radius: 6px;
	padding: 11px 12px;
	margin-bottom: 16px;
	text-align: left;
	font-size: 0.85rem;
}

.login-alert .close {
	color: #b91c1c;
	opacity: 0.65;
	text-shadow: none;
}

.login-alert ul {
	margin: 0;
	padding-left: 18px;
}

.login-captcha {
	display: grid;
	grid-template-columns: 40px minmax(64px, auto) 20px 1fr;
	align-items: center;
	gap: 8px;
	padding: 10px;
	border-radius: 6px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.login-captcha-refresh {
	width: 40px;
	height: 40px;
	border: 1px solid #d0d7e2;
	border-radius: 6px;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--portal-accent);
	transition: background 0.15s ease, border-color 0.15s ease;
}

.login-captcha-refresh:hover {
	background: #f0fdfa;
	border-color: #99f6e4;
	transform: none;
}

.login-captcha-refresh i {
	font-size: 16px;
}

.login-captcha-image {
	min-height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 10px;
	background: #fff;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
	font-weight: 700;
	box-shadow: none;
	color: var(--portal-ink);
	overflow: hidden;
}

.login-captcha-img {
	display: block;
	height: 30px;
	width: auto;
	border-radius: 6px;
}

.login-captcha-eq {
	text-align: center;
	font-size: 1.05rem;
	font-weight: 700;
	color: #64748b;
}

.login-captcha-input .form-control {
	padding-left: 12px;
	text-align: center;
	font-weight: 700;
	letter-spacing: 0.06em;
	width: 100%;
	border: 1px solid #d0d7e2;
	background: #fff;
	border-radius: 6px;
}

.login-captcha-hint {
	display: block;
	margin: 8px 0 18px;
	font-size: 0.76rem;
	color: var(--portal-muted);
}

.login-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 46px;
	border: 0;
	border-radius: 6px;
	background: #0f766e;
	color: #fff !important;
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: none;
	cursor: pointer;
	transition: background 0.15s ease;
	box-shadow: none;
}

.login-submit i {
	font-size: 15px;
	transition: none;
}

.login-submit:hover,
.login-submit:focus,
.login-submit:active {
	background: #0d9488 !important;
	color: #fff !important;
	border: 0;
	outline: none;
	filter: none;
	transform: none;
	box-shadow: none;
}

.login-submit:hover i {
	transform: none;
}

.login-secure {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #e2e8f0;
	text-align: center;
	font-size: 0.76rem;
	font-weight: 600;
	color: var(--portal-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.login-secure i {
	color: var(--portal-accent);
}

@keyframes login-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

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

@media (max-width: 900px) {
	.login-portal {
		grid-template-columns: 1fr;
	}

	.login-hero {
		min-height: auto;
		padding: 28px 24px 30px;
	}

	.login-hero-copy {
		padding: 22px 0 6px;
	}

	.login-hero-copy h1 {
		font-size: 1.85rem;
	}

	.login-hero-chips span:nth-child(3) {
		display: none;
	}

	.login-hero-foot {
		display: none;
	}

	.login-orb {
		display: none;
	}

	.login-side {
		padding: 20px 16px 40px;
		align-items: flex-start;
	}

	.login-card {
		padding: 28px 22px 22px;
		max-width: 100%;
	}
}

@media (max-width: 420px) {
	.login-captcha {
		grid-template-columns: 44px 1fr;
	}

	.login-captcha-eq {
		display: none;
	}
}
