/* Piece of Queque — log-in page */
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

body.login {
	background: #d3cfc4;
	color: #000;
	font-family: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

body.login #login {
	width: 360px;
	max-width: calc(100% - 32px);
	padding: 6vh 0 40px;
}

/* Logo */
body.login h1 a,
body.login .wp-login-logo a {
	background-image: var(--poq-login-logo);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	width: 100%;
	height: 64px;
	margin: 0 auto 28px;
}

/* Card */
body.login form,
body.login #login form {
	background: #f4f2ec;
	border: 2.5px solid #000;
	border-radius: 22px;
	box-shadow: 6px 6px 0 #000;
	padding: 26px 24px 24px;
	margin-top: 0;
}

body.login label {
	font-size: 0.95rem;
	font-weight: 700;
	color: #000;
}

/* Fields */
body.login form .input,
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
	font-family: inherit;
	font-size: 1rem;
	color: #000;
	background: #fff;
	border: 2px solid #000;
	border-radius: 14px;
	box-shadow: 4px 4px 0 #000;
	padding: 9px 14px;
	min-height: 46px;
	margin: 6px 0 18px;
	transition: box-shadow 0.12s ease, transform 0.12s ease;
}

body.login form .input:focus,
body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
	outline: none;
	border-color: #000;
	box-shadow: 6px 6px 0 #000;
	transform: translate(-1px, -1px);
}

body.login .wp-pwd {
	position: relative;
}

body.login .wp-pwd .input {
	padding-right: 48px;
}

body.login .button.wp-hide-pw {
	color: #000;
	top: 8px;
	right: 6px;
	height: 40px;
	min-width: 40px;
	border-radius: 999px;
	box-shadow: none;
	border: 0;
	background: transparent;
}

body.login .button.wp-hide-pw:focus {
	outline: none;
	box-shadow: 0 0 0 2px #000;
}

/* Checkbox */
body.login input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	margin: -2px 6px 0 0;
	background: #fff;
	border: 2px solid #000;
	border-radius: 6px;
	box-shadow: 2px 2px 0 #000;
	vertical-align: middle;
}

body.login input[type="checkbox"]:checked {
	background: #a02c2c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

body.login input[type="checkbox"]:checked::before {
	content: none;
}

body.login .forgetmenot label {
	font-weight: 500;
}

/* Button */
body.login .button-primary,
body.login #wp-submit {
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	height: auto;
	min-height: 44px;
	padding: 10px 26px;
	color: #fff;
	background: #a02c2c;
	border: 2px solid #000;
	border-radius: 999px;
	box-shadow: 4px 4px 0 #000;
	text-shadow: none;
	transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

body.login .button-primary:hover,
body.login .button-primary:focus,
body.login #wp-submit:hover {
	background: #8a2424;
	border-color: #000;
	color: #fff;
	box-shadow: 4px 4px 0 #000;
	outline: none;
}

body.login .button-primary:active,
body.login #wp-submit:active {
	transform: translate(3px, 3px);
	box-shadow: 1px 1px 0 #000;
}

body.login .submit {
	margin-top: 4px;
}

/* Messages */
body.login .message,
body.login .notice,
body.login .success,
body.login #login_error {
	background: #fff;
	color: #000;
	border: 2px solid #000;
	border-left: 6px solid #2c5a9e;
	border-radius: 14px;
	box-shadow: none;
	padding: 12px 14px;
	margin-bottom: 20px;
}

body.login #login_error,
body.login .notice-error {
	background: #f2d9d5;
	border-left-color: #a02c2c;
	color: #000;
}

body.login .success,
body.login .notice-success {
	background: #d9eadb;
	border-left-color: #1f5d3a;
}

/* Links under the card */
body.login #nav,
body.login #backtoblog {
	text-align: center;
	font-size: 0.9rem;
	padding: 0;
	margin: 22px 0 0;
}

body.login #backtoblog {
	margin-top: 10px;
}

body.login #nav a,
body.login #backtoblog a,
body.login .privacy-policy-link {
	color: #000;
	font-weight: 600;
	text-decoration: none;
}

body.login #nav a:hover,
body.login #backtoblog a:hover,
body.login .privacy-policy-link:hover {
	color: #a02c2c;
	text-decoration: underline;
}

body.login .privacy-policy-page-link {
	margin-top: 18px;
}

/* Language switcher */
body.login .language-switcher {
	margin-top: 24px;
}

body.login .language-switcher form {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
}

body.login .language-switcher select {
	border: 2px solid #000;
	border-radius: 999px;
	font-family: inherit;
	padding: 4px 30px 4px 12px;
	min-height: 36px;
}

body.login .language-switcher .button {
	font-family: inherit;
	color: #a02c2c;
	background: #fff;
	border: 2px solid #a02c2c;
	border-radius: 999px;
	min-height: 36px;
	padding: 0 16px;
}

body.login .language-switcher .button:hover {
	background: #a02c2c;
	color: #fff;
}

body.login a:focus {
	outline: 2px dashed #000;
	outline-offset: 2px;
	box-shadow: none;
}

@media (max-width: 480px) {
	body.login form,
	body.login #login form {
		box-shadow: 4px 4px 0 #000;
		padding: 22px 18px 20px;
	}
}

body.login .message a,
body.login .notice a,
body.login #login_error a {
	color: #a02c2c;
	font-weight: 600;
}
