:root {
	--hx-auth-navy: #10293b;
	--hx-auth-ink: #163043;
	--hx-auth-text: #5d717d;
	--hx-auth-muted: #84969f;
	--hx-auth-green: #15866e;
	--hx-auth-green-dark: #0f705c;
	--hx-auth-line: #dce5e8;
	--hx-auth-fog: #f3f7f8;
	--hx-auth-ease: cubic-bezier(.22, 1, .36, 1);
}

html,
body.login {
	min-height: 100%;
}

body.login.huixin-auth {
	display: grid;
	grid-template-columns: minmax(480px, 48%) minmax(520px, 52%);
	grid-template-rows: minmax(0, 1fr) auto auto;
	align-items: stretch;
	margin: 0;
	background: #fff;
	color: var(--hx-auth-ink);
	font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
	font-size: 14px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body.login * {
	box-sizing: border-box;
}

body.login a {
	color: inherit;
}

.hx-auth-visual {
	position: fixed;
	inset: 0 52% 0 0;
	min-width: 480px;
	overflow: hidden;
	background: var(--hx-auth-navy) var(--hx-auth-photo) 63% 50% / cover no-repeat;
	color: #fff;
}

.hx-auth-visual__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(7, 29, 45, .94), rgba(8, 33, 49, .73) 58%, rgba(10, 36, 50, .42)),
		linear-gradient(0deg, rgba(5, 24, 37, .92), transparent 62%);
}

.hx-auth-visual__inner {
	position: relative;
	z-index: 1;
	display: flex;
	width: min(100% - 80px, 690px);
	height: 100%;
	min-height: 660px;
	margin-inline: auto;
	padding: 46px 0 40px;
	flex-direction: column;
	justify-content: flex-start;
}

.hx-auth-brand {
	display: inline-flex;
	width: fit-content;
	align-items: center;
	gap: 14px;
	color: #fff;
	text-decoration: none;
}

.hx-auth-brand__mark {
	width: 54px;
	height: 54px;
	object-fit: contain;
	filter: drop-shadow(0 7px 18px rgba(0, 0, 0, .18));
}

.hx-auth-brand span,
.hx-auth-brand strong,
.hx-auth-brand small {
	display: block;
}

.hx-auth-brand strong {
	font-size: 23px;
	font-weight: 800;
	line-height: 1.15;
}

.hx-auth-brand small {
	margin-top: 3px;
	color: #d5e4e7;
	font-size: 10px;
	line-height: 1.35;
}

.hx-auth-visual__copy {
	max-width: 570px;
	padding: clamp(110px, 16vh, 210px) 0 40px;
}

.hx-auth-eyebrow,
.hx-auth-intro__eyebrow {
	margin: 0 0 16px;
	color: #8cdbc2;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: .16em;
}

.hx-auth-visual__copy h2 {
	margin: 0;
	color: #fff;
	font-size: clamp(34px, 3.25vw, 54px);
	font-weight: 760;
	line-height: 1.28;
	letter-spacing: 0;
}

.hx-auth-visual__copy > p:not(.hx-auth-eyebrow) {
	max-width: 520px;
	margin: 23px 0 30px;
	color: #cfdee2;
	font-size: 16px;
	line-height: 1.9;
}

.hx-auth-principle {
	margin: 0;
	padding: 25px 0 0;
	border-top: 1px solid rgba(255, 255, 255, .22);
	color: #eaf6f3;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.5;
	letter-spacing: .08em;
}

body.login #login {
	grid-column: 2;
	grid-row: 1;
	align-self: center;
	width: min(100% - 80px, 470px);
	margin: 0 auto;
	padding: 64px 0 44px;
}

body.login #login > h1 {
	margin: 0 0 44px;
	text-align: left;
}

body.login #login > h1 a {
	width: 52px;
	height: 52px;
	margin: 0;
	background: url("assets/huixin-logo-mark.png") center / contain no-repeat;
	filter: none;
}

.hx-auth-intro {
	margin-bottom: 30px;
}

.hx-auth-intro__eyebrow {
	margin-bottom: 9px;
	color: var(--hx-auth-green);
}

.hx-auth-intro h1 {
	margin: 0;
	color: var(--hx-auth-ink);
	font-size: 36px;
	font-weight: 780;
	line-height: 1.25;
	letter-spacing: 0;
}

.hx-auth-intro__description {
	margin: 11px 0 0;
	color: var(--hx-auth-text);
	font-size: 14px;
	line-height: 1.7;
}

body.login form {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
}

body.login form .input,
body.login input[type="text"],
body.login input[type="email"],
body.login input[type="password"] {
	width: 100%;
	min-height: 54px;
	margin: 7px 0 20px;
	padding: 12px 15px;
	border: 1px solid #cddbe0;
	border-radius: 2px;
	background: #fbfcfc;
	box-shadow: none;
	color: var(--hx-auth-ink);
	font-size: 15px;
	line-height: 1.5;
	transition: border-color .2s, box-shadow .2s, background .2s;
}

body.login form .input:hover,
body.login input[type="text"]:hover,
body.login input[type="email"]:hover,
body.login input[type="password"]:hover {
	border-color: #a9c6c1;
	background: #fff;
}

body.login form .input:focus,
body.login input[type="text"]:focus,
body.login input[type="email"]:focus,
body.login input[type="password"]:focus {
	border-color: var(--hx-auth-green);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(21, 134, 110, .09);
	outline: 0;
}

body.login label {
	color: #344f5d;
	font-size: 13px;
	font-weight: 700;
}

body.login .forgetmenot {
	display: flex;
	align-items: center;
	min-height: 46px;
}

body.login .forgetmenot label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--hx-auth-text);
	font-weight: 500;
}

body.login input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	border: 1px solid #b9cbd0;
	border-radius: 2px;
	box-shadow: none;
}

body.login input[type="checkbox"]:checked {
	border-color: var(--hx-auth-green);
	background: var(--hx-auth-green);
}

body.login input[type="checkbox"]:checked::before {
	width: 20px;
	height: 20px;
	margin: -2px 0 0 -3px;
	color: #fff;
}

body.login .wp-pwd {
	position: relative;
}

body.login .wp-pwd .input {
	padding-right: 52px;
}

body.login .button.wp-hide-pw {
	top: 7px;
	right: 4px;
	width: 46px;
	height: 54px;
	border: 0;
	color: #65808a;
}

body.login .button.wp-hide-pw:focus {
	border: 0;
	box-shadow: none;
	outline: 2px solid var(--hx-auth-green);
	outline-offset: -6px;
}

body.login .submit {
	clear: both;
	padding-top: 6px;
}

body.login .button-primary {
	display: inline-flex;
	width: 100%;
	min-height: 52px;
	align-items: center;
	justify-content: center;
	float: none;
	border: 1px solid var(--hx-auth-green);
	border-radius: 2px;
	background: var(--hx-auth-green);
	box-shadow: none;
	color: #fff;
	font-size: 15px;
	font-weight: 750;
	line-height: 1.4;
	text-shadow: none;
	transition: background .25s, border-color .25s, transform .25s var(--hx-auth-ease);
}

body.login .button-primary:hover,
body.login .button-primary:focus {
	border-color: var(--hx-auth-green-dark);
	background: var(--hx-auth-green-dark);
	color: #fff;
	transform: translateY(-1px);
}

body.login .button-primary:focus {
	box-shadow: 0 0 0 4px rgba(21, 134, 110, .15);
}

body.login #nav {
	display: flex;
	margin: 25px 0 0;
	padding: 22px 0 0;
	justify-content: center;
	border-top: 1px solid var(--hx-auth-line);
	color: var(--hx-auth-muted);
	font-size: 13px;
	text-align: center;
}

body.login #nav a,
body.login #backtoblog a,
.hx-auth-support a {
	color: var(--hx-auth-green);
	font-weight: 700;
	text-decoration: none;
}

body.login #nav a:hover,
body.login #backtoblog a:hover,
.hx-auth-support a:hover {
	color: var(--hx-auth-green-dark);
	text-decoration: underline;
}

body.login #backtoblog {
	position: fixed;
	top: 34px;
	right: 40px;
	margin: 0;
	padding: 0;
	font-size: 12px;
}

body.login #login_error,
body.login .message,
body.login .success {
	margin: 0 0 24px;
	padding: 14px 16px;
	border: 1px solid #d9e5e7;
	border-left: 3px solid var(--hx-auth-green);
	background: #f3f8f7;
	box-shadow: none;
	color: #395762;
	font-size: 13px;
	line-height: 1.65;
}

body.login #login_error {
	border-color: #eed9d6;
	border-left-color: #bf5b4f;
	background: #fff7f6;
	color: #72423c;
}

body.login #login_error a,
body.login .message a {
	color: inherit;
	font-weight: 750;
}

body.login .privacy-policy-page-link {
	margin: 22px 0 0;
	font-size: 12px;
}

body.login .privacy-policy-page-link a {
	color: var(--hx-auth-muted);
}

.hx-auth-support {
	display: flex;
	grid-column: 2;
	grid-row: 2;
	width: min(100% - 80px, 470px);
	margin: 0 auto;
	padding: 4px 0 18px;
	justify-content: space-between;
	gap: 16px;
	color: var(--hx-auth-muted);
	font-size: 12px;
}

.hx-auth-support a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.hx-auth-copyright {
	grid-column: 2;
	grid-row: 3;
	align-self: center;
	justify-self: end;
	margin: 0 34px 24px 0;
	color: #a0adb3;
	font-size: 10px;
}

body.login .language-switcher {
	position: static;
	grid-column: 2;
	grid-row: 3;
	align-self: center;
	justify-self: center;
	margin: 0 0 24px;
}

body.login .language-switcher form {
	display: flex;
	align-items: center;
	gap: 8px;
}

body.login .language-switcher select {
	min-height: 34px;
	border-color: var(--hx-auth-line);
	background: #fff;
	color: var(--hx-auth-text);
	font-size: 12px;
}

body.login .language-switcher .button {
	min-height: 34px;
	border-color: var(--hx-auth-line);
	background: #fff;
	color: var(--hx-auth-ink);
}

body.login .dashicons-translation {
	color: var(--hx-auth-muted);
}

body.login .indicator-hint {
	color: var(--hx-auth-muted);
	font-size: 12px;
}

body.login #pass-strength-result {
	margin: -13px 0 18px;
	border: 0;
	background: var(--hx-auth-fog);
	font-size: 12px;
}

@media (min-width: 821px) and (max-height: 800px) {
	body.login #login {
		padding: 22px 0 16px;
	}

	body.login #login > h1 {
		margin-bottom: 20px;
	}

	body.login #login > h1 a {
		width: 44px;
		height: 44px;
	}

	.hx-auth-intro {
		margin-bottom: 19px;
	}

	.hx-auth-intro__description {
		margin-top: 7px;
	}

	body.login form .input,
	body.login input[type="text"],
	body.login input[type="email"],
	body.login input[type="password"] {
		min-height: 50px;
		margin: 6px 0 14px;
	}

	body.login .button.wp-hide-pw {
		top: 6px;
		height: 50px;
	}

	body.login #nav {
		margin-top: 17px;
		padding-top: 15px;
	}
}

@media (max-width: 1100px) {
	body.login.huixin-auth {
		grid-template-columns: minmax(370px, 42%) minmax(500px, 58%);
	}

	.hx-auth-visual {
		right: 58%;
		min-width: 370px;
	}

	.hx-auth-visual__inner {
		width: calc(100% - 52px);
	}

	.hx-auth-visual__copy h2 {
		font-size: 38px;
	}

}

@media (max-width: 820px) {
	body.login.huixin-auth {
		display: block;
		min-width: 0;
		padding: 0 24px 40px;
	}

	.hx-auth-visual {
		position: relative;
		inset: auto;
		width: calc(100% + 48px);
		min-width: 0;
		height: 185px;
		margin-left: -24px;
		background-position: 63% 48%;
	}

	.hx-auth-visual__inner {
		width: calc(100% - 48px);
		min-height: 0;
		padding: 23px 0;
	}

	.hx-auth-brand__mark {
		width: 42px;
		height: 42px;
	}

	.hx-auth-brand strong {
		font-size: 18px;
	}

	.hx-auth-visual__copy {
		display: none;
	}

	body.login #login {
		width: min(100%, 480px);
		padding: 36px 0 25px;
	}

	body.login #login > h1 {
		display: none;
	}

	body.login #backtoblog {
		position: absolute;
		top: 27px;
		right: 24px;
		z-index: 3;
	}

	body.login #backtoblog a {
		color: #fff;
	}

	.hx-auth-support {
		width: min(100%, 480px);
	}

	.hx-auth-copyright {
		margin: 25px auto 0;
		text-align: center;
	}

	body.login .language-switcher {
		margin: 20px auto 0;
	}
}

@media (max-width: 480px) {
	body.login.huixin-auth {
		padding-inline: 18px;
	}

	.hx-auth-visual {
		width: calc(100% + 36px);
		height: 154px;
		margin-left: -18px;
	}

	.hx-auth-visual__inner {
		width: calc(100% - 36px);
	}

	.hx-auth-brand small {
		display: none;
	}

	body.login #backtoblog {
		top: 25px;
		right: 18px;
	}

	.hx-auth-intro {
		margin-bottom: 25px;
	}

	.hx-auth-intro h1 {
		font-size: 30px;
	}

	body.login form .input,
	body.login input[type="text"],
	body.login input[type="email"],
	body.login input[type="password"] {
		min-height: 52px;
	}

	.hx-auth-support {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.login *,
	body.login *::before,
	body.login *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
