/**
 * Huxley staff portal — wp-login.php branding.
 * Sign in, lost password, set / reset password, "check your email".
 *
 * Values mirror the custom /staff-login/ page (css/main.css) so the two
 * screens look identical. wp-login doesn't load the theme stylesheet, so
 * this is self-contained and in px.
 *
 *   heading : halyard-micro 300, 32px, -4px tracking, 50px below
 *   label   : halyard-micro 300, 14px, -0.6px tracking, 10px below
 *   input   : halyard-display 300, 18px, 1px navy underline, red on focus
 *   button  : red, 50px, weight 400, 14px
 */

body.login {
	background: #fff;
	color: #03153a;
	font-family: "halyard-micro", Helvetica, Arial, sans-serif;
}

#login {
	width: 424px;
	max-width: calc(100vw - 40px);
	padding: 8vh 0 40px;
}

/* ---- Logo ---- */
.login h1 {
	margin-bottom: 30px;
}

.login h1 a {
	background-image: none; /* real logo set inline in login-branding.php */
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	width: 200px;
	height: 56px;
	margin: 0 auto;
}

/* ---- Heading ---- */
.hux-login-title {
	margin: 0 0 50px;
	text-align: center;
	font-family: "halyard-micro", Helvetica, Arial, sans-serif;
	font-size: 32px;
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: -4px;
	color: #03153a;
}

/* ---- Form: flat, no card ---- */
.login form {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	margin-top: 0;
	overflow: visible;
}

/* 30px between field rows — matches /staff-login/. Uses form-id selectors
   to beat WordPress's `#login form p { margin-bottom: 0 }` without disturbing
   the reset-password screen (which has its own #resetpassform). */
#loginform > p:first-of-type,
#lostpasswordform > p:first-of-type,
.login .user-pass-wrap {
	margin-bottom: 30px;
}

.login label {
	display: block;
	margin: 0 0 10px;
	color: #03153a;
	font-family: "halyard-micro", Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: 300;
	letter-spacing: -0.6px;
	line-height: 1.5;
}

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
	width: 100%;
	height: 40px;
	margin: 0;
	padding: 0 25px 0 10px;
	border: 0;
	border-bottom: 1px solid #03153a;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-family: "halyard-display", Helvetica, Arial, sans-serif;
	font-size: 18px;
	font-weight: 300;
	line-height: normal;
	color: #000;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
	border-bottom: 1px solid #e22237;
	box-shadow: none;
	outline: 0;
}

/* Show / hide password button */
.login .wp-pwd {
	position: relative;
}

.login .wp-pwd button.button {
	position: absolute;
	right: 0;
	top: 6px;
	margin: 0;
	padding: 4px;
	background: transparent;
	border: 0;
	box-shadow: none;
	color: #5b6376;
}

.login .wp-pwd button.button:hover {
	color: #03153a;
	background: transparent;
}

/* ---- Primary button ---- */
.wp-core-ui .button-primary,
.login .button-primary {
	display: block;
	width: 100%;
	height: 50px;
	margin: 10px 0 0;
	float: none;
	background: #e22237;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	text-shadow: none;
	font-family: "halyard-micro", Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: 400;
	text-transform: none;
	line-height: 50px;
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus,
.wp-core-ui .button-primary:active {
	background: #c51b2f;
	border: 0;
	box-shadow: none;
}

/* Secondary buttons (e.g. "Generate Password") */
.wp-core-ui .button:not(.button-primary):not(.wp-hide-pw) {
	border: 1px solid #03153a;
	border-radius: 0;
	box-shadow: none;
	color: #03153a;
	background: transparent;
	font-weight: 400;
}

.wp-core-ui .button:not(.button-primary):not(.wp-hide-pw):hover {
	border-color: #e22237;
	color: #e22237;
	background: transparent;
}

/* ---- Remember me: hidden to match the design ---- */
.login .forgetmenot {
	display: none;
}

.login .submit {
	margin: 0;
}

/* ---- Links under the form ---- */
.login #nav,
.login #backtoblog {
	margin: 20px 0 0;
	padding: 0;
	text-align: center;
	font-size: 14px;
}

.login #nav a,
.login #backtoblog a {
	color: #03153a;
	text-decoration: none;
}

.login #nav a:hover,
.login #backtoblog a:hover,
.login #nav a:focus,
.login #backtoblog a:focus {
	color: #e22237;
}

/* ---- Notices / errors ---- */
.login .notice,
.login #login_error,
.login .message,
.login .success {
	border-left: 3px solid #e22237;
	border-radius: 0;
	box-shadow: none;
	font-size: 14px;
}

.login .message,
.login .success {
	border-left-color: #03153a;
}

#pass-strength-result {
	border-radius: 0;
	font-size: 13px;
}

/* ---- Housekeeping ---- */
.login .language-switcher,
.login .privacy-policy-page-link {
	display: none;
}

/* Match the theme's h2.small / input breakpoints so the two pages track. */
@media (min-width: 768px) and (max-width: 1023px) {
	.hux-login-title {
		font-size: 28px;
		letter-spacing: -2px;
	}

	.login form .input,
	.login input[type="text"],
	.login input[type="password"],
	.login input[type="email"] {
		font-size: 16px;
	}
}

@media (max-width: 767px) {
	#login {
		padding-top: 5vh;
	}

	.hux-login-title {
		margin-bottom: 20px;
		font-size: 24px;
		letter-spacing: -2px;
		line-height: 1.3;
	}

	.login form .input,
	.login input[type="text"],
	.login input[type="password"],
	.login input[type="email"] {
		font-size: 16px;
		height: 35px;
	}
}
