/*
 * rsg-login.css — the /login page (NWB-RSG-024) AND core's wp-login.php skin (login_enqueue_scripts).
 * Loads after rsg-pages.css on the page. Mobile-first. Island Pitch tokens: island-orange #FF8F05,
 * island-black #030400, island-white #F7F7FC, deep-sea #01579B, sunset-gold #FFD54F. On the white
 * page the text and control colours are chosen for AA: deep-sea on white 8.6:1, island-white on
 * island-black 19:1, #767676 borders 4.5:1, error #a4161a 6.6:1, good #0b5d1e 8:1. Orange and gold
 * are accents only (never the sole cue, never small text on white).
 */
.nwb-rsg-page--login {
	--rsg-orange: #FF8F05;
	--rsg-black: #030400;
	--rsg-white: #F7F7FC;
	--rsg-sea: #01579B;
	--rsg-gold: #FFD54F;
	--rsg-border: #767676;
	--rsg-error: #a4161a;
	--rsg-good: #0b5d1e;
	--rsg-focus: #01579B;
}

.rsg-login-section {
	margin: 32px 0 0;
}

.rsg-login-section h2 {
	margin: 0 0 8px;
}

.rsg-login {
	margin: 8px 0 0;
}

.rsg-login .rsg-field {
	margin: 0 0 24px;
}

.rsg-login .rsg-field label {
	display: block;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 4px;
}

.rsg-login .rsg-hint {
	margin: 0 0 8px;
	color: #3a3a3a;
	font-size: 1rem;
}

.rsg-login input[type="email"],
.rsg-login input[type="text"],
.rsg-login input[type="password"] {
	box-sizing: border-box;
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 10px 12px;
	border: 2px solid var(--rsg-border, #767676);
	border-radius: 8px;
	background: #fff;
	color: var(--rsg-black, #030400);
	font: inherit;
	font-size: 1rem; /* never below 16px: no iOS zoom */
	line-height: 1.4;
}

.rsg-login input:focus-visible,
.rsg-login button:focus-visible,
.rsg-login a:focus-visible,
.rsg-login-links a:focus-visible,
.rsg-login-notice:focus-visible {
	outline: 3px solid var(--rsg-focus, #01579B);
	outline-offset: 2px;
	box-shadow: 0 0 0 6px var(--rsg-gold, #FFD54F);
}

.rsg-login-notice:focus {
	outline: 3px solid var(--rsg-focus, #01579B);
	outline-offset: 2px;
}

/* The remember-me box: the box is 28px, the label row is the 44px target. */
.rsg-login .rsg-check {
	margin-bottom: 16px;
}

.rsg-login .rsg-check-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.rsg-login .rsg-check-row input[type="checkbox"] {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	margin: 0;
	accent-color: var(--rsg-sea, #01579B);
	cursor: pointer;
}

.rsg-login .rsg-check-row label {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-height: 44px;
	margin: 0;
	padding: 8px 0;
	font-weight: 400;
	cursor: pointer;
}

/* Notices: text + a heavier left border + a visible prefix of weight (never colour alone). */
.rsg-login-notice {
	margin: 0 0 8px;
	padding: 12px 16px;
	border: 2px solid var(--rsg-border, #767676);
	border-left-width: 8px;
	border-radius: 8px;
	font-weight: 700;
}

.rsg-login-notice--problem {
	border-color: var(--rsg-error, #a4161a);
	color: var(--rsg-error, #a4161a);
}

.rsg-login-notice--good {
	border-color: var(--rsg-good, #0b5d1e);
	color: var(--rsg-good, #0b5d1e);
}

/* Buttons: the link is the primary (filled), the password is the secondary (outlined). */
.rsg-login-submit {
	display: block;
	width: 100%;
	box-sizing: border-box;
	min-height: 52px;
	margin: 8px 0 16px;
	padding: 12px 20px;
	border: 2px solid var(--rsg-black, #030400);
	border-radius: 9999px;
	font: inherit;
	font-size: 1.1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 150ms ease, color 150ms ease;
}

.rsg-login-submit--primary {
	background: var(--rsg-black, #030400);
	color: var(--rsg-white, #F7F7FC);
}

.rsg-login-submit--primary:hover {
	background: var(--rsg-sea, #01579B);
	border-color: var(--rsg-sea, #01579B);
}

.rsg-login-submit--secondary {
	background: #fff;
	color: var(--rsg-black, #030400);
}

.rsg-login-submit--secondary:hover {
	background: var(--rsg-white, #F7F7FC);
	border-color: var(--rsg-sea, #01579B);
	color: var(--rsg-sea, #01579B);
}

.rsg-login-links {
	margin: 0 0 8px;
}

.rsg-login-links a {
	display: inline-block;
	min-height: 44px;
	padding: 10px 0;
	box-sizing: border-box;
}

/* Honeypot: off-screen for people, out of the tab order (tabindex -1), hidden from AT (aria-hidden). */
.rsg-login-hp {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (min-width: 640px) {
	.rsg-login-submit {
		width: auto;
		min-width: 260px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rsg-login-submit,
	.rsg-login * {
		transition: none !important;
		animation: none !important;
	}
}

/* ── core's wp-login.php (sign in, lost password, reset) wears the platform skin ── */
body.login {
	background: var(--rsg-white, #F7F7FC);
	color: var(--rsg-black, #030400);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body.login #login h1 a {
	width: auto;
	height: auto;
	margin: 0 auto 16px;
	background-image: none;
	color: var(--rsg-black, #030400);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
	text-indent: 0;
	text-decoration: underline;
	overflow-wrap: anywhere;
}

body.login form {
	border: 2px solid var(--rsg-border, #767676);
	border-radius: 8px;
	box-shadow: none;
}

body.login label {
	color: var(--rsg-black, #030400);
	font-size: 1rem;
	font-weight: 700;
}

body.login form .input,
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
	min-height: 48px;
	border: 2px solid var(--rsg-border, #767676);
	border-radius: 8px;
	font-size: 1rem;
	line-height: 1.4;
}

body.login .button-primary {
	min-height: 48px;
	border: 2px solid var(--rsg-black, #030400);
	border-radius: 9999px;
	background: var(--rsg-black, #030400);
	color: var(--rsg-white, #F7F7FC);
	font-size: 1rem;
	font-weight: 700;
	text-shadow: none;
	box-shadow: none;
}

body.login .button-primary:hover,
body.login .button-primary:focus {
	border-color: var(--rsg-sea, #01579B);
	background: var(--rsg-sea, #01579B);
	color: #fff;
}

body.login #nav a,
body.login #backtoblog a,
body.login .privacy-policy-page-link a {
	display: inline-block;
	min-height: 44px;
	padding: 10px 0;
	box-sizing: border-box;
	color: var(--rsg-sea, #01579B);
	text-decoration: underline;
}

body.login input:focus-visible,
body.login a:focus-visible,
body.login .button-primary:focus-visible {
	outline: 3px solid var(--rsg-focus, #01579B);
	outline-offset: 2px;
	box-shadow: 0 0 0 6px var(--rsg-gold, #FFD54F);
}

body.login .message,
body.login .notice,
body.login #login_error {
	border-left-width: 8px;
}

@media (prefers-reduced-motion: reduce) {
	body.login * {
		transition: none !important;
		animation: none !important;
	}
}
