/* --- 1. The Atmosphere --- */
body.login {
	background-image: url("../imgs/car-background.jpg");
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	overflow: hidden;
}

/* --- 2. The Temple of Glass --- */
#login {
	width: 420px !important;
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
}

.login form {
	background: rgba(10, 20, 40, 0.6);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
	border-radius: 20px;
	padding: 40px !important;
	display: flex;
	flex-direction: column;
}

.login form::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 20px;
	box-shadow: inset 0 0 2000px rgba(255, 255, 255, 0.1);
	pointer-events: none;
}

/* --- 3. The Logo, Enthroned --- */
.fm-login-logo {
	order: -1;
	margin-bottom: 25px;
	text-align: center;
}
.fm-login-logo img {
	max-width: 250px;
	height: auto;
	opacity: 0.8;
	filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

/* --- 4. THE EYE, EXORCISED (FINAL VERSION) --- */
.wp-pwd {
	position: relative; /* Keep this for positioning context */
}

/* We force the button into submission with absolute positioning and !important. */
.wp-pwd .button.button-secondary {
	position: absolute !important;
	top: calc(50% - 10px) !important;
	right: 15px !important;
	transform: translateY(-50%) !important; /* The vertical centering magic */

	/* Override ALL default styles */
	height: auto !important;
	width: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	box-shadow: none !important;
	background: transparent !important;
	color: rgba(255, 255, 255, 0.6) !important;
	cursor: pointer;
}
.wp-pwd .button.button-secondary .dashicons {
	font-size: 20px;
}

/* --- 5. The Divine Inputs --- */
.login form .input,
.login input[type="text"],
.login input[type="password"] {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	color: #fff;
	font-size: 16px;
	padding: 15px;
	margin-bottom: 20px;
	box-shadow: none !important;
	transition: all 0.2s ease-in-out;
	width: 100%;
}
/* Add padding to password field so text doesn't go under the eye */
.login input[type="password"] {
	padding-right: 50px !important;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus {
	border-color: rgba(255, 255, 255, 0.5);
	background: rgba(255, 255, 255, 0.15);
	box-shadow: 0 0 15px rgba(255, 255, 255, 0.1) !important;
}
.login form .input::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

/* --- 6. The Supporting Cast (Labels & Links) --- */
.login label,
.login #nav a,
.login #backtoblog a {
	color: rgba(255, 255, 255, 0.8) !important;
	text-shadow: none !important;
	transition: color 0.2s ease;
}
.login #nav a:hover,
.login #backtoblog a:hover {
	color: #fff !important;
}
.login .forgetmenot {
	margin-bottom: 25px;
}
.login .forgetmenot label {
	display: inline-flex;
	align-items: center;
}
.login #nav {
	margin: 15px 0 0 0;
}
.login #backtoblog {
	display: none;
}

/* --- 7. The Climax (The Button) --- */
.login .submit .button-primary {
	width: 100%;
	background: #fff !important;
	color: #111 !important;
	border: none !important;
	border-radius: 10px;
	padding: 12px !important;
	height: auto !important;
	font-size: 16px;
	font-weight: bold;
	text-shadow: none !important;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
	transition: all 0.3s ease;
	text-transform: uppercase;
	margin-top: 10px;
}
.login .submit .button-primary:hover {
	background: #f0f0f0 !important;
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}
.login .submit .button-primary:active {
	transform: translateY(0);
}

.login h1 {
	display: none !important;
}
