/*
 * ZUBI CMS WP — Login Page (Flat)
 * Cột trái: tông tối xanh navy + hiệu ứng quầng sáng (glow) chuyển động.
 * Cột phải: nền trắng phẳng (form đăng nhập gốc của WordPress).
 */

:root {
	--cat-accent: #3b5bdb;
	--cat-accent-hover: #3250c4;
	--cat-bg: #fbfcfe;
	--cat-bg-elevated: #fbfcfe;
	--cat-bg-card: #ffffff;
	--cat-border: #e2e6ef;
	--cat-border-soft: #ebeef4;
	--cat-text: #1b2333;
	--cat-text-muted: #5b6472;
	--cat-text-faint: #8a93a3;

	/* Tông riêng cho cột trái — gradient xanh dương rõ rệt, sáng ở góc trên
	   (gần logo/tiêu đề) và đậm dần xuống góc dưới, giống ảnh mẫu đăng nhập
	   ZUBI CMS thật — KHÔNG dùng chung với --cat-text/--cat-bg ở trên vì cột
	   phải cần chữ tối trên nền trắng, còn cột trái cần chữ sáng trên nền
	   xanh, 2 hướng ngược nhau trên cùng 1 trang. */
	/* Xanh navy đậm (~#03115a), gradient rất nhẹ quanh 1 tông để nền gần như
	   phẳng, chỉ đủ chiều sâu cho hiệu ứng chuyển động. */
	--cat-left-bg-1: #0a1c6e;
	--cat-left-bg-2: #03115a;
	--cat-left-bg-3: #020b45;
	--cat-left-text: #eef1f8;
	--cat-left-text-muted: #b6c0dc;
	--cat-left-text-faint: #8e9ac0;
}

body.login,
body.login input,
body.login select,
body.login button {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.login {
	background: var( --cat-bg );
	padding-top: 0;
	position: relative;
	overflow-x: hidden;
}

/*
 * Hiệu ứng ánh sáng (glow) — chỉ đặt ở CỘT TRÁI (nền tối), quầng sáng mờ mới
 * nổi bật; cột phải nền trắng phẳng nên không cần hiệu ứng này.
 * overflow:hidden trên cột trái để quầng sáng không tràn ra ngoài viewport.
 */
.cat-login-left {
	position: relative;
	overflow: hidden;
}

.cat-login-left::before,
.cat-login-left::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
}

.cat-login-left::before {
	top: -220px;
	left: -180px;
	width: 640px;
	height: 640px;
	filter: blur( 110px );
	background: radial-gradient( circle, rgba( 160, 185, 255, 0.18 ), transparent 70% );
	animation: cat-glow-drift-a 12s ease-in-out infinite;
}

/* Quầng sáng phụ ở cột trái — thêm 1 nguồn sáng thứ 2 lệch nhịp với quầng
   chính để tạo cảm giác "lung linh", nhiều lớp ánh sáng chuyển động chậm
   thay vì chỉ 1 khối tĩnh. */
.cat-login-left::after {
	bottom: -180px;
	right: -140px;
	width: 480px;
	height: 480px;
	filter: blur( 100px );
	background: radial-gradient( circle, rgba( 110, 150, 240, 0.22 ), transparent 70% );
	animation: cat-glow-drift-c 9s ease-in-out infinite;
}

/* Quầng sáng thứ 3, nhỏ + nhanh hơn — bay lượn quanh khu vực giữa cột, tăng
   cảm giác "chuyển động" hiện đại thay vì chỉ 2 khối lớn đứng yên gần góc. */
.cat-login-badge {
	position: relative;
}

.cat-login-left .cat-login-features::before {
	content: '';
	position: absolute;
	top: -60px;
	left: 40%;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	filter: blur( 90px );
	pointer-events: none;
	z-index: 0;
	background: radial-gradient( circle, rgba( 180, 200, 255, 0.08 ), transparent 70% );
	animation: cat-glow-drift-b 15s ease-in-out infinite;
}

@keyframes cat-glow-drift-a {
	0%, 100% {
		transform: translate( 0, 0 ) scale( 1 );
		opacity: 0.85;
	}
	50% {
		transform: translate( 60px, 40px ) scale( 1.15 );
		opacity: 1;
	}
}

@keyframes cat-glow-drift-b {
	0%, 100% {
		transform: translate( 0, 0 ) scale( 0.9 );
		opacity: 0.6;
	}
	50% {
		transform: translate( -50px, 35px ) scale( 1.2 );
		opacity: 1;
	}
}

@keyframes cat-glow-drift-c {
	0%, 100% {
		transform: translate( 0, 0 ) scale( 0.95 );
		opacity: 0.7;
	}
	50% {
		transform: translate( -35px, -28px ) scale( 1.15 );
		opacity: 1;
	}
}

/* ==========================================================================
   Lớp hiệu ứng nền cột trái (.cat-login-fx) — chỉ trang trí, nằm dưới nội
   dung (z-index 0), không nhận chuột. Giữ độ mờ thấp để sống động nhưng
   không tranh chú ý với chữ.
   ========================================================================== */

.cat-login-left > .cat-login-fx {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.cat-login-fx > span {
	position: absolute;
	display: block;
}

/* Lưới mờ trôi chậm theo đường chéo, mask tỏa tròn để mờ dần ra các mép. */
.cat-login-fx-grid {
	inset: -64px;
	background-image:
		linear-gradient( rgba( 255, 255, 255, 0.05 ) 1px, transparent 1px ),
		linear-gradient( 90deg, rgba( 255, 255, 255, 0.05 ) 1px, transparent 1px );
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient( ellipse at 30% 40%, #000 20%, transparent 75% );
	mask-image: radial-gradient( ellipse at 30% 40%, #000 20%, transparent 75% );
	animation: cat-fx-grid-drift 24s linear infinite;
}

@keyframes cat-fx-grid-drift {
	from { transform: translate( 0, 0 ); }
	to   { transform: translate( 64px, 64px ); }
}

/* Các vòng quỹ đạo đồng tâm ở góc dưới phải, xoay ngược chiều nhau. Mỗi
   vòng có 1 "vệ tinh" nhỏ (::after) chạy theo viền. */
.cat-login-fx-ring {
	right: -160px;
	bottom: -160px;
	border-radius: 50%;
	border: 1px solid rgba( 170, 195, 255, 0.12 );
}

.cat-login-fx-ring::after {
	content: '';
	position: absolute;
	top: 50%;
	left: -4px;
	width: 7px;
	height: 7px;
	margin-top: -3.5px;
	border-radius: 50%;
	background: #b9ccff;
	box-shadow: 0 0 10px 2px rgba( 150, 180, 255, 0.55 );
}

.cat-login-fx-ring--1 {
	width: 360px;
	height: 360px;
	animation: cat-fx-spin 26s linear infinite;
}

.cat-login-fx-ring--2 {
	width: 540px;
	height: 540px;
	right: -250px;
	bottom: -250px;
	border-style: dashed;
	border-color: rgba( 170, 195, 255, 0.09 );
	animation: cat-fx-spin 40s linear infinite reverse;
}

.cat-login-fx-ring--3 {
	width: 720px;
	height: 720px;
	right: -340px;
	bottom: -340px;
	border-color: rgba( 170, 195, 255, 0.06 );
	animation: cat-fx-spin 60s linear infinite;
}

.cat-login-fx-ring--3::after {
	width: 5px;
	height: 5px;
	margin-top: -2.5px;
	left: -3px;
	opacity: 0.7;
}

@keyframes cat-fx-spin {
	to { transform: rotate( 360deg ); }
}

/* Kim cương + mạng vòng tròn có chấm (giống banner Dashboard): nằm GIỮA cột
   trái, to và MỜ chìm vào nền (dưới lớp chữ) để chữ vẫn đọc rõ; trôi nhẹ
   lên xuống, mạng lưới xoay chậm, chấm nối nhấp nháy. */
.cat-login-gem-art {
	position: absolute;
	top: 50%;
	left: 50%;
	width: min( 560px, 85% );
	height: auto;
	opacity: 0.13;
	transform: translate( -50%, -50% );
	animation: cat-login-gem-float 8s ease-in-out infinite;
}

.cat-login-gem-art .cat-login-net,
.cat-login-gem-art .cat-login-net-inner {
	transform-origin: 130px 92px;
	animation: cat-fx-spin 48s linear infinite;
}

.cat-login-gem-art .cat-login-net-inner {
	animation-duration: 30s;
	animation-direction: reverse;
}

.cat-login-gem-art .cat-login-net-node {
	animation: cat-login-node-pulse 2.8s ease-in-out infinite;
}

.cat-login-gem-art .cat-login-net-node:nth-of-type( 4 ) { animation-delay: -0.5s; }
.cat-login-gem-art .cat-login-net-node:nth-of-type( 5 ) { animation-delay: -1s; }
.cat-login-gem-art .cat-login-net-node:nth-of-type( 6 ) { animation-delay: -1.5s; }
.cat-login-gem-art .cat-login-net-node:nth-of-type( 7 ) { animation-delay: -2s; }
.cat-login-gem-art .cat-login-net-node:nth-of-type( 8 ) { animation-delay: -2.4s; }

.cat-login-gem {
	animation: cat-login-gem-shine 3.6s ease-in-out infinite;
}

@keyframes cat-login-gem-float {
	0%, 100% { transform: translate( -50%, -50% ); }
	50%      { transform: translate( -50%, calc( -50% - 12px ) ); }
}

@keyframes cat-login-node-pulse {
	0%, 100% { opacity: 0.65; }
	50%      { opacity: 1; filter: drop-shadow( 0 0 4px rgba( 255, 255, 255, 0.8 ) ); }
}

@keyframes cat-login-gem-shine {
	0%, 100% { filter: drop-shadow( 0 0 4px rgba( 170, 235, 255, 0.35 ) ) brightness( 1 ); }
	50%      { filter: drop-shadow( 0 0 14px rgba( 190, 240, 255, 0.85 ) ) brightness( 1.12 ); }
}

@media ( prefers-reduced-motion: reduce ) {
	.cat-login-gem-art,
	.cat-login-gem-art *,
	.cat-login-gem {
		animation: none !important;
	}
}

/* Vệt sáng mảnh quét chéo qua cột, lặp lại thưa (nghỉ phần lớn chu kỳ). */
.cat-login-fx-sweep {
	top: -50%;
	left: -60%;
	width: 40%;
	height: 200%;
	background: linear-gradient( 90deg, transparent, rgba( 200, 215, 255, 0.07 ), transparent );
	transform: rotate( 20deg ) translateX( 0 );
	animation: cat-fx-sweep 11s ease-in-out infinite;
}

@keyframes cat-fx-sweep {
	0%, 55% { transform: rotate( 20deg ) translateX( 0 ); opacity: 0; }
	60%     { opacity: 1; }
	95%     { opacity: 1; }
	100%    { transform: rotate( 20deg ) translateX( 480% ); opacity: 0; }
}

/* Hạt sáng bay lên từ đáy, mỗi hạt lệch vị trí/kích thước/tốc độ riêng. */
.cat-login-fx-dot {
	bottom: -12px;
	left: var( --x, 50% );
	width: var( --s, 4px );
	height: var( --s, 4px );
	border-radius: 50%;
	background: rgba( 200, 215, 255, 0.75 );
	box-shadow: 0 0 8px rgba( 160, 190, 255, 0.6 );
	opacity: 0;
	animation: cat-fx-rise var( --d, 14s ) linear var( --delay, 0s ) infinite;
}

.cat-login-fx-dot:nth-of-type(1)  { --x: 6%;  --s: 3px; --d: 16s; --delay: -2s; }
.cat-login-fx-dot:nth-of-type(2)  { --x: 14%; --s: 5px; --d: 19s; --delay: -9s; }
.cat-login-fx-dot:nth-of-type(3)  { --x: 22%; --s: 2px; --d: 13s; --delay: -5s; }
.cat-login-fx-dot:nth-of-type(4)  { --x: 30%; --s: 4px; --d: 21s; --delay: -14s; }
.cat-login-fx-dot:nth-of-type(5)  { --x: 38%; --s: 3px; --d: 15s; --delay: -1s; }
.cat-login-fx-dot:nth-of-type(6)  { --x: 46%; --s: 2px; --d: 18s; --delay: -11s; }
.cat-login-fx-dot:nth-of-type(7)  { --x: 54%; --s: 5px; --d: 23s; --delay: -6s; }
.cat-login-fx-dot:nth-of-type(8)  { --x: 61%; --s: 3px; --d: 14s; --delay: -8s; }
.cat-login-fx-dot:nth-of-type(9)  { --x: 68%; --s: 2px; --d: 17s; --delay: -3s; }
.cat-login-fx-dot:nth-of-type(10) { --x: 75%; --s: 4px; --d: 20s; --delay: -16s; }
.cat-login-fx-dot:nth-of-type(11) { --x: 82%; --s: 3px; --d: 12s; --delay: -7s; }
.cat-login-fx-dot:nth-of-type(12) { --x: 88%; --s: 2px; --d: 16s; --delay: -12s; }
.cat-login-fx-dot:nth-of-type(13) { --x: 93%; --s: 4px; --d: 22s; --delay: -4s; }
.cat-login-fx-dot:nth-of-type(14) { --x: 97%; --s: 2px; --d: 15s; --delay: -10s; }

@keyframes cat-fx-rise {
	0%   { transform: translate( 0, 0 ); opacity: 0; }
	10%  { opacity: 0.8; }
	50%  { transform: translate( 18px, -55vh ); }
	85%  { opacity: 0.5; }
	100% { transform: translate( -10px, -110vh ); opacity: 0; }
}

/* Nội dung cột trái hiện dần lên khi tải trang (so le từng khối). */
.cat-login-left > .cat-login-badge,
.cat-login-left > .cat-login-heading,
.cat-login-left > .cat-login-desc,
.cat-login-feature {
	animation: cat-fx-fade-up 0.7s cubic-bezier( 0.2, 0.7, 0.2, 1 ) both;
}

.cat-login-left > .cat-login-heading { animation-delay: 0.08s; }
.cat-login-left > .cat-login-desc    { animation-delay: 0.16s; }
.cat-login-feature:nth-child(1)      { animation-delay: 0.26s; }
.cat-login-feature:nth-child(2)      { animation-delay: 0.34s; }
.cat-login-feature:nth-child(3)      { animation-delay: 0.42s; }
.cat-login-feature:nth-child(4)      { animation-delay: 0.50s; }

@keyframes cat-fx-fade-up {
	from { opacity: 0; transform: translateY( 14px ); }
	to   { opacity: 1; transform: none; }
}

/* Icon tính năng "thở" nhẹ khi rê chuột vào dòng tính năng. */
.cat-login-feature-icon {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cat-login-feature:hover .cat-login-feature-icon {
	transform: translateY( -2px ) scale( 1.06 );
	box-shadow: 0 6px 16px rgba( 10, 20, 60, 0.35 );
}

@media ( prefers-reduced-motion: reduce ) {
	.cat-login-left,
	.cat-login-left::before,
	.cat-login-left::after,
	.cat-login-left .cat-login-features::before,
	.cat-login-fx > span,
	.cat-login-fx-ring::after,
	.cat-login-left > .cat-login-badge,
	.cat-login-left > .cat-login-heading,
	.cat-login-left > .cat-login-desc,
	.cat-login-feature {
		animation: none;
	}

	.cat-login-fx-dot,
	.cat-login-fx-sweep {
		display: none !important;
	}
}

.cat-login-left > * {
	position: relative;
	z-index: 1;
}

/* Logo mặc định của WordPress bị thay bằng khối thương hiệu riêng
   (.cat-login-brand) trong cột phải, nên ẩn hẳn đi. */
body.login #login h1.wp-login-logo {
	display: none;
}

/* ==========================================================================
   Bố cục 2 cột: trái giới thiệu thương hiệu/tính năng, phải là form đăng
   nhập gốc của WordPress (không đụng vào logic xử lý đăng nhập).
   ========================================================================== */

.cat-login-wrap {
	display: flex;
	min-height: 100vh;
	width: 100%;
}

/*
 * KHÔNG dùng justify-content:center riêng từng cột — 2 cột có chiều cao nội
 * dung khác nhau (trái nhiều tính năng hơn phải) nên mỗi bên tự căn giữa sẽ
 * ra 2 điểm giữa khác nhau, nhìn lệch. Cho cả 2 cột bắt đầu từ cùng 1 mốc
 * trên xuống (flex-start + padding-top cố định) để luôn thẳng hàng.
 */
.cat-login-left {
	flex: 1 1 50%;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: 12vh min( 8vw, 90px ) 60px;
	box-sizing: border-box;
	background: linear-gradient( 120deg, var( --cat-left-bg-1 ) 0%, var( --cat-left-bg-2 ) 55%, var( --cat-left-bg-3 ) 100% );
	background-size: 240% 240%;
	animation: cat-left-bg-pan 18s ease-in-out infinite;
}

@keyframes cat-left-bg-pan {
	0%, 100% {
		background-position: 0% 40%;
	}
	50% {
		background-position: 100% 60%;
	}
}

.cat-login-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba( 147, 197, 253, 0.1 );
	border: 1px solid rgba( 147, 197, 253, 0.24 );
	color: #a9cdf7;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 20px;
}

.cat-login-badge::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #a9cdf7;
}

/* WordPress có sẵn 1 số quy tắc CSS áp cho mọi h1 trong body.login (vốn để
   ẩn chữ của logo mặc định bằng text-indent âm) — ghi đè về 0 để h1 của ta
   không bị "thụt" vào trong theo quy tắc đó. */
/* .login h1 (core) có specificity class+element cao hơn 1 class đơn của ta
   (.cat-login-heading) nên text-align:center của WordPress từng thắng —
   thêm !important để chắc chắn không bị đè bởi bất kỳ quy tắc h1 nào khác. */
.cat-login-heading {
	color: var( --cat-left-text );
	font-size: 36px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 14px;
	padding: 0;
	text-indent: 0;
	text-align: left !important;
	white-space: nowrap;
}

.cat-login-desc {
	color: var( --cat-left-text-muted );
	font-size: 14px;
	line-height: 1.6;
	max-width: 440px;
	margin: 0 0 36px;
}

.cat-login-features {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 440px;
}

.cat-login-feature {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.cat-login-feature-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
}

.cat-login-feature-icon svg {
	width: 18px;
	height: 18px;
}

/* Màu icon dạng pastel, nền mờ — đủ phân biệt từng tính năng nhưng không
   "neon" chói trên nền navy. */
.cat-login-feature-icon--a {
	background: rgba( 125, 211, 252, 0.1 );
	color: #93cbe8;
}

.cat-login-feature-icon--b {
	background: rgba( 134, 239, 172, 0.1 );
	color: #93d4a8;
}

.cat-login-feature-icon--c {
	background: rgba( 165, 180, 252, 0.12 );
	color: #aab4ee;
}

.cat-login-feature-icon--d {
	background: rgba( 252, 165, 165, 0.1 );
	color: #e3a7a7;
}

.cat-login-feature-text strong {
	display: block;
	color: var( --cat-left-text );
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 2px;
}

.cat-login-feature-text p {
	margin: 0;
	color: var( --cat-left-text-faint );
	font-size: 12.5px;
	line-height: 1.5;
}

/*
 * Cột phải: khối nội dung rộng cố định (360px), căn giữa CẢ 2 chiều trong
 * cột, căn trái bên trong khối — logo, tiêu đề, form và các link cùng 1 mép
 * trái nên nhìn gọn, thẳng hàng. Footer bản quyền ghim ở đáy cột.
 */
.cat-login-right {
	--cat-form-w: 360px;
	flex: 1 1 50%;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 48px 24px 72px;
	box-sizing: border-box;
	background: var( --cat-bg-elevated );
	border-left: 1px solid var( --cat-border-soft );
}

.cat-login-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	width: var( --cat-form-w );
	max-width: 100%;
	margin-bottom: 32px;
}

/* WordPress dành sẵn khoảng đệm phía trên #login cho logo mặc định (giờ đã
   ẩn) — bỏ khoảng đệm đó để logo thương hiệu và form nằm sát nhau, không bị
   khoảng trống "trôi nổi" như trước. */
body.login #login {
	width: var( --cat-form-w );
	max-width: 100%;
	padding: 0;
	margin: 0;
}

/* Phẳng — nền màu đặc (không gradient), không đổ bóng. */
.cat-login-logo-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 14px;
	flex-shrink: 0;
	background: var( --cat-accent );
	color: #fff;
}

.cat-login-logo-badge svg {
	width: 28px;
	height: 28px;
}

.cat-login-brand-name {
	color: var( --cat-text );
	font-size: 23px;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.cat-login-brand-sub {
	margin-top: 2px;
	color: var( --cat-text-faint );
	font-size: 13.5px;
	line-height: 1.3;
}

.cat-login-intro {
	width: var( --cat-form-w );
	max-width: 100%;
	margin-bottom: 24px;
}

.cat-login-title {
	margin: 0 0 6px;
	padding: 0;
	color: var( --cat-text );
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

.cat-login-subtitle {
	margin: 0;
	color: var( --cat-text-muted );
	font-size: 14px;
	line-height: 1.55;
}

.cat-login-footer {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 24px;
	margin: 0;
	text-align: center;
	color: var( --cat-text-faint );
	font-size: 12px;
}

/* Link về zubi.cloud — giữ nguyên màu chữ mờ, chỉ đổi màu nhấn khi rê chuột. */
.cat-login-footer a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.cat-login-footer a:hover,
.cat-login-footer a:focus {
	color: var( --cat-accent );
	box-shadow: none;
	outline: none;
}

@media screen and ( max-width: 900px ) {
	.cat-login-left {
		display: none;
	}

	.cat-login-right {
		flex: 1 1 100%;
		border-left: none;
	}
}

/*
 * Bỏ khung/viền bao quanh cả form — để trực tiếp trên nền cột phải, các ô
 * nhập tự có viền riêng là đủ, trông thoáng/rộng hơn hẳn kiểu "thẻ trong
 * thẻ" trước đây. Đồng thời ép thành cột dọc bằng flex thay vì để WordPress
 * dùng float mặc định — khi bỏ khung card bao ngoài, kiểu float lộ ra lệch
 * lạc, xấu (ô nhớ mật khẩu/nút gửi bị dồn sai chỗ).
 */
.login form {
	background: transparent;
	border: none;
	box-shadow: none;
	border-radius: 0;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* Core ép ô mật khẩu dùng font monospace — trả về font chung cho đồng bộ
   với ô email. */
.login input.password-input,
.login .wp-pwd input {
	font-family: inherit;
}

/* Bỏ label hiển thị, dùng placeholder trong ô nhập (JS thêm placeholder ở
   enqueue_login_assets) — vẫn giữ label cho trình đọc màn hình, chỉ ẩn thị
   giác (sr-only), không dùng display:none để không mất khả năng tiếp cận. */
.login label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	white-space: nowrap;
	border: 0;
}

.login .user-pass-wrap .wp-pwd {
	margin-top: 0;
}

.login form > p {
	margin: 0;
}

.login input[type="text"],
.login input[type="password"] {
	box-sizing: border-box;
	width: 100%;
	height: 46px;
	margin: 0;
	background: #fff;
	border: 1px solid var( --cat-border );
	border-radius: 10px;
	color: var( --cat-text );
	padding: 0 14px 0 40px;
	font-size: 14px;
	line-height: 46px;
	box-shadow: 0 1px 2px rgba( 16, 24, 40, 0.04 );
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login input[type="text"]:hover,
.login input[type="password"]:hover {
	border-color: #cfd5e1;
}

/* Chừa chỗ bên phải cho nút ẩn/hiện mật khẩu. */
.login .wp-pwd input[type="text"],
.login .wp-pwd input[type="password"] {
	padding-right: 44px;
}

.login .wp-pwd .wp-hide-pw {
	position: absolute;
	top: 50%;
	right: 5px;
	transform: translateY( -50% );
	width: 36px;
	height: 36px;
	min-height: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	border-radius: 8px;
	box-shadow: none;
	color: var( --cat-text-faint );
}

.login .wp-pwd .wp-hide-pw:hover,
.login .wp-pwd .wp-hide-pw:focus {
	color: var( --cat-accent );
	background: rgba( 59, 91, 219, 0.06 );
	box-shadow: none;
	outline: none;
}

.login .wp-pwd .wp-hide-pw .dashicons {
	top: 0;
	width: 18px;
	height: 18px;
	font-size: 18px;
}

/* Checkbox "Ghi nhớ đăng nhập" dùng màu xanh lá khi tick — đủ để phân biệt
   với tông xanh dương chủ đạo, giống ảnh mẫu. Trang login không có class
   .wp-core-ui nên checkbox là control gốc của trình duyệt, accent-color áp
   trực tiếp được, không cần vẽ lại icon. */
.login input[type="checkbox"] {
	accent-color: #2f9e5e;
}

/* Icon nhỏ trong ô nhập (email/khoá) — đặt trên wrapper <p>/.wp-pwd vì
   WordPress không cho chèn HTML trực tiếp vào bên trong input. */
#loginform > p:first-of-type,
#lostpasswordform > p:first-of-type,
.login .wp-pwd {
	position: relative;
}

#loginform > p:first-of-type::before,
#lostpasswordform > p:first-of-type::before,
.login .wp-pwd::before {
	content: '';
	position: absolute;
	left: 13px;
	top: 50%;
	transform: translateY( -50% );
	width: 16px;
	height: 16px;
	background-repeat: no-repeat;
	background-size: contain;
	pointer-events: none;
	opacity: 0.6;
	z-index: 1;
}

/*
 * Màu stroke (#3b5bdb) PHẢI khớp tay với --cat-accent ở :root phía trên —
 * SVG nhúng kiểu data-URI trong background-image không đọc được CSS custom
 * property (giới hạn của CSS, không phải sơ suất). Đổi tông màu thương hiệu
 * sau này nhớ sửa luôn 2 chỗ bên dưới.
 */
#loginform > p:first-of-type::before,
#lostpasswordform > p:first-of-type::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b5bdb' stroke-width='1.6'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");
}

.login .wp-pwd::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b5bdb' stroke-width='1.6'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
}

.login input[type="text"]::placeholder,
.login input[type="password"]::placeholder {
	color: var( --cat-text-faint );
}

.login input[type="text"]:focus,
.login input[type="password"]:focus {
	border-color: var( --cat-accent );
	box-shadow: 0 0 0 3px rgba( 59, 91, 219, 0.14 );
	outline: none;
}

/* Trình duyệt tự "autofill" hay ép nền trắng/vàng vào ô nhập, đè cả CSS của
   theme — dùng box-shadow inset để lấp đúng nền phẳng hiện tại, giữ đúng
   màu chữ. */
.login input:-webkit-autofill,
.login input:-webkit-autofill:hover,
.login input:-webkit-autofill:focus {
	-webkit-text-fill-color: var( --cat-text );
	box-shadow: 0 0 0 1000px #fff inset;
	transition: background-color 9999s ease-in-out 0s;
}

.login form::before,
.login form::after {
	content: none !important;
}

.login .forgetmenot {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	float: none;
	width: auto;
}

.login .forgetmenot input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
}

/* Icon "?" (toggletip tiếng Anh của core) cạnh "Ghi nhớ đăng nhập" — rối
   mắt và lệch ngôn ngữ, ẩn đi cho gọn. */
.login .forgetmenot .wp-tooltip {
	display: none;
}

/* Hàng "Ghi nhớ đăng nhập" (trái) + "Quên mật khẩu?" (phải) — JS ở
   close_login_right_wrapper() gom 2 phần tử này vào .cat-login-row. */
.login .cat-login-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 2px 0 4px;
}

.login .cat-login-row .wp-login-lost-password {
	color: var( --cat-accent );
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.login .cat-login-row .wp-login-lost-password:hover {
	color: var( --cat-accent-hover );
	text-decoration: underline;
}

.login p.submit {
	margin: 0;
	float: none;
	width: auto;
}

.login .button-primary {
	display: block;
	width: 100%;
	height: 46px;
	min-height: 0;
	background: var( --cat-accent );
	border: 1px solid var( --cat-accent );
	text-shadow: none;
	box-shadow: 0 1px 2px rgba( 16, 24, 40, 0.08 ), 0 4px 12px rgba( 59, 91, 219, 0.18 );
	padding: 0 16px;
	font-size: 14px;
	font-weight: 600;
	line-height: 44px;
	text-align: center;
	float: none;
	border-radius: 10px;
	transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.login .button-primary:hover,
.login .button-primary:focus {
	background: var( --cat-accent-hover );
	border-color: var( --cat-accent-hover );
	box-shadow: 0 1px 2px rgba( 16, 24, 40, 0.08 ), 0 6px 16px rgba( 59, 91, 219, 0.24 );
}

.login .button-primary:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba( 59, 91, 219, 0.25 );
}

.login .button-primary:active {
	transform: translateY( 1px );
}

.login .forgetmenot label {
	position: static;
	width: auto;
	height: auto;
	overflow: visible;
	clip: auto;
	margin: 0;
	color: var( --cat-text-muted );
	font-size: 13px;
}

/* #nav còn dùng ở màn Quên/Đặt lại mật khẩu (link "Đăng nhập") — core có
   padding 0 24px làm link bị thụt vào, bỏ đi để thẳng mép với form. */
body.login #login #nav {
	margin: 20px 0 0;
	padding: 0;
	text-align: center;
	color: var( --cat-text-faint );
	font-size: 13px;
}

.login #nav a {
	color: var( --cat-accent );
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
}

.login #nav a:hover {
	color: var( --cat-accent-hover );
	text-decoration: underline;
}

.login .message,
.login .notice,
.login #login_error {
	margin: 0 0 20px;
	padding: 11px 14px;
	background: #eef2fd;
	border: 1px solid #d5def8;
	border-left: 3px solid var( --cat-accent );
	border-radius: 10px;
	box-shadow: none;
	color: var( --cat-text );
	font-size: 13px;
	line-height: 1.5;
}

.login #login_error,
.login .notice-error {
	background: #fdf1f1;
	border-color: #f3d3d3;
	border-left-color: #d64545;
}

/* Loại bỏ thành phần ít giá trị cho 1 trang quản trị nội bộ: đổi ngôn ngữ
   (site chỉ dùng 1 ngôn ngữ), link quay lại trang chủ. Đoạn hướng dẫn dài ở
   màn "Quên mật khẩu" được chặn từ gốc bằng filter login_message (PHP),
   không phải ẩn bằng CSS — vì nó nằm ngoài <form>, không phải bên trong. */
body.login .language-switcher,
body.login #backtoblog {
	display: none;
}

/* ==========================================================================
   Popup "phiên đăng nhập hết hạn" (wp-login.php?interim-login=1, hiển thị
   trong iframe #wp-auth-check ở wp-admin): chỉ còn cột phải — chừa lề đều
   2 bên, nội dung căn từ trên xuống, bỏ footer cho gọn.
   ========================================================================== */
body.interim-login {
	min-height: 0;
	background: var( --cat-bg-elevated );
}

body.interim-login .cat-login-wrap {
	min-height: 0;
}

body.interim-login .cat-login-left,
body.interim-login .cat-login-footer {
	display: none !important;
}

body.interim-login .cat-login-right {
	flex: 1 1 100%;
	justify-content: flex-start;
	padding: 32px 32px 24px !important;
	border-left: none;
}

body.interim-login .cat-login-right > *,
body.interim-login #login {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.interim-login #login {
	padding: 0 !important;
	margin-top: 0 !important;
}

body.interim-login .cat-login-intro {
	margin-bottom: 18px;
}
