/* Khung màn đăng nhập SMARTID: nền sáng có quầng màu, thẻ 2 cột (khối nhận diện xanh đậm + form). */
/* Màu xanh Bootstrap cho nút / ô đang chọn, cam Smart Software làm điểm nhấn; ô lỗi viền đỏ. */
.lg {
	--lg-primary: #0d6efd;
	--lg-primary-hover: #0b5ed7;
	--lg-primary-dark: #0a58ca;
	--lg-primary-soft: #e7f1ff;
	--lg-focus: #86b7fe;
	--lg-focus-ring: rgba(13, 110, 253, .25);
	--lg-navy: #0a2a66;
	--lg-accent: #f47920;
	position: fixed;
	inset: 0;
	z-index: 10;
	display: grid;
	grid-template-rows: 1fr auto;
	place-items: center;
	gap: 20px;
	padding: 24px 16px 16px;
	overflow-y: auto;
	background:
		radial-gradient(900px 520px at 8% -10%, rgba(13, 110, 253, .14), transparent 60%),
		radial-gradient(700px 460px at 105% 110%, rgba(244, 121, 32, .10), transparent 60%),
		radial-gradient(rgba(10, 42, 102, .07) 1px, transparent 1px) 0 0 / 22px 22px,
		#f4f7fc;
	font-family: Inter, Arial, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.lg-card {
	width: min(980px, 100%);
	min-height: 540px;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	background: #fff;
	border: 1px solid #e3e8f0;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(10, 42, 102, .14), 0 2px 8px rgba(10, 42, 102, .06);
}

/* Khối nhận diện: nền xanh đậm, lưới mờ và vòng tròn đồng tâm quanh khiên ở góc dưới phải chỉ để trang trí */
.lg-brand {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 36px;
	color: #fff;
	background:
		radial-gradient(420px 320px at 0% 0%, rgba(77, 163, 255, .35), transparent 70%),
		linear-gradient(155deg, #0d5bd7 0%, #0a3d9c 45%, var(--lg-navy) 100%);
}

.lg-grid {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
	background-size: 28px 28px;
	-webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 60%);
	mask-image: linear-gradient(200deg, #000 0%, transparent 60%);
	pointer-events: none;
}

.lg-rings {
	position: absolute;
	right: -90px;
	bottom: -90px;
	width: 340px;
	height: 340px;
	pointer-events: none;
}

.lg-rings circle {
	fill: none;
	stroke: rgba(255, 255, 255, .12);
	stroke-width: 1.5;
}

.lg-rings circle:nth-of-type(3) {
	fill: rgba(255, 255, 255, .05);
}

.lg-rings .lg-rings-shield {
	fill: rgba(255, 255, 255, .10);
	stroke: rgba(255, 255, 255, .28);
	stroke-width: 2;
	stroke-linejoin: round;
}

.lg-rings .lg-rings-dot {
	fill: var(--lg-accent);
	stroke: none;
}

.lg-head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

/* Biểu tượng (khiên có người) + tên SMARTID */
.lg-mark {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.lg-mark-icon {
	flex: none;
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border-radius: 13px;
	background: #fff;
	color: var(--lg-primary);
	box-shadow: 0 8px 20px rgba(4, 18, 52, .28);
}

.lg-mark-icon svg {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.lg-head h1 {
	margin: 0;
	font-size: 32px;
	line-height: 1;
	font-weight: 800;
	letter-spacing: .02em;
	white-space: nowrap;
	color: #fff;
}

/* Giới thiệu cổng đăng nhập, nằm cuối khối; giới hạn bề rộng để không đè vòng tròn */
.lg-app {
	position: relative;
	margin-top: auto;
	padding-top: 32px;
	max-width: 380px;
}

.lg-app p {
	margin: 0;
	color: #fff;
}

.lg-app .lg-app-title {
	font-size: 28px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -.02em;
}

.lg-app .lg-app-desc {
	margin-top: 12px;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .82);
}

/* Các điểm chính: biểu tượng trong ô mờ + chữ */
.lg-features {
	display: grid;
	gap: 10px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.lg-features li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	font-weight: 500;
}

.lg-feature-icon {
	flex: none;
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 9px;
	background: rgba(255, 255, 255, .12);
}

.lg-feature-icon svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: #fff;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Bản quyền ở cuối trang */
.lg-foot {
	font-size: 14px;
	text-align: center;
	color: #5b6577;
}

/* Logo Smart Software: nhỏ hơn tên ứng dụng, co theo khung khi hẹp */
.lg-logo {
	width: 116px;
	min-width: 0;
	height: auto;
}

/* Biểu tượng khoá đầu form */
.lg-form .lg-badge {
	width: 48px;
	height: 48px;
	margin-bottom: 10px;
	display: grid;
	place-items: center;
	border-radius: 14px;
	background: var(--lg-primary-soft);
	color: var(--lg-primary);
}

.lg-form .lg-badge svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Form */
.lg-form {
	position: relative;
	padding: 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
}

.lg-form form {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.lg-form h2 {
	margin: 0;
	font-size: 22px;
	font-weight: 750;
	color: #111827;
}

.lg-form .lg-sub {
	margin: 0 0 14px;
	font-size: 14px;
	color: #5b6577;
}

.lg-form .lg-lbl {
	margin-top: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #334155;
}

.lg-form .lg-field {
	height: 44px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 12px;
	border: 1px solid #d5dce6;
	border-radius: 10px;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.lg-form .lg-field:focus-within {
	border-color: var(--lg-focus);
	box-shadow: 0 0 0 3px var(--lg-focus-ring);
}

.lg-form .lg-field > svg {
	color: #8a94a6;
	flex: none;
}

.lg-form .lg-field input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: 0;
	outline: none;
	background: transparent;
	font-size: 14px;
	color: #111827;
}

.lg-form .lg-field input::-ms-reveal,
.lg-form .lg-field input::-ms-clear {
	display: none;
}

.lg-form .lg-eye {
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #64748b;
	cursor: pointer;
}

.lg-form .lg-eye:hover {
	background: var(--lg-primary-soft);
	color: var(--lg-primary-dark);
}

.lg-form .lg-err {
	font-size: 14px;
	color: #dc2626;
}

.lg-form .lg-row {
	display: flex;
	justify-content: flex-end;
	margin-top: 4px;
}

/* Hàng Ghi nhớ đăng nhập (trái) | Quên mật khẩu (phải) */
.lg-form .lg-row.lg-row-split {
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 10px;
}

.lg-form .lg-remember {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 14px;
	color: #334155;
	cursor: pointer;
	user-select: none;
}

/* Ô chọn cùng kiểu với ô nhập: viền xám, đang chọn viền xanh; đã chọn nền xanh */
.lg-form .lg-remember input {
	appearance: none;
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	border: 1px solid #d5dce6;
	border-radius: 6px;
	background: #fff center / 14px no-repeat;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.lg-form .lg-remember:hover input {
	border-color: var(--lg-focus);
}

.lg-form .lg-remember input:focus-visible {
	border-color: var(--lg-focus);
	outline: none;
	box-shadow: 0 0 0 3px var(--lg-focus-ring);
}

.lg-form .lg-remember input:checked {
	border-color: var(--lg-primary);
	background-color: var(--lg-primary);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
}

@media (forced-colors: active) {
	.lg-form .lg-remember input {
		appearance: auto;
	}
}

.lg-form .lg-link {
	border: 0;
	background: none;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--lg-primary);
	text-decoration: none;
	cursor: pointer;
}

.lg-form .lg-link:hover {
	text-decoration: underline;
}

.lg-form .lg-btn {
	height: 44px;
	margin-top: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: 10px;
	font-size: 14.5px;
	font-weight: 650;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, box-shadow .15s ease;
}

.lg-form .lg-btn.primary {
	background: var(--lg-primary);
	color: #fff;
	box-shadow: 0 6px 16px rgba(13, 110, 253, .26);
}

.lg-form .lg-btn.primary:hover:not(:disabled) {
	background: var(--lg-primary-hover);
}

.lg-form .lg-btn:disabled {
	opacity: .7;
	cursor: default;
}

.lg-form .lg-alt {
	margin-top: 14px;
	text-align: center;
	font-size: 14px;
	color: #5b6577;
}

.lg-form .lg-alt a {
	font-weight: 600;
	color: var(--lg-primary);
	cursor: pointer;
}

/* Màn hẹp: khối nhận diện thu thành dải logo trên form */
@media (max-width: 760px) {
	.lg-card {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.lg-brand {
		padding: 18px 24px;
	}

	.lg-rings, .lg-app {
		display: none;
	}

	.lg-head h1 {
		font-size: 26px;
	}

	.lg-form {
		padding: 28px 24px;
	}
}

.lg-form .field-validation-error {
	font-size: 14px;
	color: #dc2626;
}

.lg-form .lg-field:has(.input-validation-error) {
	border-color: #dc2626;
}

.lg-form .lg-link:disabled {
	color: #8a94a6;
	cursor: default;
	text-decoration: none;
}

.lg-form .alert {
	margin: 0 0 10px;
	padding: 10px 12px;
	font-size: 14px;
}

.lg-form .lg-eye .ic-on, .lg-form .lg-eye.is-on .ic-off {
	display: none;
}

.lg-form .lg-eye.is-on .ic-on {
	display: inline;
}
