/* Trang đăng nhập — máy tính: 2 cột; điện thoại (<= 860px): khối thương hiệu phía trên + thẻ form */
:root {
	--lg-accent: #0B6574;
	--lg-accent-dark: #084C57;
	--lg-ink: #13262B;
	--lg-ink-2: #52646A;
	--lg-ink-3: #6B7C81;
	--lg-line: #C9D3D6;
	--lg-line-2: #DCE3E5;
	--lg-ground: #F3F6F7;
	--lg-surface: #FFFFFF;
	--lg-danger-bg: #FDECEA;
	--lg-danger: #9B1C14;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
	margin: 0;
	font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: var(--lg-ink);
	background: var(--lg-ground);
	-webkit-font-smoothing: antialiased;
}
a { color: var(--lg-accent); }
a:hover { color: var(--lg-accent-dark); }
svg { stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.lg-page { min-height: 100vh; display: flex; }

/* Cột thương hiệu */
.lg-brand {
	position: relative; overflow: hidden;
	flex: 0 0 44%; max-width: 620px;
	padding: 56px 64px;
	background: var(--lg-accent); color: #FFFFFF;
	display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.lg-ecg { position: absolute; left: -40px; bottom: 12%; width: 120%; height: auto; stroke: rgba(255,255,255,.14); stroke-width: 3; pointer-events: none; }
.lg-logo { position: relative; display: flex; align-items: center; gap: 12px; }
.lg-logo-mark { width: 44px; height: 44px; border-radius: 12px; background: #FFFFFF; color: var(--lg-accent); display: flex; align-items: center; justify-content: center; flex: none; }
.lg-logo-mark svg { width: 24px; height: 24px; stroke-width: 2.4; }
.lg-logo-text { display: flex; flex-direction: column; }
.lg-logo-text strong { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.lg-logo-text small { font-size: 13px; opacity: .8; }
.lg-pitch { position: relative; display: flex; flex-direction: column; gap: 28px; }
.lg-pitch h1 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.lg-pitch ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; font-size: 16px; }
.lg-pitch li { display: flex; gap: 12px; align-items: center; }
.lg-pitch li svg { width: 20px; height: 20px; flex: none; }
.lg-copy { position: relative; font-size: 13px; opacity: .75; }

/* Cột form */
.lg-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.lg-form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 20px; }
.lg-head { display: flex; flex-direction: column; gap: 6px; }
.lg-head h2 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
.lg-head p { margin: 0; font-size: 15px; color: var(--lg-ink-2); }

.lg-alert { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--lg-danger-bg); color: var(--lg-danger); font-size: 14px; }
.lg-alert svg { width: 18px; height: 18px; flex: none; }

.lg-field { display: flex; flex-direction: column; gap: 8px; }
.lg-field label { font-size: 14px; font-weight: 600; }
.lg-input {
	display: flex; align-items: center; gap: 10px;
	height: 48px; padding: 0 4px 0 14px;
	border: 1px solid var(--lg-line); border-radius: 10px; background: var(--lg-surface);
	transition: border-color .15s, box-shadow .15s;
}
.lg-input:focus-within { border-color: var(--lg-accent); box-shadow: 0 0 0 3px rgba(11,101,116,.18); }
.lg-input > svg { width: 18px; height: 18px; color: var(--lg-ink-3); flex: none; }
.lg-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--lg-ink); }
.lg-input input::placeholder { color: #7A8A8F; }
.lg-eye { width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--lg-ink-2); cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; }
.lg-eye:hover { background: var(--lg-ground); }
.lg-eye[aria-pressed="true"] { color: var(--lg-accent); }
.lg-eye svg { width: 20px; height: 20px; }

.lg-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.lg-row a { font-weight: 500; text-decoration: none; }
.lg-check { display: flex; gap: 8px; align-items: center; cursor: pointer; min-height: 44px; }
.lg-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--lg-accent); }

.lg-btn {
	height: 50px; border: 0; border-radius: 10px;
	background: var(--lg-accent); color: #FFFFFF;
	font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
	transition: background .15s;
}
.lg-btn:hover { background: var(--lg-accent-dark); }
.lg-btn:disabled { opacity: .7; cursor: progress; }
.lg-btn:focus-visible, .lg-btn-outline:focus-visible, .lg-eye:focus-visible, .lg-row a:focus-visible { outline: 3px solid rgba(11,101,116,.35); outline-offset: 2px; }

.lg-sep { display: flex; align-items: center; gap: 12px; color: var(--lg-ink-3); font-size: 13px; }
.lg-sep::before, .lg-sep::after { content: ""; flex: 1; height: 1px; background: var(--lg-line-2); }

.lg-btn-outline {
	min-height: 48px; padding: 8px 14px;
	border: 1px solid var(--lg-line); border-radius: 10px; background: var(--lg-surface);
	display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
	font-size: 15px; font-weight: 600; color: var(--lg-ink); text-decoration: none;
}
.lg-btn-outline:hover { color: var(--lg-ink); border-color: var(--lg-ink-3); }
.lg-btn-outline svg { width: 18px; height: 18px; flex: none; }

.lg-note { margin: 0; display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 12px; color: var(--lg-ink-3); }
.lg-note svg { width: 14px; height: 14px; }

/* Điện thoại / máy tính bảng dọc */
@media (max-width: 860px) {
	.lg-page { flex-direction: column; }
	.lg-brand { flex: none; max-width: none; padding: 32px 24px 60px; gap: 20px; }
	.lg-ecg { display: none; }
	.lg-logo-mark { width: 40px; height: 40px; border-radius: 11px; }
	.lg-logo-text small { display: none; }
	.lg-logo-text strong { font-size: 18px; }
	.lg-pitch h1 { font-size: 22px; }
	.lg-pitch ul, .lg-copy { display: none; }
	.lg-main { align-items: flex-start; padding: 0 16px 32px; margin-top: -32px; }
	.lg-form { max-width: 480px; margin: 0 auto; padding: 24px 20px; background: var(--lg-surface); border-radius: 16px; box-shadow: 0 6px 24px rgba(19,38,43,.08); position: relative; gap: 18px; }
	.lg-head h2 { font-size: 24px; }
	.lg-btn { height: 52px; border-radius: 12px; }
}
