/*
 * The WordPress login screen: warm white background, the Tech East logo and
 * the site's own fields and buttons. Loaded by inc/login.php, after
 * WordPress's login styles.
 *
 * The colours and sizes repeat assets/css/tokens.css, which this screen does
 * not load.
 */

@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/archivo-latin-wght-normal.woff2") format("woff2-variations");
}

body.login {
	background: #FDFCF4;
	color: #2A2C2F;
	font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

#login {
	width: 360px;
	max-width: calc(100% - 40px);
	padding-top: 6%;
}

/* The logo. */
#login h1 a {
	width: 198px;
	height: 60px;
	margin-bottom: 32px;
	background: url("../img/logo.svg") no-repeat center / contain;
}

/* The form sits straight on the page, without WordPress's white box. */
.login form {
	margin-top: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.login label {
	color: #2A2C2F;
	font-size: 14px;
	font-weight: 600;
}

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid #8E8780;
	border-radius: 10px;
	background: #FFFFFF;
	box-shadow: none;
	color: #2A2C2F;
	font-family: inherit;
	font-size: 16px;
	line-height: 24px;
}

.login .wp-pwd input[type="password"],
.login .wp-pwd input[type="text"] {
	padding-right: 48px;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus,
.login input[type="checkbox"]:focus,
.login .button:focus,
.login a:focus {
	border-color: #2A2C2F;
	box-shadow: none;
	outline: 2px solid #FF5623;
	outline-offset: 1px;
}

/* Show or hide the password. */
.login .button.wp-hide-pw {
	min-height: 48px;
	color: #2A2C2F;
}

.login .button.wp-hide-pw:hover {
	color: #45413D;
}

/* Remember me, level with the button beside it. */
.login .forgetmenot {
	margin: 0;
	line-height: 44px;
}

.login .forgetmenot label {
	font-weight: 400;
}

.login input[type="checkbox"] {
	border-color: #8E8780;
	border-radius: 4px;
}

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

/* Buttons: the site's dark pill. */
.login .button-primary,
#login form .submit input {
	min-height: 44px;
	padding: 6px 20px;
	border: 2px solid #2A2C2F;
	border-radius: 50px;
	background: #2A2C2F;
	box-shadow: none;
	color: #FDFCF4;
	font-family: inherit;
	font-size: 15px;
	line-height: 28px;
	text-shadow: none;
}

.login .button-primary:hover,
.login .button-primary:focus,
#login form .submit input:hover,
#login form .submit input:focus {
	border-color: #45413D;
	background: #45413D;
	color: #FDFCF4;
}

/* Other buttons, such as "Generate password". */
.login .button:not(.button-primary):not(.wp-hide-pw) {
	border-color: #2A2C2F;
	border-radius: 50px;
	background: transparent;
	color: #2A2C2F;
}

/* Links under the form. */
.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 .message a,
.login .notice a {
	color: #2A2C2F;
	text-decoration: underline;
	text-underline-offset: 3px;
}

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

.login .privacy-policy-page-link {
	margin: 24px 0 0;
	text-align: left;
}

/* Messages and errors above the form. */
.login .message,
.login .notice,
.login .success {
	margin-bottom: 20px;
	border-left-color: #2A2C2F;
	border-radius: 10px;
	background: #FFFFFF;
	box-shadow: inset 0 0 0 1px #E4DFD8;
	color: #2A2C2F;
}

.login .notice-error,
.login #login_error {
	border-left-color: #B42318;
}

/* The language menu, when the site has more than one language. */
.login .language-switcher {
	margin-top: 24px;
}
