/**
 * The login screen, in the dark.
 *
 * Contrast is checked rather than assumed: white on #0C0D0F is about 18:1, and
 * the muted grey used for secondary links is still above 4.5:1. A login form
 * nobody can read at 1am in a green room is not a brand asset.
 */

body.login {
	background: #0C0D0F;
	color: #F2F2F2;
}

body.login #login {
	padding-top: 7vh;
	width: 340px;
}

/* ─── The wordmark ────────────────────────────────────────────────────────── */

#login h1 a {
	font-family: "Monster Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 30px;
	line-height: 1.2;
	color: #FFFFFF;
	text-decoration: none;
	background-image: none;
	width: auto;
	height: auto;
	margin-bottom: 22px;
	text-indent: 0;
	overflow: visible;
	display: block;
	text-align: center;
}

/* ─── The form ────────────────────────────────────────────────────────────── */

.login form {
	background: #16181C;
	border: 1px solid rgba(255, 255, 255, .10);
	border-radius: 12px;
	box-shadow: none;
	padding: 26px 24px 24px;
}

.login form label,
.login label {
	color: #C4C4C4;
	font-size: 13px;
}

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
	background: #0C0D0F;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 6px;
	color: #FFFFFF;
	padding: 8px 10px;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
	border-color: var(--mskin-accent, #ED2124);
	box-shadow: 0 0 0 1px var(--mskin-accent, #ED2124);
	outline: 2px solid transparent;
}

.login .button.wp-hide-pw .dashicons { color: #9AA1AB; }

.wp-core-ui .button-primary {
	background: var(--mskin-accent, #ED2124);
	border-color: var(--mskin-accent, #ED2124);
	color: #fff;
	text-shadow: none;
	box-shadow: none;
	border-radius: 6px;
	padding: 4px 16px;
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
	background: #fff;
	color: var(--mskin-accent, #ED2124);
}

/* ─── Everything under the form ───────────────────────────────────────────── */

.login #nav,
.login #backtoblog {
	padding: 0;
	margin: 14px 0 0;
	text-align: center;
}

.login #nav a,
.login #backtoblog a,
.login .privacy-policy-page-link a {
	color: #C4C4C4;
	text-decoration: none;
}

.login #nav a:hover,
.login #backtoblog a:hover,
.login .privacy-policy-page-link a:hover {
	color: var(--mskin-accent, #ED2124);
}

/* Errors keep their weight: this is the one message on the page that has to
   be impossible to miss. */
.login .message,
.login #login_error,
.login .notice {
	background: #16181C;
	border-left: 4px solid var(--mskin-accent, #ED2124);
	color: #F2F2F2;
	box-shadow: none;
	border-radius: 0 6px 6px 0;
}

.login .message { border-left-color: #6EE7A0; }

.mskin-login-footer {
	margin: 26px auto 0;
	max-width: 340px;
	text-align: center;
	font-size: 12px;
	color: #8A9099;
}

body.login .language-switcher { display: none; }


/* ─── No tracking ─────────────────────────────────────────────────────────
   The login screen is a public page. The wordmark was tracked out, which is
   the poster convention the rest of the site stopped using. */

#login,
#login *,
.login #login_error,
.login .message {
	letter-spacing: 0;
}
