/* ISPCAN custom login — recreates BuddyBoss split-screen layout */

body.login {
	background: #fff;
	color: #5a5a5a;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	margin: 0;
	min-height: 100vh;
	display: flex;
	align-items: center;
	/* push form to the right half */
	justify-content: flex-start;
	padding-left: 50vw;
	box-sizing: border-box;
}

/* ---- Left image panel ---- */
.ispcan-split {
	position: fixed;
	top: 0; left: 0; bottom: 0;
	width: 50vw;
	background: var(--ispcan-login-bg) center / cover no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}
.ispcan-split-title {
	color: #fff;
	font-size: 34px;
	font-weight: 400;
	margin: 0;
	padding: 0 40px;
	text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

/* ---- Right form panel ---- */
#login {
	width: 100%;
	max-width: 454px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Logo */
#login h1 a, .login h1 a {
	background-image: var(--ispcan-login-logo);
	background-size: contain;
	background-position: left center;
	width: 145px;
	height: 145px;
	margin: 0 0 16px;
}

/* "Sign in" heading */
.ispcan-signin {
	color: #1e2132;
	font-size: 20px;
	font-weight: 400;
	margin: 0 0 20px;
}

/* Form container — flat, no WP card */
.login form {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 2px;
	margin-top: 0;
}

/* Hide field labels (placeholders used instead) */
.login form label[for="user_login"],
.login form label[for="user_pass"] {
	position: absolute;
	clip: rect(1px,1px,1px,1px);
}

/* Inputs */
.login form .input,
.login input[type="text"],
.login input[type="password"] {
	background: #fff;
	border: 1px solid #d6d9dd;
	border-radius: 6px;
	height: 41px;
	padding: 10px 12px;
	font-size: 16px;
	color: #5a5a5a;
	box-shadow: none;
	margin-bottom: 14px;
	width: 100%;
	box-sizing: border-box;
}
.login form .input:focus {
	border-color: #035bc5;
	box-shadow: 0 0 0 1px #035bc5;
	outline: none;
}

/* Remember me / forgot password row */
.login .forgetmenot {
	font-size: 14px;
	color: #1e2132;
	float: left;
	margin-top: 4px;
}
.login #nav {
	font-size: 14px;
	text-align: right;
	margin: -30px 0 0;
	padding: 0;
}
.login #nav a, .login #backtoblog a {
	color: #5a5a5a;
}
.login #backtoblog { text-align: center; font-size: 13px; }

/* Submit button */
.wp-core-ui .button-primary,
.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
	background: #035bc5;
	border: 1px solid #035bc5;
	border-radius: 7px;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	height: 51px;
	width: 100%;
	margin-top: 16px;
	box-shadow: none;
	text-shadow: none;
	float: none;
}
.wp-core-ui .button-primary:hover { background: #0450ab; border-color: #0450ab; }
.login .submit { clear: both; }

/* Messages / errors */
.login .message, .login #login_error, .login .success {
	border-radius: 6px;
	box-shadow: none;
	border: 1px solid #d6d9dd;
	border-left: 4px solid #035bc5;
}
.login #login_error { border-left-color: #d63638; }

/* Language switcher — hide to match current screen */
.login .language-switcher { display: none; }

/* ---- Mobile: stack, hide image ---- */
@media (max-width: 880px) {
	body.login { padding-left: 0; justify-content: center; }
	.ispcan-split { display: none; }
}
