/* Popup đăng nhập / đăng ký nhanh — assets/js/lo-auth-modal.js, inc/lawyer/lw-auth-modal.php */
html.lo-auth-open { overflow: hidden; }
.lo-auth {
	--la-navy: #0f2d5c;
	--la-accent: #12357a;
	--la-red: #d72027;
	--la-ink: #0f172a;
	--la-ink-2: #334155;
	--la-muted: #64748b;
	--la-line: #e2e8f0;
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: var(--lo-font, Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	color: var(--la-ink-2);
}
.lo-auth[hidden] { display: none; }
.lo-auth *, .lo-auth *::before, .lo-auth *::after { box-sizing: border-box; }
.lo-auth__backdrop { position: absolute; inset: 0; background: rgba(10, 20, 45, .66); }
.lo-auth__box {
	position: relative;
	width: min(420px, 100%);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 26px 26px 22px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
	animation: lo-auth-in .22s ease;
}
@keyframes lo-auth-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.lo-auth__close {
	position: absolute; top: 12px; right: 12px;
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border: 0; border-radius: 10px;
	background: #f1f5f9; color: var(--la-ink-2); cursor: pointer;
}
.lo-auth__close:hover { background: #e2e8f0; }
.lo-auth__head { margin-bottom: 16px; text-align: center; }
.lo-auth__badge {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; margin-bottom: 10px; border-radius: 14px;
	background: #eaf0fa; color: var(--la-accent);
}
.lo-auth__head h2 { margin: 0 0 4px; color: var(--la-ink); font-size: 21px; font-weight: 800; line-height: 1.3; }
.lo-auth__reason { margin: 0; color: var(--la-muted); font-size: 14px; line-height: 1.5; }
.lo-auth__tabs {
	display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px;
	margin-bottom: 16px; padding: 4px; border-radius: 12px; background: #f1f5f9;
}
.lo-auth__tabs button {
	height: 38px; border: 0; border-radius: 9px; background: transparent;
	color: var(--la-muted); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer;
}
.lo-auth__tabs button.is-active { background: #fff; color: var(--la-navy); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.lo-auth__msg {
	margin-bottom: 12px; padding: 10px 12px; border-radius: 10px;
	background: #fdecec; color: #b91c1c; font-size: 13.5px; line-height: 1.45;
}
.lo-auth__msg.is-ok { background: #e8f7ee; color: #15803d; }
.lo-auth__msg[hidden] { display: none; }
.lo-auth__form[hidden] { display: none; }
.lo-auth__field { display: block; margin-bottom: 12px; }
.lo-auth__label { display: block; margin-bottom: 6px; color: var(--la-ink); font-size: 13.5px; font-weight: 600; }
.lo-auth__control { position: relative; display: block; }
.lo-auth__control input {
	width: 100%; height: 46px; margin: 0; padding: 0 14px;
	border: 1px solid #cbd5e1; border-radius: 11px; background: #fff;
	color: var(--la-ink); font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1.2;
	box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.lo-auth__control input[type="password"], .lo-auth__control input[name="pwd"], .lo-auth__control input[name="user_pass"] { padding-right: 46px; }
.lo-auth__control input:focus { border-color: var(--la-accent); outline: 0; box-shadow: 0 0 0 3px rgba(18, 53, 122, .13); }
.lo-auth__field.is-invalid input { border-color: var(--la-red); box-shadow: 0 0 0 3px rgba(215, 32, 39, .1); }
.lo-auth__eye {
	position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent;
	color: var(--la-muted); cursor: pointer;
}
.lo-auth__eye:hover { color: var(--la-accent); background: #f1f5f9; }
.lo-auth__err { display: block; margin-top: 5px; color: var(--la-red); font-size: 12.5px; line-height: 1.4; }
.lo-auth__err:empty { display: none; }
.lo-auth__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 16px; font-size: 13.5px; }
.lo-auth__row a, .lo-auth__terms a { color: var(--la-accent); font-weight: 600; text-decoration: none; }
.lo-auth__row a:hover, .lo-auth__terms a:hover { text-decoration: underline; }
.lo-auth__check { display: inline-flex; align-items: center; gap: 7px; color: var(--la-ink-2); cursor: pointer; }
.lo-auth__check input { width: 16px; height: 16px; margin: 0; accent-color: var(--la-accent); }
.lo-auth__hint { margin: -6px 0 14px; color: var(--la-muted); font-size: 12.5px; }
.lo-auth__trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.lo-auth__submit {
	position: relative; display: flex; align-items: center; justify-content: center;
	width: 100%; height: 48px; border: 0; border-radius: 12px; background: var(--la-red);
	color: #fff; font-family: inherit; font-size: 15.5px; font-weight: 700; line-height: 1; cursor: pointer; transition: background .15s ease;
}
.lo-auth__submit:hover { background: #b8181e; }
.lo-auth__submit:disabled { cursor: progress; opacity: .85; }
.lo-auth__submit.is-loading span { visibility: hidden; }
.lo-auth__submit.is-loading::after {
	content: ""; position: absolute; width: 20px; height: 20px;
	border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%;
	animation: lo-auth-spin .7s linear infinite;
}
@keyframes lo-auth-spin { to { transform: rotate(360deg); } }
.lo-auth__or { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--la-muted); font-size: 12.5px; }
.lo-auth__or::before, .lo-auth__or::after { content: ""; flex: 1; height: 1px; background: var(--la-line); }
.lo-auth__google {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	height: 46px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff;
	color: var(--la-ink); font-size: 14.5px; font-weight: 600; text-decoration: none;
}
.lo-auth__google:hover { border-color: var(--la-accent); color: var(--la-ink); }
.lo-auth__terms { margin: 12px 0 0; color: var(--la-muted); font-size: 12.5px; line-height: 1.55; text-align: center; }
@media (max-width: 520px) {
	.lo-auth { align-items: flex-end; padding: 0; }
	.lo-auth__box { width: 100%; max-height: 92vh; padding: 22px 18px 18px; border-radius: 18px 18px 0 0; animation-name: lo-auth-up; }
	@keyframes lo-auth-up { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
	.lo-auth__control input { font-size: 16px; } /* iOS không phóng to khi bấm vào ô */
}
