/* =========================================
   CUSTOM LOGIN PAGE STYLES
   ========================================= */
body.login {
	display: flex;
	min-height: 100vh;
	background-image: url('assets/img/login-bg.png');
	background-color: #f0fdf4 !important;
	/* Very light green bg */
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	padding: 0 !important;
	margin: 0;
	overflow-x: hidden;
}

/* Left Side Image */
.body_login {
	display: block;
	width: 50%;
	height: 100vh;
	background-image: url('/wp-content/uploads/2026/01/Gemini_Generated_Image_nkg5minkg5minkg5.png');
	background-size: cover;
	background-position: center;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1;
}

/* Right Side Container */
#login {
	position: relative;
	z-index: 2;
	width: 50%;
	margin-left: 50% !important;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 40px;
	box-sizing: border-box;
	background: #fff;
	min-height: 100vh;
	max-width: none !important;
	/* Override WP default max-width */
}

/* Hide Default Logo & Links */
.login h1,
.login #nav,
.login #backtoblog,
.login .privacy-policy-page-link,
.language-switcher {
	display: none !important;
}

/* Login Form Styling */
#loginform {
	background: transparent !important;
	box-shadow: none !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 100%;
	max-width: 380px;
	/* Slightly wider for better spacing */
}

/* Custom Title */
.custom-login-title {
	font-size: 32px;
	font-weight: 700;
	color: #333;
	margin-bottom: 24px;
	text-align: left;
	width: 100%;
	max-width: 380px;
}

/* Form Labels */
.login label {
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 8px;
	display: block;
}

/* Inputs */
.login form .input,
.login input[type=text],
.login input[type=password] {
	font-size: 15px;
	padding: 12px 16px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	/* Rounded inputs */
	background: #f9fafb;
	color: #1f2937;
	width: 100%;
	margin-bottom: 20px;
	box-shadow: none;
	transition: all 0.2s ease;
	height: auto !important;
	/* Fix WP default height */
}

.login input[type=text]:focus,
.login input[type=password]:focus {
	border-color: #1E3EC8;
	/* Light green border */
	background: #fff;
	box-shadow: 0 0 0 4px rgba(134, 239, 172, 0.2);
	outline: none;
}

/* Password Wrapper for Eye Icon */
.wp-pwd {
	position: relative;
	margin-bottom: 20px;
}

.login .button-secondary.wp-hide-pw {
	top: 50%;
	transform: translateY(-50%);
	right: 12px;
	background: transparent;
	border: none;
	box-shadow: none;
}

.login .button-secondary.wp-hide-pw .dashicons {
	color: #6b7280;
}

/* Submit Button */
.wp-core-ui .button-primary {
	background-color: #86efac !important;
	/* Light green */
	border-color: #86efac !important;
	color: #064e3b !important;
	/* Dark green text */
	text-shadow: none;
	box-shadow: none;
	width: 100%;
	padding: 14px;
	height: auto;
	font-size: 16px;
	font-weight: 600;
	border-radius: 99px;
	/* Fully rounded pill shape */
	margin-top: 10px;
	transition: transform 0.1s, opacity 0.2s, background-color 0.2s;
	float: none !important;
}

.wp-core-ui .button-primary:hover {
	background-color: #4ade80 !important;
	color: #065F46 !important;
}

.wp-core-ui .button-primary:active {
	transform: scale(0.98);
}

/* Remember Me */
.forgetmenot {
	float: none !important;
	margin-bottom: 24px !important;
	display: flex;
	align-items: center;
}

.forgetmenot label {
	font-weight: normal;
	font-size: 14px;
	color: #6b7280;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

input[type=checkbox] {
	border-radius: 4px;
	border-color: #d1d5db;
	width: 18px;
	height: 18px;
}

input[type=checkbox]:checked::before {
	color: #10b981;
	/* Green check */
}

/* Error Messages */
.login #login_error,
.login .message {
	border-left-color: #ef4444;
	background: #fff;
	color: #ef4444;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	border: 1px solid #fecaca;
	border-radius: 8px;
	margin-bottom: 24px;
	padding: 12px 16px;
}

.login .message {
	border-left-color: #86efac;
	border-color: #bbf7d0;
	background: #f0fdf4;
	color: #065f46;
}

/* Responsive */
@media (max-width: 768px) {
	body.login {
		flex-direction: column;
	}

	.body_login {
		position: relative;
		width: 100%;
		height: 35vh;
		/* Top image */
		min-height: 250px;
	}

	#login {
		width: 100%;
		margin: 0 !important;
		padding: 32px 24px;
		min-height: auto;
		background: #fff;
		flex: 1;
		justify-content: flex-start;
		border-radius: 24px 24px 0 0;
		/* Rounded top corners for sheet effect */
		margin-top: -20px !important;
		/* Overlap image slightly */
		z-index: 10;
		box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
	}
}
