/* Peoria Park District WordPress authentication screens. */
body.login {
	--ppd-purple: #3a4b89;
	--ppd-purple-dark: #2b3662;
	--ppd-green: #37b24e;
	--ppd-surface: #ffffff;
	--ppd-text: #464646;
	--ppd-muted: #626b75;
	--ppd-border: #d7dce2;
	--ppd-focus: #3a4b89;
	background-color: var(--ppd-purple-dark);
	background-image:
		linear-gradient(135deg, rgba(43, 54, 98, 0.96), rgba(58, 75, 137, 0.9)),
		url("../img/trees-bg.png");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	color: var(--ppd-text);
	font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
	min-height: 100%;
}

body.login::before {
	background: linear-gradient(90deg, var(--ppd-green), #78c84f, var(--ppd-green));
	content: "";
	height: 7px;
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 10;
}

body.login #login {
	box-sizing: border-box;
	max-width: calc(100% - 32px);
	padding: clamp(40px, 8vh, 80px) 0 32px;
	width: 410px;
}

body.login h1 {
	margin: 0 0 24px;
}

body.login h1 a {
	background-image: var(--ppd-login-logo);
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	height: 92px;
	margin: 0 auto;
	width: min(300px, 85%);
}

body.login form {
	background: var(--ppd-surface);
	border: 0;
	border-radius: 12px;
	box-shadow: 0 18px 50px rgba(10, 18, 45, 0.28);
	box-sizing: border-box;
	margin-top: 0;
	overflow: visible;
	padding: 30px;
}

body.login label {
	color: var(--ppd-text);
	font-size: 14px;
	font-weight: 700;
}

body.login .input,
body.login input[type="text"],
body.login input[type="email"],
body.login input[type="password"],
body.login input[type="tel"],
body.login input[type="number"] {
	background: #fff;
	border: 2px solid var(--ppd-border);
	border-radius: 8px;
	box-shadow: none;
	box-sizing: border-box;
	color: #242424;
	font-size: 18px;
	line-height: 1.35;
	min-height: 48px;
	padding: 9px 12px;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body.login .input:focus,
body.login input[type="text"]:focus,
body.login input[type="email"]:focus,
body.login input[type="password"]:focus,
body.login input[type="tel"]:focus,
body.login input[type="number"]:focus,
body.login select:focus {
	border-color: var(--ppd-focus);
	box-shadow: 0 0 0 3px rgba(58, 75, 137, 0.2);
	outline: 0;
}

body.login input[type="checkbox"] {
	border: 2px solid var(--ppd-border);
	border-radius: 4px;
	box-shadow: none;
	height: 18px;
	width: 18px;
}

body.login input[type="checkbox"]:checked,
body.login input[type="checkbox"]:focus {
	border-color: var(--ppd-green);
}

body.login.wp-core-ui .button-primary {
	background: var(--ppd-login-button-bg, #287f3a);
	border: 2px solid var(--ppd-login-button-border, #287f3a);
	border-radius: 8px;
	box-shadow: none;
	color: var(--ppd-login-button-text, #fff);
	font-size: 15px;
	font-weight: 700;
	min-height: 42px;
	padding: 0 22px;
	text-shadow: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body.login.wp-core-ui .button-primary:hover,
body.login.wp-core-ui .button-primary:focus {
	background: var(--ppd-login-button-hover-bg, var(--ppd-purple));
	border-color: var(--ppd-login-button-hover-bg, var(--ppd-purple));
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
	color: var(--ppd-login-button-hover-text, #fff);
	transform: translateY(-1px);
}

body.login .button.wp-hide-pw {
	color: var(--ppd-purple);
	min-height: 48px;
}

body.login .button.wp-hide-pw:hover,
body.login .button.wp-hide-pw:focus {
	color: var(--ppd-green);
}

body.login #login_error,
body.login .message,
body.login .success {
	background: #fff;
	border: 0;
	border-left: 6px solid var(--ppd-purple);
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(10, 18, 45, 0.22);
	color: var(--ppd-text);
	line-height: 1.55;
	margin-bottom: 20px;
	padding: 14px 16px;
}

body.login #login_error {
	border-left-color: #b4232f;
}

body.login .success {
	border-left-color: var(--ppd-green);
}

body.login #nav,
body.login #backtoblog,
body.login .privacy-policy-page-link,
body.login .language-switcher {
	color: #fff;
	font-size: 14px;
	margin-left: 0;
	margin-right: 0;
	text-align: center;
}

body.login #nav a,
body.login #backtoblog a,
body.login .privacy-policy-page-link a {
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

body.login #nav a:hover,
body.login #nav a:focus,
body.login #backtoblog a:hover,
body.login #backtoblog a:focus,
body.login .privacy-policy-page-link a:hover,
body.login .privacy-policy-page-link a:focus {
	color: #b8ecaa;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.login .language-switcher form {
	align-items: center;
	background: rgba(255, 255, 255, 0.96);
	border-radius: 8px;
	box-shadow: 0 8px 22px rgba(10, 18, 45, 0.18);
	display: inline-flex;
	gap: 8px;
	padding: 8px;
}

body.login .language-switcher select,
body.login .language-switcher .button {
	min-height: 36px;
}

body.login .dashicons-translation {
	color: var(--ppd-purple);
}

body.login .notice p,
body.login #login_error p,
body.login .message p {
	margin: 0.5em 0;
}

body.login a:focus,
body.login button:focus,
body.login input:focus,
body.login select:focus {
	outline: 3px solid transparent;
	outline-offset: 2px;
}

@media (max-width: 480px) {
	body.login {
		background-attachment: scroll;
	}

	body.login #login {
		padding-top: 42px;
	}

	body.login h1 a {
		height: 72px;
	}

	body.login form {
		border-radius: 10px;
		padding: 24px 20px;
	}

	body.login .forgetmenot,
	body.login .submit {
		float: none;
	}

	body.login .submit .button-primary {
		margin-top: 14px;
		width: 100%;
	}
}

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