/*--------------------------------------------------------------
Custom Login Styles — Match Independent Publisher 2 Front End
--------------------------------------------------------------*/

/* Remove WordPress branding & footer links */
.login h1,
#backtoblog,
#nav,
.privacy-policy-page-link,
.language-switcher {
	display: none !important;
}

/* Page background + font */
body.login {
	background: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
	font-size: 18px;
	line-height: 1.75;
	color: #383838;
	margin: 0;
	padding: 0;
}

/* Login form wrapper */
#login {
	width: 380px;
	margin: 5% auto;
	padding: 40px 35px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	text-align: left;
}

/* Login form fields */
#loginform {
	background: none;
	border: none;
	box-shadow: none;
	padding: 0;
}

#loginform p {
	margin-bottom: 1.2em;
}

#loginform label {
	display: block;
	font-weight: bold;
	font-size: 16px;
	color: #333332;
	margin-bottom: 6px;
}

/* Inputs */
#loginform input[type="text"],
#loginform input[type="password"] {
	width: 100%;
	padding: 10px 12px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
	font-size: 16px;
	color: #404040;
	border: 1px solid #a1a1a1;
	border-radius: 3px;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus {
	border-color: #0087be;
	box-shadow: 0 0 3px rgba(0, 135, 190, 0.2);
	outline: none;
}

/* Submit button */
#wp-submit {
	display: block;
	width: 100%;
	padding: 10px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #fff;
	background: #0087be;
	border: 1px solid transparent;
	border-radius: 3px;
	cursor: pointer;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

#wp-submit:hover {
	background: #00aadc;
}

/* Remember me checkbox */
.forgetmenot {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	color: #383838;
	margin-bottom: 1em;
}

/* Error and message boxes */
.login #login_error,
.login .message,
.login .success {
	border-left: 3px solid #0087be;
	background: #f5f5f5;
	color: #383838;
	padding: 12px 14px;
	font-size: 15px;
	box-shadow: none;
	border-radius: 3px;
}

/* Lost password link */
#loginform + p a {
	color: #0087be;
	font-size: 15px;
	text-decoration: none;
}

#loginform + p a:hover {
	text-decoration: underline;
}

/* Selection highlight */
::selection {
	background: #0087be;
	color: #fff;
}

/* Responsive layout */
@media (max-width: 480px) {
	#login {
		width: 90%;
		margin-top: 15%;
		padding: 30px 20px;
	}
}