body.login {
	--lgu-primary: #2f5cff;
	--lgu-primary-dark: #2348eb;
	--lgu-radius: 24px;
	background: #f3f6ff;
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 24px;
}

body.login #login {
	width: min(1080px, 100%);
	padding: 0;
}

body.login #login_error,
body.login .message,
body.login .success {
	margin-bottom: 16px;
	border-radius: 12px;
}

body.login #login h1,
body.login #login h1 a,
body.login .privacy-policy-page-link,
body.login .language-switcher,
body.login #backtoblog {
	display: none !important;
}

.lgu-login-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-radius: var(--lgu-radius);
	overflow: hidden;
	box-shadow: 0 28px 60px rgba(17, 24, 39, 0.18);
	min-height: min(780px, calc(100vh - 48px));
	background: #fff;
}

.portal-left-panel,
.lgu-login-brand-panel {
	position: relative;
	overflow: hidden;
	color: #fff;
	background: linear-gradient(180deg, #2f5cff 0%, #2348eb 100%);
	border-radius: 24px 0 0 24px;
	min-height: 100%;
}

.portal-decor {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.seal-watermark {
	position: absolute;
	top: 90px;
	right: 70px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	opacity: 0.06;
	background:
		radial-gradient(circle at center, rgba(255, 255, 255, 0.9) 0 28%, transparent 29%),
		radial-gradient(circle at center, transparent 0 56%, rgba(255, 255, 255, 0.85) 57% 66%, transparent 67%),
		radial-gradient(circle at center, transparent 0 74%, rgba(255, 255, 255, 0.55) 75% 78%, transparent 79%);
	filter: blur(0.2px);
}

.dot-pattern {
	position: absolute;
	inset: 0;
	opacity: 0.12;
	background-image: radial-gradient(rgba(255, 255, 255, 0.7) 0.8px, transparent 0.8px);
	background-size: 18px 18px;
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35), transparent);
	-webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35), transparent);
}

.skyline {
	position: absolute;
	left: 40px;
	right: 40px;
	bottom: 255px;
	height: 90px;
	opacity: 0.12;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 140' preserveAspectRatio='none'%3E%3Cpath d='M0 120 L0 105 L70 105 L70 78 L115 78 L115 98 L150 98 L150 86 L215 86 L215 56 L275 56 L275 92 L330 92 L330 72 L405 72 L405 108 L470 108 L470 68 L540 68 L540 88 L610 88 L610 44 L690 44 L690 96 L760 96 L760 74 L830 74 L830 102 L905 102 L905 62 L980 62 L980 92 L1045 92 L1045 78 L1110 78 L1110 108 L1200 108 L1200 120 Z' fill='white'/%3E%3C/svg%3E");
}

.portal-content {
	position: relative;
	z-index: 3;
	padding: 48px 50px;
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.portal-badge,
.lgu-login-badge {
	margin: 0;
	display: inline-block;
	padding: 10px 18px;
	border-radius: 999px;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(6px);
	width: fit-content;
}

.lgu-login-heading {
	margin: 14px 0 0;
	color: #fff;
	font-size: 42px;
	line-height: 1.2;
	font-weight: 700;
	max-width: 420px;
}

.lgu-login-label {
	margin: 26px 0 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.015em;
}

.portal-description {
	margin: 14px 0 0;
	max-width: 430px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 15px;
	line-height: 1.6;
}

.lgu-login-feature-grid {
	display: grid;
	gap: 12px;
	margin-top: auto;
	padding-top: 118px;
}

.lgu-login-feature-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 15px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.lgu-login-feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	flex-shrink: 0;
	font-size: 16px;
	line-height: 1;
	margin-top: 2px;
	background: rgba(255, 255, 255, 0.2);
}

.portal-feature-card-verified .portal-feature-icon {
	background: rgba(34, 197, 94, 0.2);
}

.portal-feature-title {
	margin: 0 0 4px;
	font-size: 16px;
	color: #fff;
	font-weight: 600;
}

.lgu-login-feature-content p {
	margin: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.82);
	line-height: 1.45;
}

.lgu-login-form-panel {
	background: #fff;
	padding: clamp(24px, 5vw, 48px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.lgu-login-form-header h2 {
	margin: 16px 0 0;
	font-size: clamp(30px, 4vw, 40px);
	font-weight: 800;
	text-transform: uppercase;
	color: #142247;
	letter-spacing: 0.01em;
	text-align: center;
}

.lgu-login-form-subtitle {
	margin: 8px 0 22px;
	color: #6b7280;
	font-size: 15px;
	text-align: center;
}

.lgu-login-logo {
	display: block;
	width: 76px;
	height: auto;
	max-width: 76px;
	object-fit: contain;
	margin: 0 auto;
}

.lgu-login-form-header {
	width: 100%;
}

body.login #loginform {
	border: 0;
	box-shadow: none;
	padding: 0;
	margin: 0;
}

body.login #loginform p label {
	color: #374151;
	font-weight: 600;
	font-size: 14px;
}

body.login #loginform .input,
body.login #loginform input[type="text"],
body.login #loginform input[type="password"] {
	width: 100%;
	min-height: 48px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 15px;
	background: #f9fafb;
}

body.login #loginform .input:focus,
body.login #loginform input[type="text"]:focus,
body.login #loginform input[type="password"]:focus {
	border-color: var(--lgu-primary);
	box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.15);
	outline: 0;
}

.lgu-password-wrap {
	position: relative;
}

body.login #loginform .lgu-password-wrap .input {
	padding-right: 46px;
}

.lgu-password-toggle {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	min-width: 36px;
	min-height: 36px;
	cursor: pointer;
}

body.login #loginform .forgetmenot {
	margin: 0;
	min-height: 44px;
	display: flex;
	align-items: center;
}

body.login #loginform .forgetmenot label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

body.login #loginform .submit {
	float: none;
}

.lgu-login-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 8px 0 16px;
	min-height: 44px;
}

.lgu-login-forgot {
	color: var(--lgu-primary);
	text-decoration: none;
	font-weight: 600;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.lgu-login-forgot:hover {
	text-decoration: underline;
}

body.login #wp-submit {
	width: 100%;
	min-height: 48px;
	border: 0;
	border-radius: 999px;
	background: var(--lgu-primary);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	transition: transform 0.15s ease, box-shadow 0.2s ease;
}

body.login #wp-submit:hover,
body.login #wp-submit:focus {
	background: var(--lgu-primary-dark);
	box-shadow: 0 12px 22px rgba(47, 107, 255, 0.25);
	transform: translateY(-1px);
}

.lgu-login-register a {
	color: var(--lgu-primary);
	text-decoration: none;
	font-weight: 600;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.lgu-login-register a:hover {
	text-decoration: underline;
}

.lgu-login-register {
	margin: 12px 0 0;
	color: #6b7280;
	font-size: 14px;
}

@media (max-width: 900px) {
	body.login {
		padding: 12px;
	}

	.lgu-login-card {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.lgu-login-brand-panel {
		border-radius: 24px 24px 0 0;
	}

	.portal-content {
		padding: 28px 22px;
	}

	.skyline {
		bottom: 190px;
	}

	.lgu-login-feature-grid {
		padding-top: 34px;
	}

	.lgu-login-form-panel {
		padding: 28px 20px;
	}
}
