/* Uniform Light Theme Login CSS */
body.login {
	/* Dark red gradient background for FMXForLife */
	background: linear-gradient(135deg, #1a0000 0%, #4a0c0c 50%, #903e3e 100%);
	color: #1f2937;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	position: relative;
}

body.login::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
	pointer-events: none;
	z-index: 0;
}

body.login>* {
	z-index: 1;
}

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

body.login h1 a {
	background-size: contain;
	background-position: center center;
	background-repeat: no-repeat;
	width: 200px;
	height: 120px;
	margin: 0 auto;
	outline: none;
}

/* Form Container */
body.login #login {
	width: 380px !important;
	padding: 40px 36px 36px 36px !important;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
	/* Soft diffuse shadow */
	color: #1f2937;
	margin: 0;
}

body.login #loginform,
body.login #lostpasswordform,
body.login #registerform {
	margin-top: 0;
	padding: 0;
	box-shadow: none;
	background: transparent;
	border: none;
}

body.login #loginform p,
body.login #lostpasswordform p,
body.login #registerform p {
	margin-bottom: 20px;
}

/* User & password div wrapper adjustments */
body.login .user-pass-wrap {
	margin-bottom: 20px;
}

/* Labels */
body.login label {
	color: #4b5563;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 8px;
	display: block;
}

/* Inputs */
body.login .input,
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
	background-color: #f3f4f6;
	border: none;
	color: #111827;
	border-radius: 8px;
	box-shadow: none;
	padding: 12px 16px;
	font-size: 16px;
	width: 100%;
	transition: all 0.2s ease;
}

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

body.login .input:focus,
body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
	border: none;
	box-shadow: none;
	outline: none;
	background-color: #ffffff;
}

/* Primary Button (Black modern style) */
body.login .button-primary {
	background: #111827 !important;
	border-color: #111827 !important;
	color: #ffffff !important;
	text-shadow: none !important;
	box-shadow: none !important;
	border-radius: 8px;
	padding: 0 24px;
	height: 46px;
	line-height: 44px;
	font-weight: 600;
	font-size: 15px;
	width: 100%;
	/* Full width button */
	transition: all 0.2s ease;
	cursor: pointer;
	margin-top: 10px;
}

body.login .button-primary:hover,
body.login .button-primary:focus {
	background: #374151 !important;
	border-color: #374151 !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(17, 24, 39, 0.2) !important;
}

body.login .button-primary:active {
	transform: translateY(0);
}

/* Links below form */
body.login #nav,
body.login #backtoblog {
	margin: 24px 0 0;
	padding: 0;
	text-align: center;
}

body.login #nav a,
body.login #backtoblog a {
	color: #6b7280;
	font-size: 14px;
	transition: color 0.15s ease;
	text-decoration: none;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
	color: #111827;
}

/* Notifications Box */
body.login #login_error,
body.login .message,
body.login .success {
	border-radius: 8px;
	background: #ffffff;
	border-left: 4px solid #3b82f6;
	/* Blue indicator for generic msgs */
	color: #1f2937;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	padding: 14px 18px;
	margin-bottom: 24px;
}

body.login #login_error {
	border-left-color: #ef4444;
	/* Red for errors */
}

/* Remember me Checkbox */
body.login input[type="checkbox"] {
	border-radius: 4px;
	border: 1px solid #d1d5db;
	width: 16px;
	height: 16px;
	cursor: pointer;
}

body.login input[type="checkbox"]:checked {
	background-color: #111827;
	border-color: #111827;
}

body.login .forgetmenot {
	display: flex;
	align-items: center;
}

body.login .forgetmenot label {
	margin-bottom: 0;
	margin-left: 8px;
	font-weight: normal;
	font-size: 14px;
	cursor: pointer;
}

/* WP language selector */
body.login .language-switcher {
	margin-top: 24px;
}

/* Submit row wrapper */
body.login .submit {
	clear: both;
	margin-top: 20px;
}

/* Responsive adjustment */
@media (max-width: 480px) {
	body.login #login {
		width: 100% !important;
		max-width: 340px;
		padding: 30px 24px !important;
	}
}