/*
 * The login page in the site's look (inc/admin-style.php). Only the login
 * page's own, long-standing classes (body.login, #login, .wp-login-logo,
 * #loginform, .button-primary, #nav, #backtoblog, notices; and the two-factor
 * step of Wordfence, at the end), so WordPress
 * updates leave it intact; anything it does not know falls back to core.
 */

body.login {
	background: #000;
	color: #fff;
	font-family: "HK Grotesk", system-ui, sans-serif;
}

/* The IQ pattern along the bottom, as the footer. */
body.login::after {
	content: "";
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	height: min(12vw, 11rem);
	background-color: #11f05d;
	-webkit-mask: url("../shapes/iq-mark-mask.svg") 0 -7.9vw / 18.33vw auto repeat;
	mask: url("../shapes/iq-mark-mask.svg") 0 -7.9vw / 18.33vw auto repeat;
	pointer-events: none;
}

#login {
	position: relative;
	z-index: 1;
	width: min(380px, calc(100vw - 40px));
	padding-top: 10vh;
}

/* The white word mark, linking home. */
.login h1 a,
.login .wp-login-logo a {
	width: 168px;
	height: 45px;
	margin: 0 auto 32px;
	background: url("logo-iqmedia-white.svg") center / contain no-repeat;
}

.login form {
	margin-top: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #fff;
}

.login label {
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* The fields as the site's forms: big type on a white line. */
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
	margin-top: 6px;
	padding: 4px 0 10px;
	border: 0;
	border-bottom: 1px solid #fff;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #fff;
	font-family: "NewBlack Typeface", "HK Grotesk", sans-serif;
	font-size: 24px;
	font-weight: 700;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
	border-bottom-color: #11f05d;
	box-shadow: 0 1px 0 #11f05d;
	outline: 0;
}

/* Autofill keeps the dark field. */
.login input:-webkit-autofill {
	-webkit-text-fill-color: #fff;
	box-shadow: 0 0 0 100px #000 inset;
	caret-color: #fff;
}

.login .button.wp-hide-pw {
	color: #fff;
	background: transparent;
}

.login .button.wp-hide-pw:focus {
	border-color: #11f05d;
	box-shadow: 0 0 0 2px #11f05d;
}

.login .forgetmenot label {
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.login input[type="checkbox"] {
	border-color: #fff;
	background: transparent;
}

.login input[type="checkbox"]:checked::before {
	filter: brightness(0) invert(1);
}

/* The green pill of the site. */
.wp-core-ui.login .button-primary {
	min-height: 44px;
	padding: 0 26px;
	border: 0;
	border-radius: 999px;
	background: #11f05d;
	box-shadow: none;
	color: #000;
	font-size: 16px;
	font-weight: 600;
	text-shadow: none;
}

.wp-core-ui.login .button-primary:hover,
.wp-core-ui.login .button-primary:focus {
	background: #fff;
	color: #000;
}

.wp-core-ui.login .button-primary:focus {
	box-shadow: 0 0 0 2px #000, 0 0 0 4px #11f05d;
}

.wp-core-ui.login .button-secondary,
.wp-core-ui.login .language-switcher .button {
	min-height: 40px;
	border-color: #fff;
	border-radius: 999px;
	background: transparent;
	color: #fff;
}

.wp-core-ui.login .language-switcher .button:hover,
.wp-core-ui.login .language-switcher .button:focus {
	border-color: #11f05d;
	color: #11f05d;
}

.login #nav,
.login #backtoblog,
.login .privacy-policy-page-link {
	padding: 0;
	font-size: 14px;
}

.login #nav a,
.login #backtoblog a,
.login .privacy-policy-page-link a,
.login .language-switcher label {
	color: #fff;
}

.login #nav a:hover,
.login #backtoblog a:hover,
.login .privacy-policy-page-link a:hover {
	color: #11f05d;
}

.login .message,
.login .notice,
.login .success,
.login #login_error {
	border: 0;
	border-left: 4px solid #11f05d;
	background: #141414;
	box-shadow: none;
	color: #fff;
}

.login #login_error {
	border-left-color: #ff6b6b;
}

.login .message a,
.login .notice a,
.login #login_error a {
	color: #11f05d;
}

/*
 * Wordfence's two-factor step (Wordfence Login Security): after the password
 * it lays #wfls-prompt-overlay over the form, white, with the label, the code
 * field, "Remember for 30 days" and the button. Here in the same look as the
 * form: black, the label in white capitals, the code big on a white line, the
 * help mark and the tooltip in the site's colours. Ids from Wordfence's own
 * login.js; anything it changes falls back to its own style.
 */
body.login #wfls-prompt-overlay {
	align-items: flex-start;
	padding: 0;
	background-color: #000;
}

body.login #wfls-prompt-overlay label {
	color: #fff;
}

body.login #wfls-prompt-overlay #wfls-token {
	width: 100%;
	background: transparent;
	color: #fff;
	font-size: 34px;
	letter-spacing: 0.3em;
}

body.login .wfls-2fa-code-help {
	margin-left: 4px;
	color: #11f05d;
	vertical-align: -2px;
}

body.login .wfls-2fa-code-help:hover,
body.login .wfls-2fa-code-help:focus {
	color: #fff;
}

body.login form .wfls-remember-device-wrapper label {
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.4;
	text-transform: none;
}

body.login .Zebra_Tooltip .Zebra_Tooltip_Message {
	border-radius: 0;
	background: #141414;
	box-shadow: none;
	font-family: "HK Grotesk", system-ui, sans-serif;
	font-size: 13px;
}

body.login .Zebra_Tooltip .Zebra_Tooltip_Arrow div {
	border-color: #141414 transparent transparent;
	box-shadow: none;
}

body.login .Zebra_Tooltip .Zebra_Tooltip_Arrow.Zebra_Tooltip_Arrow_Top div {
	border-color: transparent transparent #141414;
}
