/**
 * ANT Core — Trang đăng nhập riêng (TD-008 Đợt B).
 * Render độc lập, không phụ thuộc theme, không nạp ant-admin.css.
 * Token theo Juno §3.3 khai trong :root — KHÔNG hard-code hex ngoài :root
 * (trừ --ant-primary do Cài đặt ghi đè inline + màu chữ trên nền primary).
 * Layout: .auth 2 cột (màn 11/17 + bước 2FA); quên/đặt lại mật khẩu dùng
 * bố cục giữa trang .auth-center (ngoại lệ có chủ ý của mockup v3).
 * Breakpoint thống nhất: 1024 / 768 / 390 / 375.
 */
:root {
	--amber: #FF9E2C;
	--cyan: #40E0FF;
	--cyan-dk: #0B7C99;
	--navy: #0B1533;
	--navy-rgb: 11, 21, 51;
	--ivory: #FFF9F0;
	--ink: #1A2140;
	--line: #EFE6D8;
	--amber-dk: #B96F00;
	--ghost-bd: #D8CDB8;
	--danger: #D64545;
	--err-text: #8C2B2B;
	--err-bg: #FDECEC;
	--err-bd: #F3C2C2;
	--ok: #12805C;
	--ok-bg: #E4F5EC;
	--muted: #5B6478;
	--panel-note: #9FB3CC;
	--panel-text: #C7D2E4;
	--ant-primary: var(--amber);
	/* TD-083 (Core 1.26.0): font brand M6 -- file doc lap nen khai bao cuc bo. */
	--font-head: "Space Grotesk", "Be Vietnam Pro", sans-serif;
	--font-body: "Be Vietnam Pro", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
.ant-login-body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font-body);
	background: var(--ivory);
	color: var(--ink);
}

/* ---------- Layout 2 cột (màn 11 / 17 / bước 2FA) ---------- */
.auth { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 100vh; }
.auth-l { position: relative; background: var(--navy); color: var(--ivory); overflow: hidden; }
.auth-l .in { position: relative; z-index: 2; padding: 44px 42px; display: flex; flex-direction: column; height: 100%; }
.auth-lockup { height: 46px; width: auto; align-self: flex-start; }
.auth-l h2 { font-family: var(--font-head); color: var(--ivory); font-size: 28px; line-height: 1.3; margin: auto 0 14px; font-weight: 700; }
.auth-l p { color: var(--panel-text); max-width: 420px; line-height: 1.6; margin: 0; }
.auth-l .auth-note { margin-top: 18px; font-size: 13px; color: var(--panel-note); }
.auth-r { background: var(--ivory); display: flex; align-items: center; justify-content: center; padding: 44px 30px; }
.auth-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 32px 30px;
	width: 100%;
	max-width: 430px;
	box-shadow: 0 18px 44px rgba(var(--navy-rgb), .08);
}
.auth-card h2 { font-family: var(--font-head); font-size: 23px; margin: 0 0 6px; font-weight: 700; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; line-height: 1.55; }
.ant-tag {
	display: inline-block; font-size: 11.5px; font-weight: 700;
	letter-spacing: .05em; text-transform: uppercase;
	border-radius: 6px; padding: 2px 8px; margin-bottom: 8px;
	background: var(--ivory); color: var(--amber-dk);
	border: 1px solid var(--line);
}
.ant-tag.is-danger { background: var(--err-bg); color: var(--err-text); border-color: var(--err-bd); }

/* ---------- Bố cục giữa trang (màn 12 — ngoại lệ của v3) ---------- */
.auth-center { max-width: 430px; margin: 0 auto; padding: 52px 16px 40px; }
.auth-center-head { text-align: center; margin-bottom: 30px; }
.auth-center-logo { height: 44px; width: auto; margin: 0 auto 12px; display: block; }
.auth-center-head h1 { font-family: var(--font-head); font-size: 26px; margin: 0 0 8px; font-weight: 700; }
.auth-center-head p { color: var(--muted); margin: 0; line-height: 1.6; font-size: 14px; }
.auth-center .auth-card { margin: 0 auto; }

/* ---------- Field / nút ---------- */
.ant-login-field { margin-bottom: 15px; }
.ant-login-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.ant-login-field input[type="text"],
.ant-login-field input[type="password"],
.ant-login-field input[type="email"] {
	width: 100%; padding: 10px 13px; font-size: 14px; color: var(--ink);
	background: #fff; border: 1px solid var(--ghost-bd); border-radius: 10px; outline: none;
}
.ant-login-field input:focus { border-color: var(--ant-primary); box-shadow: 0 0 0 3px rgba(var(--navy-rgb), .08); }
.ant-pass-wrap { position: relative; }
.ant-pass-wrap input { padding-right: 64px; }
.ant-pass-toggle {
	position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
	border: 0; background: transparent; cursor: pointer;
	font-size: 12.5px; font-weight: 700; color: var(--cyan-dk); padding: 6px 8px;
}
.ant-login-field.has-error input { border-color: var(--danger); }
.emsg { display: none; font-size: 12.5px; color: var(--err-text); margin: 5px 0 0; }
.emsg.show { display: block; }
.ant-login-row { display: flex; justify-content: space-between; align-items: center; margin: 13px 0 20px; font-size: 13.5px; }
.ant-login-remember { display: flex; align-items: center; gap: 6px; color: var(--ink); cursor: pointer; }
.ant-login-row a, .ant-login-back a, .ant-login-home a { color: var(--cyan-dk); font-weight: 600; text-decoration: none; }
.ant-login-btn {
	display: block; width: 100%; padding: 11px 22px; font-size: 14.5px; font-weight: 700;
	text-align: center; text-decoration: none; box-sizing: border-box;
	color: var(--ink); background: var(--ant-primary);
	border: 2px solid var(--ant-primary); border-radius: 999px; cursor: pointer;
}
.ant-login-btn:hover { filter: brightness(.97); }
.ant-login-btn-sm { display: inline-block; width: auto; padding: 7px 14px; font-size: 13px; margin-top: 10px; }
.ant-login-btn-sso { background: transparent; color: var(--ink); border-color: var(--ghost-bd); }
.ant-login-btn-sso:disabled { opacity: .55; cursor: not-allowed; }
.ant-login-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--muted); font-size: 12.5px; }
.ant-login-divider::before, .ant-login-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.ant-login-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; text-align: center; }
.ant-login-home { font-size: 13.5px; text-align: center; margin: 14px 0 0; }
.ant-login-back { text-align: center; margin: 14px 0 0; font-size: 13px; }
.ant-login-foot { text-align: center; font-size: 12px; color: var(--muted); margin-top: 20px; }

/* ---------- Thông báo / khối lỗi ---------- */
.ant-login-error, .ant-login-success {
	padding: 10px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; line-height: 1.5;
}
.ant-login-error { background: var(--err-bg); color: var(--err-text); border: 1px solid var(--err-bd); }
.ant-login-success { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-bg); }
.ant-login-expired {
	background: var(--err-bg); border: 1px solid var(--err-bd); color: var(--err-text);
	border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; line-height: 1.55; font-size: 14px;
}
.ant-login-expired p { margin: 6px 0 0; }
.ant-login-expired a { color: var(--err-text); font-weight: 700; }
.ant-login-expired .ant-login-btn { color: var(--ink); }

/* ---------- Responsive (1024 / 768 / 390 / 375) ---------- */
@media (max-width: 1024px) {
	.auth { grid-template-columns: 1fr; }
	.auth-l .in { padding: 30px 24px; }
	.auth-l h2 { font-size: 23px; margin-top: 26px; }
	.auth-r { padding: 30px 16px 40px; }
}
@media (max-width: 768px) {
	.auth-card { padding: 26px 20px; }
	.auth-center { padding-top: 36px; }
}
@media (max-width: 390px) {
	.auth-l .in { padding: 24px 18px; }
	.auth-card { padding: 22px 16px; }
}
