.lg-auth-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
}

.lg-auth-overlay.is-open {
	display: block;
}

.lg-auth-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(18, 22, 30, 0.48);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.lg-auth-modal {
	position: relative;
	width: min(760px, calc(100vw - 32px));
	margin: 6vh auto 0;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
	padding: 26px 26px 22px;
	border: 1px solid rgba(20, 30, 50, 0.08);
}

.lg-auth-close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: transparent;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	color: #4d5a6b;
}

.lg-auth-head h3 {
	margin: 0 0 8px;
	font-size: 28px;
	color: #182232;
}

.lg-auth-head p {
	margin: 0 0 18px;
	color: #5b6675;
	line-height: 1.5;
}

.lg-auth-alert {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 12px;
	font-size: 14px;
}

.lg-auth-alert-ok {
	background: #edf8ef;
	color: #20603a;
	border: 1px solid #cfe8d5;
}

.lg-auth-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 18px;
}

.lg-auth-tab {
	border: 1px solid #d9e0e7;
	background: #f7f9fb;
	color: #334155;
	border-radius: 999px;
	padding: 10px 16px;
	cursor: pointer;
	font-weight: 600;
}

.lg-auth-tab.is-active {
	background: #182232;
	color: #fff;
	border-color: #182232;
}

.lg-auth-panel {
	display: none;
}

.lg-auth-panel.is-active {
	display: block;
}

.lg-auth-form {
	display: grid;
	gap: 14px;
}

.lg-auth-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: #223046;
}

.lg-auth-field input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #cfd7e2;
	border-radius: 12px;
	font-size: 15px;
	background: #fff;
}

.lg-auth-field input:focus {
	outline: none;
	border-color: #7a95b8;
	box-shadow: 0 0 0 4px rgba(122, 149, 184, 0.14);
}

.lg-auth-check {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #4a5565;
	font-size: 14px;
}

.lg-auth-btn {
	border: 0;
	border-radius: 12px;
	padding: 13px 18px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.lg-auth-btn-primary {
	background: linear-gradient(135deg, #1d2b3d, #2f4969);
	color: #fff;
}

.lg-auth-links {
	margin: 4px 0 0;
	font-size: 14px;
	color: #6b7280;
}

.lg-auth-links a {
	color: #2f4969;
	text-decoration: none;
}

.lg-auth-register-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.lg-auth-card {
	display: block;
	padding: 18px 16px;
	border-radius: 16px;
	border: 1px solid #dde5ed;
	background: linear-gradient(180deg, #ffffff, #f8fafc);
	text-decoration: none;
	color: #1f2937;
	min-height: 130px;
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.lg-auth-card strong {
	display: block;
	margin-bottom: 8px;
	font-size: 17px;
}

.lg-auth-card span {
	display: block;
	line-height: 1.5;
	color: #586374;
	font-size: 14px;
}

.lg-auth-card:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

.lg-auth-register-note {
	margin-top: 14px;
	color: #667182;
	font-size: 14px;
}

body.lg-auth-lock {
	overflow: hidden;
}

@media (max-width: 760px) {
	.lg-auth-modal {
		width: calc(100vw - 20px);
		margin-top: 14px;
		padding: 22px 18px 18px;
		border-radius: 16px;
	}

	.lg-auth-head h3 {
		font-size: 24px;
	}

	.lg-auth-register-cards {
		grid-template-columns: 1fr;
	}
}