/* The login page (wp-login.php): black page, red slash, white card, the store's logo. Loaded by inc/admin.php
   (login_enqueue_scripts), which also sets the logo image. Owner: back end. */

body.login {
	background: #0e0f11;
	color: #15161a;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	min-height: 100vh;
	position: relative;
	overflow-x: hidden;
}
/* The red slash from the site's hero, behind the card */
body.login::before {
	content: "";
	position: fixed;
	top: -10vh;
	bottom: -10vh;
	right: -12vw;
	width: 34vw;
	background: #d61f2b;
	transform: skewX(-16deg);
	transform-origin: bottom;
	pointer-events: none;
}
/* A faint drafting grid on the black */
body.login::after {
	content: "";
	position: fixed;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
	background-size: 48px 48px;
	pointer-events: none;
}
#login { position: relative; z-index: 1; width: 360px; max-width: calc(100% - 32px); padding: 10vh 0 40px; }

.login h1 a {
	width: 100%;
	height: 64px;
	margin: 0 auto 28px;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	filter: brightness(0) invert(1); /* the logo in white on the black page */
}

.login form {
	padding: 28px 28px 24px;
	border: 0;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.login label { font-size: 14px; font-weight: 600; color: #15161a; }
.login form .input,
.login input[type="text"],
.login input[type="password"] {
	border: 2px solid #e1e1dc;
	border-radius: 4px;
	font-size: 16px;
	padding: 6px 10px;
	min-height: 46px;
	box-shadow: none;
	color: #15161a;
}
.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus { border-color: #d61f2b; box-shadow: 0 0 0 1px #d61f2b; outline: 0; }
.login .wp-pwd .button.wp-hide-pw { color: #686b72; }
.login .wp-pwd .button.wp-hide-pw:focus { box-shadow: 0 0 0 2px #d61f2b; border-color: transparent; }
.login .forgetmenot label { font-weight: 400; font-size: 13px; }
.login input[type="checkbox"] { border-color: #9b9ea6; }
.login input[type="checkbox"]:checked { background: #d61f2b; border-color: #d61f2b; }
.login input[type="checkbox"]:focus { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #d61f2b; border-color: #d61f2b; }
.login .submit .button-primary,
.wp-core-ui .login .button-primary {
	background: #d61f2b;
	border: 0;
	border-radius: 4px;
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	min-height: 46px;
	padding: 0 22px;
	box-shadow: none;
	text-shadow: none;
}
.login .submit .button-primary:hover,
.login .submit .button-primary:focus,
.wp-core-ui .login .button-primary:hover,
.wp-core-ui .login .button-primary:focus { background: #b0141f; color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #b0141f; }

.login #nav,
.login #backtoblog { text-align: center; padding: 0; font-size: 13px; }
.login #nav { margin-top: 22px; }
.login #backtoblog { margin-top: 10px; }
.login #nav a,
.login #backtoblog a { color: #b3b6bc; text-decoration: none; }
.login #nav a:hover,
.login #backtoblog a:hover,
.login #nav a:focus,
.login #backtoblog a:focus { color: #fff; }
.login .privacy-policy-page-link { display: none; }
.login .message,
.login .notice,
.login #login_error {
	border-left-color: #d61f2b;
	border-radius: 6px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
	font-size: 14px;
}
.login .message { border-left-color: #1f7a45; }

@media (max-width: 600px) {
	body.login::before { width: 60vw; right: -30vw; }
	#login { padding-top: 48px; }
	.login form { padding: 22px 20px 20px; }
	.login h1 a { height: 52px; margin-bottom: 20px; }
}
