:root {
	--login-ink: #19202a;
	--login-muted: #687384;
	--login-line: #dfe5ee;
	--login-panel: #ffffff;
	--login-purple: #884ea0;
	--login-teal: #138a8a;
	--login-navy: #132238;
}

body.login-page {
	min-height: 100vh;
	margin: 0;
	color: var(--login-ink);
	background:
		linear-gradient(120deg, rgba(19, 34, 56, 0.88), rgba(19, 34, 56, 0.32)),
		url('../images/bg-1.jpg') center / cover no-repeat fixed;
	font-family:
		'SF Pro Text',
		Inter,
		-apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		sans-serif;
}

.login-shell {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
	min-height: 100vh;
}

.login-visual {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 100vh;
	padding: 48px;
	overflow: hidden;
	color: #fff;
}

.login-visual::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('../images/marketing.jpg') center / cover no-repeat;
	transform: scale(1.02);
}

.login-visual__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(
			135deg,
			rgba(15, 25, 42, 0.92),
			rgba(19, 138, 138, 0.52)
		),
		linear-gradient(0deg, rgba(10, 16, 28, 0.78), rgba(10, 16, 28, 0.16));
}

.login-brand,
.login-visual__content {
	position: relative;
	z-index: 1;
}

.login-brand {
	align-self: flex-start;
}

.login-brand__logo {
	width: 178px;
	max-width: 45vw;
	height: auto;
	filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.28));
}

.login-visual__content {
	align-self: flex-end;
	max-width: 680px;
}

.login-kicker,
.login-panel__eyebrow {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	min-height: 30px;
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.login-kicker {
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: rgba(255, 255, 255, 0.92);
}

.login-visual h1 {
	max-width: 620px;
	margin: 20px 0 16px;
	color: #fff;
	font-size: 48px;
	font-weight: 800;
	line-height: 1.08;
}

.login-visual p {
	max-width: 560px;
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 17px;
	line-height: 1.7;
}

.login-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	max-width: 560px;
	margin-top: 32px;
}

.login-stats div {
	min-height: 92px;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(12px);
}

.login-stats strong,
.login-stats span {
	display: block;
}

.login-stats strong {
	color: #fff;
	font-size: 18px;
	font-weight: 800;
}

.login-stats span {
	margin-top: 7px;
	color: rgba(255, 255, 255, 0.74);
	font-size: 13px;
}

.login-panel {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 32px;
	background: linear-gradient(
			180deg,
			rgba(255, 255, 255, 0.96),
			rgba(248, 250, 253, 0.96)
		),
		#fff;
}

.login-panel__inner {
	width: min(100%, 430px);
}

.login-panel__header {
	margin-bottom: 28px;
}

.login-panel__logo {
	width: 132px;
	height: auto;
	margin-bottom: 24px;
}

.login-panel__eyebrow {
	margin-bottom: 14px;
	background: rgba(19, 138, 138, 0.1);
	color: #0f7171;
}

.login-panel h2 {
	margin: 0 0 10px;
	color: var(--login-ink);
	font-size: 30px;
	font-weight: 800;
	line-height: 1.2;
}

.login-panel p {
	margin: 0;
	color: var(--login-muted);
	font-size: 15px;
	line-height: 1.6;
}

.login-alert {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	padding: 12px 14px;
	border: 1px solid rgba(220, 53, 69, 0.18);
	border-radius: 8px;
	background: rgba(220, 53, 69, 0.08);
	color: #a52834;
	font-size: 13px;
	line-height: 1.5;
}

.login-alert i {
	flex: 0 0 auto;
	margin-top: 2px;
	font-size: 18px;
}

.login-alert span {
	display: block;
}

.login-result {
	display: grid;
	gap: 8px;
	margin-bottom: 20px;
	padding: 16px;
	border: 1px solid rgba(19, 138, 138, 0.2);
	border-radius: 8px;
	background: rgba(19, 138, 138, 0.08);
	color: #0f4f4f;
}

.login-result__label {
	color: #315b5f;
	font-size: 13px;
	font-weight: 700;
}

.login-result strong {
	width: 100%;
	padding: 12px;
	border-radius: 8px;
	background: #fff;
	color: var(--login-ink);
	font-size: 22px;
	line-height: 1.2;
	text-align: center;
	letter-spacing: 0.12em;
}

.login-result small {
	color: #557076;
	font-size: 12px;
	line-height: 1.5;
}

.login-form {
	display: grid;
	gap: 18px;
}

.login-field label {
	display: block;
	margin-bottom: 8px;
	color: #283343;
	font-size: 14px;
	font-weight: 700;
}

.login-input {
	display: flex;
	align-items: center;
	min-height: 54px;
	border: 1px solid var(--login-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(19, 34, 56, 0.04);
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		background-color 0.2s ease;
}

.login-input:focus-within {
	border-color: rgba(19, 138, 138, 0.62);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(19, 138, 138, 0.12);
}

.login-input > i {
	flex: 0 0 auto;
	width: 48px;
	color: #7d8897;
	font-size: 20px;
	text-align: center;
}

.login-input input {
	width: 100%;
	min-width: 0;
	height: 52px;
	border: 0;
	outline: none;
	background: transparent;
	color: var(--login-ink);
	font-size: 15px;
	font-weight: 500;
}

.login-input input::placeholder {
	color: #9aa4b2;
	font-weight: 400;
}

.toggle-password {
	display: inline-flex;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-right: 5px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #7d8897;
	font-size: 20px;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}

.toggle-password:hover,
.toggle-password:focus {
	background: rgba(19, 138, 138, 0.1);
	color: var(--login-teal);
	outline: none;
}

.login-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	font-size: 14px;
}

.login-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: #354153;
	font-weight: 600;
	cursor: pointer;
}

.login-check input {
	width: 16px;
	height: 16px;
	accent-color: var(--login-teal);
}

.login-options a {
	color: var(--login-purple);
	font-weight: 700;
	text-decoration: none;
}

.login-options a:hover {
	color: #6f3984;
	text-decoration: underline;
}

.login-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 54px;
	margin-top: 4px;
	border: 0;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--login-purple), var(--login-teal));
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	box-shadow: 0 16px 34px rgba(19, 138, 138, 0.24);
	cursor: pointer;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		filter 0.2s ease;
}

.login-submit:hover,
.login-submit:focus {
	color: #fff;
	filter: saturate(1.05);
	box-shadow: 0 18px 38px rgba(136, 78, 160, 0.28);
	transform: translateY(-1px);
	outline: none;
}

.login-submit:active {
	transform: translateY(0);
}

.login-submit i {
	font-size: 18px;
}

.login-footer {
	margin-top: 30px !important;
	color: #7a8494 !important;
	font-size: 13px !important;
	text-align: center;
}

.login-back {
	margin-top: 18px !important;
	text-align: center;
}

.login-back a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--login-purple);
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}

.login-back a:hover {
	color: #6f3984;
	text-decoration: underline;
}

@media (max-width: 1199.98px) {
	.login-shell {
		grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1fr);
	}

	.login-visual {
		padding: 36px;
	}

	.login-visual h1 {
		font-size: 40px;
	}
}

@media (max-width: 991.98px) {
	body.login-page {
		background:
			linear-gradient(120deg, rgba(19, 34, 56, 0.88), rgba(19, 34, 56, 0.48)),
			url('../images/marketing.jpg') center / cover no-repeat fixed;
	}

	.login-shell {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 100vh;
		padding: 24px;
	}

	.login-visual {
		display: none;
	}

	.login-panel {
		width: min(100%, 520px);
		min-height: auto;
		padding: 28px;
		border-radius: 8px;
		box-shadow: 0 24px 70px rgba(5, 14, 28, 0.3);
	}
}

@media (max-width: 575.98px) {
	.login-shell {
		padding: 14px;
	}

	.login-panel {
		padding: 22px;
	}

	.login-panel__logo {
		width: 112px;
		margin-bottom: 20px;
	}

	.login-panel h2 {
		font-size: 25px;
	}

	.login-panel p,
	.login-input input,
	.login-submit {
		font-size: 14px;
	}

	.login-options {
		align-items: flex-start;
		flex-direction: column;
	}
}
