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

body.login {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 24px 16px;
	background:
		radial-gradient(circle at 7% 0%, rgba(96, 165, 250, .18), transparent 16%),
		radial-gradient(circle at 76% 82%, rgba(37, 99, 235, .14), transparent 14%),
		radial-gradient(circle at 98% 55%, rgba(124, 58, 237, .1), transparent 18%),
		linear-gradient(135deg, #f8fbff 0%, #eef5ff 48%, #f8fbff 100%);
	color: #1f2937;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.login:before,
body.login:after {
	position: fixed;
	z-index: 0;
	pointer-events: none;
	content: "";
}

body.login:before {
	left: 0;
	top: 0;
	width: 340px;
	height: 340px;
	border-radius: 0 0 70% 0;
	background: linear-gradient(145deg, rgba(219, 234, 254, .72), rgba(255, 255, 255, 0));
}

body.login:after {
	right: -120px;
	bottom: -120px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: linear-gradient(145deg, rgba(191, 219, 254, .4), rgba(224, 231, 255, .18));
}

#login {
	position: relative;
	z-index: 1;
	width: min(440px, calc(100vw - 32px));
	padding: 0;
	margin: 0 auto;
}

.login h1 {
	position: absolute;
	left: 42px;
	right: 42px;
	top: 22px;
	z-index: 2;
	margin: 0;
}

.login h1 a {
	width: 176px;
	height: 86px;
	margin: 0 auto 18px;
	background-image: var(--pcgh-login-logo);
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	pointer-events: auto;
}

.login h1:after {
	display: block;
	margin: 0;
	color: #172033;
	font-size: 30px;
	font-weight: 900;
	line-height: 1.2;
	text-align: center;
	content: var(--pcgh-login-title);
}

.login h1:before {
	position: absolute;
	left: 50%;
	top: 158px;
	color: #7b8798;
	font-size: 14px;
	text-align: center;
	white-space: nowrap;
	content: var(--pcgh-login-subtitle);
	transform: translateX(-50%);
}

.login form {
	margin: 0;
	padding: 226px 42px 30px;
	border: 1px solid rgba(226, 232, 240, .94);
	border-radius: 8px;
	background: rgba(255, 255, 255, .86);
	box-shadow: 0 18px 50px rgba(15, 23, 42, .14);
	backdrop-filter: blur(18px);
}

.login #loginform,
.login #lostpasswordform,
.login #registerform {
	position: relative;
}

.login form > p:first-child:before,
.login .user-pass-wrap:before {
	display: block;
	margin: 0 0 10px;
	color: #334155;
	font-size: 14px;
	font-weight: 700;
}

.login form > p:first-child label,
.login .user-pass-wrap label {
	color: #334155;
	font-size: 14px;
	font-weight: 700;
}

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
	min-height: 48px;
	margin-top: 8px;
	padding: 0 14px;
	border: 1px solid #d7dee9;
	border-radius: 4px;
	background: rgba(255, 255, 255, .92);
	box-shadow: none;
	color: #172033;
	font-size: 15px;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
	outline: none;
}

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

.login .forgetmenot label {
	color: #566174;
	font-size: 14px;
}

.login input[type="checkbox"] {
	width: 18px;
	height: 18px;
	border-color: #d7dee9;
	border-radius: 4px;
	box-shadow: none;
}

.login .button.wp-hide-pw {
	top: 8px;
	right: 8px;
	width: 36px;
	height: 36px;
	min-width: 36px;
	color: #172033;
}

.wp-core-ui.login .button-primary {
	width: 100%;
	min-height: 46px;
	margin-top: 16px;
	border: 0;
	border-radius: 4px;
	background: #2563eb;
	box-shadow: none;
	font-size: 15px;
	font-weight: 800;
	text-shadow: none;
}

.wp-core-ui.login .button-primary:hover,
.wp-core-ui.login .button-primary:focus {
	background: #1d4ed8;
	box-shadow: none;
}

.login #nav,
.login #backtoblog {
	margin: 18px 0 0;
	padding: 0;
	color: #64748b;
	font-size: 14px;
	text-align: center;
}

.login #nav a,
.login #backtoblog a,
.login .privacy-policy-page-link a {
	color: #2563eb;
	font-weight: 700;
	text-decoration: none;
}

.login #nav a:hover,
.login #backtoblog a:hover,
.login .privacy-policy-page-link a:hover {
	color: #1d4ed8;
}

.login .language-switcher {
	margin-top: 26px;
	text-align: center;
}

.login .language-switcher label {
	display: inline-flex;
	align-items: center;
	margin-right: 10px;
	color: #64748b;
}

.login .language-switcher select {
	min-width: 230px;
	min-height: 42px;
	border-color: #d7dee9;
	border-radius: 4px;
	background: rgba(255, 255, 255, .9);
	color: #172033;
}

.login .language-switcher .button {
	min-height: 42px;
	border-color: #2563eb;
	border-radius: 4px;
	color: #2563eb;
	font-weight: 700;
}

.login .message,
.login .notice,
.login #login_error {
	margin: 0 0 16px;
	border-left-color: #2563eb;
	border-radius: 6px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.login .privacy-policy-page-link {
	margin: 18px 0 0;
	text-align: center;
}

.pcgh-login-copyright {
	position: relative;
	z-index: 1;
	margin-top: 14px;
	color: #7b8798;
	font-size: 13px;
	line-height: 1.8;
	text-align: center;
}

.pcgh-login-copyright span {
	color: #94a3b8;
}

@media (max-width: 520px) {
	body.login {
		padding: 14px 12px;
	}

	.login form {
		padding-top: 216px;
		padding-right: 24px;
		padding-bottom: 26px;
		padding-left: 24px;
	}

	.login h1 {
		left: 24px;
		right: 24px;
		top: 18px;
	}

	.login h1 a {
		width: 164px;
		height: 108px;
	}

	.login h1:before {
		top: 188px;
	}
}
