/*
 * Login, sign-up and password pages (wp-login.php) in the portal's look.
 * --portal-accent is set from the Kadence palette (inc/account.php).
 */

body.login {
	background: #f3f4f6;
	color: #1f2937;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
}

/* Site name instead of the WordPress logo. */
.login h1 a {
	width: auto;
	height: auto;
	margin-bottom: 1rem;
	background: none;
	color: #111827;
	font-family: Georgia, "Noto Serif", serif;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
	text-indent: 0;
	overflow: visible;
}

.login h1 a:hover,
.login h1 a:focus {
	color: var(--portal-accent);
	box-shadow: none;
}

.login form {
	border: 1px solid #e5e7eb;
	border-top: 4px solid var(--portal-accent);
	border-radius: 6px;
	box-shadow: none;
}

.login label {
	color: #1f2937;
}

.login input[type="text"]:focus,
.login input[type="email"]:focus,
.login input[type="password"]:focus,
.login input[type="checkbox"]:focus {
	border-color: var(--portal-accent);
	box-shadow: 0 0 0 1px var(--portal-accent);
}

.wp-core-ui .button-primary {
	border-color: var(--portal-accent);
	background: var(--portal-accent);
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
	border-color: var(--portal-accent);
	background: var(--portal-accent);
	filter: brightness(0.9);
}

.login #nav a,
.login #backtoblog a,
.login .privacy-policy-page-link a,
.login a {
	color: var(--portal-accent);
}

/* Consent checkbox: wraps neatly beside the box. */
.portal-consent {
	margin: 0.5rem 0 1rem;
}

.portal-consent label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.875rem;
	line-height: 1.45;
}

.portal-consent input[type="checkbox"] {
	flex: none;
	margin-top: 0.15rem;
}

/* Bot trap: off screen for people, still in the form for bots. */
.portal-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
