/**
 * wp-login.php (core login / lost password / reset) — matches the site's
 * navy + gold design (2026-09-16). Enqueued via login_enqueue_scripts.
 */

body.login {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background:
		radial-gradient( 60% 50% at 10% 0%, rgba( 255, 176, 32, 0.28 ), transparent 60% ),
		radial-gradient( 60% 60% at 100% 100%, rgba( 58, 134, 224, 0.32 ), transparent 60% ),
		linear-gradient( 180deg, #0b1d3a 0%, #071329 50%, #040a16 100% );
	background-attachment: fixed;
	color: #eaf4ff;
	font-family: 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	overflow-x: hidden;
}

/* Floating emoji decoration. */
body.login::before,
body.login::after {
	position: fixed;
	font-size: 64px;
	line-height: 1;
	opacity: 0.18;
	pointer-events: none;
	animation: psp-login-float 12s ease-in-out infinite;
}

body.login::before {
	content: "🏏";
	top: 12%;
	left: 8%;
}

body.login::after {
	content: "🏆";
	bottom: 12%;
	right: 8%;
	animation-delay: -6s;
}

@keyframes psp-login-float {
	0%, 100% { transform: translateY( 0 ) rotate( -8deg ); }
	50% { transform: translateY( -24px ) rotate( 8deg ); }
}

#login {
	width: min( 400px, 92vw );
	padding: 5vh 0 4vh;
}

/* Replace the WordPress logo with the site name. */
.login h1 a {
	width: auto;
	height: auto;
	margin: 0 0 18px;
	padding: 0;
	background: none;
	text-indent: 0;
	font-family: 'Outfit', 'PT Sans', sans-serif;
	font-size: 34px;
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.02em;
	background-image: linear-gradient( 100deg, #ffffff, #ffe9b3 45%, #ffb020 80%, #ff8a5c );
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	overflow: visible;
	outline: none;
	box-shadow: none;
}

.login h1 a::before {
	content: "⚡";
	display: block;
	margin: 0 auto 10px;
	font-size: 38px;
	-webkit-text-fill-color: initial;
}

.login .psp-login-hello {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 14px;
	background: rgba( 255, 176, 32, 0.12 );
	border: 1px solid rgba( 255, 176, 32, 0.35 );
	color: #eaf4ff;
	font-size: 14px;
	text-align: center;
}

.login form,
.login #loginform,
.login #lostpasswordform,
.login #resetpassform {
	margin-top: 0;
	padding: 28px 26px 24px;
	border: 1px solid rgba( 255, 255, 255, 0.14 );
	border-radius: 24px;
	background:
		radial-gradient( 120% 60% at 50% 0%, rgba( 255, 176, 32, 0.12 ), transparent 60% ),
		linear-gradient( 180deg, rgba( 16, 38, 70, 0.92 ), rgba( 8, 20, 42, 0.94 ) );
	box-shadow: 0 40px 80px -40px rgba( 0, 0, 0, 0.9 ), inset 0 1px 0 rgba( 255, 255, 255, 0.08 );
	animation: psp-login-rise 0.8s cubic-bezier( 0.16, 1, 0.3, 1 ) both;
}

@keyframes psp-login-rise {
	from { opacity: 0; transform: translateY( 18px ); }
	to { opacity: 1; transform: none; }
}

.login label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba( 234, 244, 255, 0.6 );
}

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
	min-height: 50px;
	margin-top: 6px;
	padding: 10px 14px;
	border: 1.5px solid rgba( 255, 255, 255, 0.14 );
	border-radius: 14px;
	background: rgba( 4, 12, 28, 0.6 );
	color: #f1f6ff;
	font-size: 16px;
	box-shadow: none;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus {
	border-color: #ffb020;
	box-shadow: 0 0 0 4px rgba( 255, 176, 32, 0.2 );
	outline: none;
}

.login .button.wp-hide-pw {
	min-height: 50px;
	margin-top: 6px;
	color: #ffd66b;
}

.login .button.wp-hide-pw:focus {
	border-color: #ffb020;
	box-shadow: 0 0 0 2px rgba( 255, 176, 32, 0.4 );
}

.login .forgetmenot label {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 600;
	font-size: 13.5px;
	color: rgba( 234, 244, 255, 0.75 );
}

.login input[type="checkbox"] {
	accent-color: #ffb020;
	border-color: rgba( 255, 255, 255, 0.3 );
	background: rgba( 4, 12, 28, 0.6 );
}

.login .button-primary,
.wp-core-ui .button-primary {
	min-height: 46px !important;
	padding: 0 22px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: linear-gradient( 100deg, #ffd66b, #ffb020 50%, #ff8a5c ) !important;
	color: #1a1200 !important;
	font-family: 'Outfit', 'PT Sans', sans-serif;
	font-size: 15px !important;
	font-weight: 800 !important;
	text-shadow: none !important;
	box-shadow: 0 14px 30px -12px rgba( 255, 140, 60, 0.75 ) !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login .button-primary:hover,
.login .button-primary:focus {
	transform: translateY( -2px );
	box-shadow: 0 20px 36px -12px rgba( 255, 140, 60, 0.85 ) !important;
}

.login #nav,
.login #backtoblog {
	text-align: center;
	padding: 0;
}

.login #nav a,
.login #backtoblog a,
.login .privacy-policy-link {
	color: rgba( 234, 244, 255, 0.7 ) !important;
	font-weight: 600;
}

.login #nav a:hover,
.login #backtoblog a:hover {
	color: #ffd66b !important;
}

.login .message,
.login .notice,
.login #login_error {
	border: 1px solid rgba( 255, 255, 255, 0.14 );
	border-left: 4px solid #ffb020;
	border-radius: 14px;
	background: rgba( 10, 24, 48, 0.9 );
	color: #eaf4ff;
	box-shadow: none;
}

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

.login .language-switcher {
	display: none;
}

@media ( prefers-reduced-motion: reduce ) {
	body.login::before,
	body.login::after,
	.login form {
		animation: none !important;
	}
}


/* ---------------------------------------------------------------------
 * Autofill guard (2026-09-24). When the browser fills or previews a saved
 * value it paints its own light field background; our dark fields keep
 * light text, so the typed/filled value turned invisible (reported on the
 * My Account login after entering the username). The inset shadow repaints
 * the dark field and the fill colour keeps the text light. !important is
 * needed to beat WP-Members' ID selectors, which reset box-shadow.
 * ------------------------------------------------------------------- */
:is( .cricket-auth-card, #wpmem_login, #wpmem_reg, .search-form, .search-block, .cricket-search-popup, .cricket-sidebar-search, #loginform, #registerform, #lostpasswordform, #resetpassform ) :is( input, textarea, select ):is( :-webkit-autofill, :autofill ),
:is( .cricket-auth-card, #wpmem_login, #wpmem_reg, .search-form, .search-block, .cricket-search-popup, .cricket-sidebar-search, #loginform, #registerform, #lostpasswordform, #resetpassform ) :is( input, textarea, select ):is( :-webkit-autofill, :autofill ):hover {
	-webkit-text-fill-color: #f1f6ff !important;
	caret-color: #f1f6ff;
	-webkit-box-shadow: 0 0 0 1000px #0b1a33 inset !important;
	box-shadow: 0 0 0 1000px #0b1a33 inset !important;
	transition: background-color 600000s 0s, color 600000s 0s;
}
:is( .cricket-auth-card, #wpmem_login, #wpmem_reg, .search-form, .search-block, .cricket-search-popup, .cricket-sidebar-search, #loginform, #registerform, #lostpasswordform, #resetpassform ) :is( input, textarea, select ):is( :-webkit-autofill, :autofill ):focus {
	-webkit-text-fill-color: #f1f6ff !important;
	-webkit-box-shadow: 0 0 0 1000px #0b1a33 inset, 0 0 0 4px rgba( 255, 176, 32, 0.22 ) !important;
	box-shadow: 0 0 0 1000px #0b1a33 inset, 0 0 0 4px rgba( 255, 176, 32, 0.22 ) !important;
}
