/* Christopher Green Design client portal authentication. */
:root {
	--wfs-login-accent: #49a258;
	--wfs-login-accent-dark: #2b6935;
	--wfs-login-bg: #eef5ef;
	--wfs-login-ink: #17191f;
	--wfs-login-muted: #5c685f;
	--wfs-login-line: rgba(43, 105, 53, .18);
}

body.login {
	display: flex;
	min-height: 100svh;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
	padding: clamp(24px, 6vw, 72px) 20px;
	background:
		radial-gradient(circle at 12% 12%, rgba(73, 162, 88, .14), transparent 29rem),
		radial-gradient(circle at 88% 88%, rgba(43, 105, 53, .09), transparent 25rem),
		var(--wfs-login-bg);
	color: var(--wfs-login-ink);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.login::before {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	background: var(--wfs-login-accent);
	content: "";
}

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

.login #login {
	position: relative;
	z-index: 1;
	width: min(100%, 450px);
	margin: 0;
	padding: clamp(30px, 5vw, 46px);
	border: 1px solid rgba(43, 105, 53, .12);
	border-radius: 18px;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 30px 80px rgba(33, 60, 41, .12), 0 3px 12px rgba(33, 60, 41, .05);
	animation: wfs-login-arrive .55s cubic-bezier(.22, 1, .36, 1) both;
}

.login h1 {
	margin: 0 0 30px;
}

.login h1 a {
	width: 100%;
	height: 48px;
	margin: 0;
	background-position: left center;
	background-size: contain;
}

.wfs-login-intro {
	margin: 0 0 28px;
}

.wfs-login-intro p {
	margin: 0 0 9px;
	color: var(--wfs-login-accent-dark);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .16em;
	line-height: 1.4;
	text-transform: uppercase;
}

.wfs-login-intro h2 {
	margin: 0 0 10px;
	color: var(--wfs-login-ink);
	font-size: clamp(30px, 6vw, 38px);
	font-weight: 630;
	letter-spacing: -.045em;
	line-height: 1.05;
}

.wfs-login-intro div {
	max-width: 35ch;
	color: var(--wfs-login-muted);
	font-size: 15px;
	line-height: 1.6;
}

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

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
	min-height: 50px;
	margin: 8px 0 19px;
	padding: 10px 13px;
	border: 1px solid #ccd7cf;
	border-radius: 8px;
	background: #fbfcfb;
	color: var(--wfs-login-ink);
	font-size: 16px;
	box-shadow: none;
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
	border-color: var(--wfs-login-accent);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(73, 162, 88, .14);
	outline: 0;
}

.login label {
	color: #354039;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
}

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

.login .button.wp-hide-pw {
	top: 8px;
	right: 5px;
	height: 50px;
	color: var(--wfs-login-muted);
}

.login .button.wp-hide-pw:focus {
	border-color: transparent;
	box-shadow: none;
	outline: 2px solid var(--wfs-login-accent);
	outline-offset: -5px;
}

.login .forgetmenot {
	float: none;
	margin: -2px 0 20px;
}

.login .forgetmenot label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

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

.login input[type="checkbox"]:checked {
	border-color: var(--wfs-login-accent-dark);
	background: var(--wfs-login-accent-dark);
}

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

.login .submit {
	margin: 0;
}

.login #loginform .button-primary {
	margin-top: 12px;
}

.wp-core-ui .button-primary {
	float: none;
	width: 100%;
	min-height: 50px;
	border: 1px solid var(--wfs-login-accent-dark);
	border-radius: 8px;
	background: var(--wfs-login-accent-dark);
	color: #fff;
	font-size: 14px;
	font-weight: 750;
	letter-spacing: .01em;
	text-shadow: none;
	box-shadow: none;
	transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
	border-color: #1f5228;
	background: #1f5228;
	color: #fff;
	box-shadow: 0 8px 20px rgba(43, 105, 53, .22);
	transform: translateY(-1px);
}

.wp-core-ui .button-primary:focus {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

.login #nav {
	display: inline-block;
	margin: 24px 0 0;
	padding: 0;
	font-size: 12px;
}

.login #backtoblog {
	display: none;
}

.login #nav a,
.wfs-login-footer a {
	color: var(--wfs-login-accent-dark);
	font-weight: 650;
	text-decoration: none;
	text-underline-offset: 3px;
}

.login #nav a:hover,
.wfs-login-footer a:hover {
	color: #173d1e;
	text-decoration: underline;
}

.login .message,
.login #login_error,
.login .success {
	margin: 0 0 22px;
	padding: 13px 15px;
	border: 0;
	border-left: 3px solid var(--wfs-login-accent);
	border-radius: 7px;
	background: #f4f8f4;
	color: #3d4a41;
	box-shadow: none;
	font-size: 13px;
	line-height: 1.5;
}

.login #login_error {
	border-left-color: #b74b3f;
	background: #fff5f3;
}

.wfs-login-footer {
	display: flex;
	width: min(100%, 450px);
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 16px 0 0;
	padding: 0 10px;
	color: var(--wfs-login-muted);
	font-size: 11px;
}

@keyframes wfs-login-arrive {
	from {
		opacity: 0;
		transform: translateY(14px) scale(.99);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (max-width: 520px) {
	body.login {
		align-items: flex-start;
		padding: 18px 12px;
	}

	.login #login {
		padding: 30px 24px;
		border-radius: 14px;
	}

	.login h1 {
		margin-bottom: 24px;
	}

	.login h1 a {
		height: 42px;
	}

	.login #nav {
		display: block;
		margin-top: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.login #login {
		animation: none;
	}

	.login form .input,
	.login input,
	.wp-core-ui .button-primary {
		transition: none;
	}
}
