/* ============================================================
   wp-login.php reskin — IFA Institutional design system
   Uses the shared --ifa-* custom properties (same values as
   style.css :root). Redeclared locally because wp-login.php runs
   on login_enqueue_scripts, a separate context that never loads
   style.css — same pattern as tribe-events-custom.css and
   3col-resources.css, which redeclare the same block for the
   same reason.

   Hover treatment matches the site-wide primary-button pattern
   used in buttons.css / gravity-forms.css / tribe-events-custom.css:
   dark-blue -> dark-teal background swap, transition .25s.

   Accessibility note (new case, not covered by ifa-search.css):
   --ifa-teal on white text already fails AA (see ifa-search.css),
   and it fails worse reversed — --ifa-teal on --ifa-dark-blue
   measures 4.34:1, under the 4.5:1 minimum for normal text. Dark-
   teal is even closer to navy in luminance, so it is not a fix
   either. For plain text/links sitting directly on the navy page
   background, use --ifa-light-mint (11:1+) instead; reserve teal
   on this page for the focus ring, where it sits on a white input
   and contrast is already met.
   ============================================================ */

:root {
	--ifa-green: #49B461;
	--ifa-dark-blue: #203248;
	--ifa-light-mint: #EDF7F4;
	--ifa-dark-teal: #255F71;
	--ifa-teal: #29A5A1;
	--ifa-purple: #A05793;
}

body.login {
	background: var(--ifa-dark-blue);
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.login #login {
	width: 100%;
	max-width: 380px;
	padding: 40px 20px;
}

body.login #login h1 {
	margin: 0 0 24px;
}

body.login #login h1 a {
	background-image: url('../images/ifa_logo_white.png');
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	width: 84px;
	height: 84px;
	margin: 0 auto;
}

body.login #loginform {
	background: #FFFFFF;
	border: none;
	border-radius: 12px;
	padding: 32px 28px 24px;
	box-shadow: 0 12px 32px rgba(32, 50, 72, 0.18);
}

body.login label {
	color: var(--ifa-dark-blue);
	font-family: 'Open Sans', Helvetica, Arial, sans-serif;
	font-weight: 500;
	font-size: 14px;
}

/* #D7DCE2 is a functional form-neutral, not a brand color — no --ifa-
   token exists for it and none of the palette colors read as a
   plausible input border on white, so it stays a literal value. */
body.login input[type=text],
body.login input[type=password] {
	border: 1px solid #D7DCE2;
	border-radius: 6px;
	box-shadow: none;
	font-family: 'Open Sans', Helvetica, Arial, sans-serif;
	font-size: 15px;
	padding: 10px 12px;
	transition: border-color .2s ease, box-shadow .2s ease;
}

body.login input[type=text]:focus,
body.login input[type=password]:focus {
	border-color: var(--ifa-teal);
	box-shadow: 0 0 0 3px rgba(41, 165, 161, 0.25);
}

body.login .button-primary {
	background: var(--ifa-dark-blue);
	border: 1px solid var(--ifa-dark-blue);
	color: #fff;
	background-image: none;
	border-radius: 8px;
	box-shadow: none;
	text-shadow: none;
	font-family: 'Open Sans', Helvetica, Arial, sans-serif;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.1;
	height: auto;
	width: 100%;
	padding: 12px 20px;
	text-align: center;
	transition: background .25s, border-color .25s, color .25s;
}

body.login .button-primary:hover,
body.login .button-primary:focus {
	background: var(--ifa-dark-teal);
	border-color: var(--ifa-dark-teal);
	color: #fff;
}

body.login .forgetmenot label {
	font-weight: 400;
}

body.login #nav,
body.login #backtoblog {
	text-align: center;
	margin-top: 16px;
}

body.login #nav a,
body.login #backtoblog a {
	color: var(--ifa-light-mint);
	font-family: 'Open Sans', Helvetica, Arial, sans-serif;
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color .2s ease;
}

body.login #nav a:hover,
body.login #backtoblog a:hover,
body.login #nav a:focus,
body.login #backtoblog a:focus {
	color: #FFFFFF;
	text-decoration-thickness: 2px;
}

body.login #login_error,
body.login .message,
body.login .success {
	border-radius: 6px;
	border-left-color: var(--ifa-teal);
	font-family: 'Open Sans', Helvetica, Arial, sans-serif;
}

body.login .privacy-policy-page-link {
	text-align: center;
}
