/* Sign-in screen (wp-login.php): sign-in, lost password, choose a password.
 *
 * Loaded after WordPress's own login stylesheet, so everything is prefixed with
 * body.cfv-login to win on specificity without !important.
 *
 * Colours and type are the live Elevate page's (see the design tokens in the
 * project notes): hero gradient, navy #1A365D headings, orange #F97316 pill
 * button, 12px card with a 3px orange top edge. Roboto 700 for headings, Inter
 * for everything else. */

body.login.cfv-login {
	min-height: 100vh;
	background: #003366;
	background: linear-gradient(315deg, #003366, #242124 74%) fixed;
	font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
	color: #fff;
}

body.cfv-login #login {
	width: 400px;
	max-width: calc(100% - 32px);
	padding: 9vh 0 40px;
}

/* Logo. WordPress prints the site name inside the link and hides it with a
 * negative text-indent, so it stays available to screen readers. */
body.cfv-login #login h1 a {
	width: 100%;
	height: 76px;
	margin: 0 auto 28px;
	background-image: url(../img/cfv-logo-white.png);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

/* Welcome line, only when the visitor is heading for the portal. */
body.cfv-login .cfv-login-intro {
	margin: 0 0 22px;
	text-align: center;
}
body.cfv-login .cfv-login-intro h2 {
	margin: 0 0 8px;
	font: 700 26px/1.2 'Roboto', sans-serif;
	color: #fff;
}
body.cfv-login .cfv-login-intro p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
}

/* The form card. */
body.cfv-login #login form {
	margin: 0 0 24px;
	padding: 30px 30px 28px;
	background: #fff;
	border: 1px solid #E2E8F0;
	border-top: 3px solid #F97316;
	border-radius: 12px;
	box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.5);
	color: #666666;
}

body.cfv-login #login label {
	font-size: 14px;
	font-weight: 500;
	color: #1A365D;
}

body.cfv-login #login form .input,
body.cfv-login #login input[type="text"],
body.cfv-login #login input[type="password"] {
	min-height: 46px;
	padding: 8px 12px;
	border: 1px solid #CBD5E0;
	border-radius: 8px;
	box-shadow: none;
	font-size: 16px;
	color: #111111;
}
body.cfv-login #login input[type="text"] {
	font-family: 'Inter', sans-serif;
}
body.cfv-login #login form .input:focus,
body.cfv-login #login input[type="text"]:focus,
body.cfv-login #login input[type="password"]:focus {
	border-color: #2C5282;
	box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.22);
	outline: none;
}

body.cfv-login #login .button.wp-hide-pw {
	color: #2C5282;
}

body.cfv-login #login .forgetmenot {
	float: none;
	margin: 0 0 18px;
}
body.cfv-login #login .forgetmenot label {
	font-weight: 400;
	color: #666666;
}

/* Primary button: the live page's orange pill. The label is dark navy, not
 * white: white on #F97316 is 2.8:1, below the 4.5:1 WCAG AA asks for, while
 * #0F2438 on it is 5.6:1. The hover goes lighter rather than darker so the
 * dark label gains contrast instead of losing it (7.0:1 on #FB923C). */
body.cfv-login #login .button-primary {
	min-height: 48px;
	padding: 0 28px;
	background: #F97316;
	border: 1px solid #F97316;
	border-radius: 55px;
	box-shadow: none;
	text-shadow: none;
	font: 600 16px/46px 'Inter', sans-serif;
	color: #0F2438;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
body.cfv-login #login .button-primary:hover {
	background: #FB923C;
	border-color: #FB923C;
	color: #0F2438;
}
body.cfv-login #login .button-primary:focus {
	background: #FB923C;
	border-color: #FB923C;
	color: #0F2438;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1A365D;
	outline: none;
}

/* Secondary button (Generate Password, Cancel): navy outline pill. The
 * show/hide eye is also a .button, so it is excluded. */
body.cfv-login #login .button:not(.button-primary):not(.wp-hide-pw) {
	min-height: 48px;
	padding: 0 22px;
	background: #fff;
	border: 1px solid #1A365D;
	border-radius: 55px;
	box-shadow: none;
	font: 500 15px/46px 'Inter', sans-serif;
	color: #1A365D;
}
body.cfv-login #login .button:not(.button-primary):not(.wp-hide-pw):hover {
	background: #EFF6FC;
	border-color: #1A365D;
	color: #1A365D;
}
body.cfv-login #login .button:not(.button-primary):not(.wp-hide-pw):focus {
	background: #EFF6FC;
	border-color: #1A365D;
	color: #1A365D;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1A365D;
	outline: none;
}

/* Choose-a-password screen: Generate and Save stack at full width. Side by
 * side they no longer fit once the buttons are pill-sized. */
body.cfv-login #resetpassform .wp-generate-pw {
	display: block;
	width: 100%;
	margin: 0 0 12px;
}
body.cfv-login #resetpassform .reset-pass-submit {
	display: block;
	margin: 0;
}
body.cfv-login #resetpassform .reset-pass-submit .button-primary {
	width: 100%;
	margin: 0;
}

/* Sign-in and lost-password buttons span the card. */
body.cfv-login #loginform p.submit,
body.cfv-login #lostpasswordform p.submit {
	float: none;
	margin: 0;
}
body.cfv-login #loginform .button-primary,
body.cfv-login #lostpasswordform .button-primary {
	float: none;
	width: 100%;
}

/* Notices: keep WordPress's colour-coded left edge, soften the corners. */
body.cfv-login #login .message,
body.cfv-login #login .notice,
body.cfv-login #login .success {
	margin: 0 0 20px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.6;
	color: #333333;
}
body.cfv-login #login .message {
	border-left-color: #F97316;
}

/* Links under the card sit on the gradient. */
body.cfv-login #login #nav,
body.cfv-login #login #backtoblog {
	text-align: center;
	padding: 0;
}
body.cfv-login #login #nav a,
body.cfv-login #login #backtoblog a,
body.cfv-login .privacy-policy-page-link a {
	color: rgba(255, 255, 255, 0.88);
	text-decoration: underline;
	text-underline-offset: 3px;
}
body.cfv-login #login #nav a:hover,
body.cfv-login #login #backtoblog a:hover,
body.cfv-login .privacy-policy-page-link a:hover {
	color: #fff;
}
body.cfv-login #login #nav a:focus,
body.cfv-login #login #backtoblog a:focus {
	color: #fff;
	box-shadow: 0 0 0 2px #fff;
	outline: none;
}

@media (max-width: 480px) {
	body.cfv-login #login {
		padding-top: 6vh;
	}
	body.cfv-login #login form {
		padding: 24px 20px 22px;
	}
	body.cfv-login .cfv-login-intro h2 {
		font-size: 23px;
	}
}
