:root {
	--auth-primary: #2563eb;
	--auth-primary-dark: #1d4ed8;
	--auth-ink: #172033;
	--auth-muted: #6b7280;
	--auth-border: #dbe5f3;
	--auth-panel: #ffffff;
}

body.auth-page,
body.login-page {
	min-height: 100vh;
	background:
		radial-gradient(circle at 16% 18%, rgba(37, 99, 235, 0.14), transparent 30%),
		linear-gradient(135deg, #eef5ff 0%, #ffffff 48%, #f7fbff 100%);
	color: var(--auth-ink);
}

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

.auth-panel,
.login-panel {
	width: min(1040px, 100%);
	display: grid;
	overflow: hidden;
	border: 1px solid rgba(219, 229, 243, 0.9);
	border-radius: 18px;
	background: var(--auth-panel);
	box-shadow: 0 24px 70px rgba(31, 48, 71, 0.16);
}

.auth-panel {
	grid-template-columns: 0.9fr 1fr;
}

.auth-panel.auth-panel-compact {
	width: min(960px, 100%);
	grid-template-columns: 0.92fr 1fr;
}

.login-panel {
	grid-template-columns: 1fr 440px;
}

.auth-info,
.login-brand {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 38px;
	background: linear-gradient(145deg, rgba(23, 48, 90, 0.96), rgba(16, 27, 51, 0.98));
	color: #fff;
}

.auth-info {
	min-height: 620px;
}

.auth-panel-compact .auth-info {
	min-height: 540px;
}

.login-brand {
	position: relative;
	min-height: 580px;
}

.login-brand::after {
	content: "";
	position: absolute;
	inset: auto 32px 32px auto;
	width: 180px;
	height: 180px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05);
}

.login-brand-content,
.login-support-card {
	position: relative;
	z-index: 1;
}

.auth-logo-mark,
.login-logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
	margin-bottom: 28px;
}

.auth-logo-mark {
	width: 82px;
	height: 82px;
}

.login-logo-mark {
	width: 86px;
	height: 86px;
}

.auth-logo-mark img {
	max-width: 66px;
	max-height: 66px;
}

.login-logo-mark img {
	max-width: 68px;
	max-height: 68px;
}

.auth-info h1,
.login-brand h1 {
	margin: 0;
	color: #fff;
	font-weight: 700;
}

.auth-info h1 {
	font-size: 32px;
	line-height: 1.2;
}

.login-brand h1 {
	max-width: 420px;
	font-size: 34px;
	line-height: 1.18;
}

.auth-info p,
.login-brand p {
	margin: 16px 0 0;
	color: rgba(255, 255, 255, 0.76);
	font-size: 15px;
	line-height: 1.7;
}

.login-brand p {
	max-width: 430px;
}

.auth-steps,
.auth-tips {
	display: grid;
	gap: 12px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.auth-steps li,
.auth-tips li {
	display: flex;
	gap: 10px;
	color: rgba(255, 255, 255, 0.84);
	font-size: 14px;
}

.auth-steps li {
	align-items: center;
}

.auth-tips li {
	align-items: flex-start;
	line-height: 1.5;
}

.auth-steps i,
.auth-tips i {
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.auth-support,
.login-support-card {
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(8px);
}

.login-support-card {
	width: min(360px, 100%);
}

.auth-support span,
.login-support-card span {
	display: block;
	color: rgba(255, 255, 255, 0.72);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.auth-support a,
.login-support-card a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	color: #fff;
	font-size: 17px;
	font-weight: 700;
}

.auth-form-panel,
.login-form-panel {
	display: flex;
	align-items: center;
	padding: 42px;
	background: #fff;
}

.auth-form,
.login-form {
	width: 100%;
}

.auth-form-logo,
.login-form-logo {
	display: none;
	margin-bottom: 22px;
	text-align: center;
}

.auth-form-logo img,
.login-form-logo img {
	max-height: 74px;
}

.auth-form h2,
.login-form h2 {
	margin: 0;
	color: var(--auth-ink);
	font-size: 26px;
	font-weight: 700;
}

.auth-form-subtitle,
.login-form-subtitle {
	color: var(--auth-muted);
	font-size: 14px;
	line-height: 1.6;
}

.auth-form-subtitle {
	margin: 8px 0 24px;
}

.login-form-subtitle {
	margin: 8px 0 26px;
}

.auth-alert,
.login-alert {
	border-radius: 12px;
	text-align: left;
}

.auth-field,
.login-field {
	text-align: left;
}

.auth-field {
	margin-bottom: 16px;
}

.forgot-password-page .auth-field {
	margin-bottom: 20px;
}

.login-field {
	margin-bottom: 16px;
}

.auth-field label,
.login-field label {
	margin-bottom: 7px;
	color: #334155;
	font-size: 13px;
	font-weight: 700;
}

.auth-input-wrap,
.login-input-wrap {
	position: relative;
}

.auth-input-wrap i,
.login-input-wrap i {
	position: absolute;
	top: 50%;
	left: 14px;
	transform: translateY(-50%);
	color: #8190a5;
	font-size: 15px;
	pointer-events: none;
}

.auth-input-wrap .form-control,
.login-input-wrap .form-control {
	height: 46px;
	padding-left: 42px;
	border: 1px solid var(--auth-border);
	border-radius: 10px;
	background: #fbfdff;
	color: var(--auth-ink);
	box-shadow: none;
}

.auth-input-wrap .form-control:focus,
.login-input-wrap .form-control:focus {
	border-color: var(--auth-primary);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.auth-help {
	display: block;
	margin-top: 7px;
	color: var(--auth-muted);
	font-size: 12px;
	line-height: 1.45;
}

.auth-submit,
.login-submit {
	height: 48px;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
	box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
	font-weight: 700;
}

.auth-submit:hover,
.login-submit:hover {
	background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.login-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 8px 0 22px;
}

.login-options .custom-control-label {
	color: #52627a;
	font-size: 13px;
}

.login-forgot,
.auth-back-link,
.auth-links a {
	color: var(--auth-primary);
	font-weight: 700;
}

.login-forgot {
	font-size: 13px;
	white-space: nowrap;
}

.auth-back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
}

.auth-links {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 18px;
}

.auth-links a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
}

.auth-mobile-support,
.login-contact-mobile {
	display: none;
	margin: 18px 0 0;
	color: var(--auth-muted);
	text-align: center;
}

.login-contact-mobile {
	margin-top: 20px;
}

.auth-mobile-support a,
.login-contact-mobile a {
	color: var(--auth-primary);
	font-weight: 700;
}

@media (max-width: 991.98px) {
	.auth-panel,
	.login-panel {
		grid-template-columns: 1fr;
		max-width: 520px;
	}

	.auth-panel-compact,
	.login-panel {
		max-width: 480px;
	}

	.auth-info,
	.login-brand {
		display: none;
	}

	.auth-form-panel,
	.login-form-panel {
		padding: 34px 26px;
	}

	.auth-form-logo,
	.login-form-logo,
	.auth-mobile-support,
	.login-contact-mobile {
		display: block;
	}
}

@media (max-width: 575.98px) {
	.auth-shell,
	.login-shell {
		align-items: flex-start;
		padding: 18px 12px;
	}

	.auth-panel,
	.login-panel {
		border-radius: 14px;
	}

	.auth-form-panel,
	.login-form-panel {
		padding: 28px 18px;
	}

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

	.login-options {
		gap: 10px;
	}
}
