/* ==================================================================
 * The sign-in page (wp-login.php), in the design
 *
 * After "WEMountain Registration": on the photograph, the eyebrow in sky
 * and the headline in Big Shoulders; on the form side, the title in Big
 * Shoulders, "create an account" as a blue link, the fields' labels shown
 * as eyebrows over underlined fields, the blue pill, and the notice as a
 * quiet panel with a blue rule instead of the red block. BuddyBoss's split
 * layout and its sheet stay underneath; inc/wem-login.php loads this after
 * them, and the body classes are repeated for weight.
 * ================================================================== */

body.login.bb-login.bb-login {
	--wem-blue: #0047e0;
	--wem-blue-pressed: #0032a4;
	--wem-sky: #8fb2ff;
	--wem-ink: #141414;
	--wem-stone: #56524c;
	--wem-paper: #f6f5f1;
	--wem-hairline: rgba(20, 20, 20, .14);
	--wem-field-underline: rgba(20, 20, 20, .22);
	--wem-display: 'Big Shoulders', sans-serif;
	background: #fff;
	color: var(--wem-ink);
}

/* ---- The photograph and its words -------------------------------- */

body.login.bb-login.bb-login .login-split .split-overlay {
	opacity: 1 !important;
	background: linear-gradient(180deg, rgba(12, 15, 18, .15) 35%, rgba(12, 15, 18, .72)) !important;
}

body.login.bb-login.bb-login .wem-login-words {
	display: none;
}

@media (min-width: 992px) {
	body.login.login-split-page.bb-login .wem-login-words {
		position: fixed;
		z-index: 2;
		left: clamp(32px, 4vw, 64px);
		bottom: clamp(40px, 6vw, 88px);
		display: block;
		width: calc(50vw - 2 * clamp(32px, 4vw, 64px));
		max-width: 620px;
		color: #fff;
		pointer-events: none;
	}
}

body.login.bb-login.bb-login .wem-login-eyebrow {
	margin: 0 0 14px;
	color: var(--wem-sky);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .25em;
	line-height: 1.4;
	text-transform: uppercase;
}

body.login.bb-login.bb-login .wem-login-title {
	margin: 0;
	color: #fff;
	font-family: var(--wem-display);
	font-size: clamp(44px, 4.4vw, 72px);
	font-weight: 900;
	line-height: .9;
	letter-spacing: -.01em;
	text-transform: uppercase;
	text-wrap: balance;
	text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}

/* ---- The form side ----------------------------------------------- */

body.login.bb-login.bb-login #login {
	color: var(--wem-ink);
}

body.login.bb-login.bb-login #login > h1 a {
	margin-bottom: 8px;
}

/* The title, and "create an account" beside it. */
body.login.bb-login.bb-login .login-heading {
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px 16px;
	margin: clamp(24px, 4vh, 40px) 0 clamp(20px, 3vh, 32px);
}

body.login.bb-login.bb-login .login-heading h2 {
	margin: 0 auto 0 0;
	color: var(--wem-ink);
	font-family: var(--wem-display);
	font-size: clamp(40px, 3.6vw, 60px);
	font-weight: 900;
	line-height: .9;
	letter-spacing: -.01em;
	text-transform: uppercase;
}

body.login.bb-login.bb-login .login-heading a,
body.login.bb-login.bb-login .login-heading span {
	color: var(--wem-blue);
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

body.login.bb-login.bb-login .login-heading a:is(:hover, :focus-visible) {
	color: var(--wem-blue-pressed);
}

/* The notice ("please sign in…", errors, "check your email"): a quiet panel. */
body.login.bb-login.bb-login #login :is(#login_error, .message:not(.register):not(.reset-pass), .notice) {
	margin: 0 0 24px;
	padding: 14px 18px;
	background: var(--wem-paper);
	border: 0;
	border-left: 3px solid var(--wem-blue);
	border-radius: 0;
	box-shadow: none;
	color: var(--wem-ink);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
}

body.login.bb-login.bb-login #login :is(#login_error, .message) a {
	color: var(--wem-blue);
}

/* Fields: the label as an eyebrow, the field underlined. */
body.login.bb-login.bb-login :is(#loginform, #lostpasswordform, #resetpassform) {
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
}

body.login.bb-login.bb-login :is(#loginform, #lostpasswordform, #resetpassform) label {
	position: static;
	display: block;
	margin: 0 0 6px;
	color: var(--wem-stone);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	line-height: 1.4;
	text-transform: uppercase;
}

body.login.bb-login.bb-login :is(#loginform, #lostpasswordform, #resetpassform) label .screen-reader-text {
	position: static !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	overflow: visible !important;
	clip: auto !important;
	clip-path: none !important;
	white-space: normal !important;
}

/* BuddyBoss's icons inside the fields go: the labels say it. */
body.login.bb-login.bb-login form#loginform :is(label[for="user_login"], label[for="user_pass"])::before,
body.login.bb-login.bb-login .user-pass-wrap .wp-pwd::before {
	display: none !important;
}

body.login.bb-login.bb-login :is(#loginform, #lostpasswordform, #resetpassform) :is(input[type="text"], input[type="email"], input[type="password"]) {
	width: 100%;
	min-height: 48px;
	margin: 0 0 22px;
	padding: 10px 2px !important;
	background: transparent !important;
	border: 0 !important;
	border-bottom: 2px solid var(--wem-field-underline) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--wem-ink);
	font-size: 17px;
	transition: border-color 200ms cubic-bezier(.2, .7, .2, 1);
}

body.login.bb-login.bb-login :is(#loginform, #lostpasswordform, #resetpassform) :is(input[type="text"], input[type="email"], input[type="password"]):focus {
	border-bottom-color: var(--wem-blue) !important;
	outline: 0;
}

body.login.bb-login.bb-login :is(#loginform, #lostpasswordform, #resetpassform) input::placeholder {
	color: rgba(20, 20, 20, .4);
}

/* Show / hide the password: on the line, quiet. */
body.login.bb-login.bb-login form#loginform label[for="user_pass"] .label-switch {
	top: auto;
	bottom: -38px;
	right: 2px;
}

body.login.bb-login.bb-login .wp-pwd .wp-hide-pw {
	color: var(--wem-stone);
}

/* Remember me, and the lost-password link. */
body.login.bb-login.bb-login form .forgetmenot {
	/* WordPress 7.1 makes this row a flex row with a gap; keep the label beside the box, level with it, as before. */
	align-items: flex-start;
	gap: 0;
	margin: 0;
}

body.login.bb-login.bb-login #loginform .forgetmenot label {
	display: inline;
	margin: 0;
	color: var(--wem-ink);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

/* WordPress 7.1's help toggletip beside "Remember me": a small icon on the
   same line, so the lost-password link keeps its place beside it. */
body.login.bb-login.bb-login form .forgetmenot .wp-tooltip {
	display: inline-flex;
	align-items: center;
	height: 20px;
	margin-left: 2px;
}

body.login.bb-login.bb-login form .forgetmenot .wp-tooltip__toggle {
	width: 16px;
	height: 16px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wem-stone);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	cursor: pointer;
}

body.login.bb-login.bb-login form .forgetmenot .wp-tooltip__toggle .dashicons {
	width: 14px;
	height: 14px;
	font-size: 14px;
}

body.login.bb-login.bb-login form .forgetmenot .checkbox,
body.login.bb-login.bb-login form .forgetmenot input[type="checkbox"] {
	border-radius: 0 !important;
	border-color: rgba(20, 20, 20, .4) !important;
}

body.login.bb-login.bb-login form .forgetmenot input[type="checkbox"]:checked + .checkbox {
	background: var(--wem-blue) !important;
	border-color: var(--wem-blue) !important;
}

body.login.bb-login.bb-login form .lostmenot a,
body.login.bb-login.bb-login form#lostpasswordform a.bs-sign-in {
	color: var(--wem-blue);
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* The button: the blue pill. */
body.login.bb-login.bb-login .submit {
	clear: both;
	padding-top: 28px;
}

body.login.bb-login.bb-login :is(#loginform, #lostpasswordform, #resetpassform) :is(#wp-submit, .button-primary, input[type="submit"]) {
	float: none;
	width: 100%;
	min-height: 56px;
	padding: 14px 28px !important;
	background: var(--wem-blue) !important;
	border: 0 !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	color: #fff !important;
	font-family: var(--wem-display) !important;
	font-size: 19px !important;
	font-weight: 800 !important;
	letter-spacing: .04em;
	line-height: 1.1;
	text-shadow: none !important;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 200ms cubic-bezier(.2, .7, .2, 1);
}

body.login.bb-login.bb-login :is(#loginform, #lostpasswordform, #resetpassform) :is(#wp-submit, .button-primary, input[type="submit"]):is(:hover, :focus-visible) {
	background: var(--wem-blue-pressed) !important;
}

/* The links under the form. */
body.login.bb-login.bb-login .privacy-policy-page-link {
	margin-top: 28px;
	color: var(--wem-stone);
	font-size: 14px;
}

body.login.bb-login.bb-login .privacy-policy-page-link a,
body.login.bb-login.bb-login a.privacy-policy-link {
	color: var(--wem-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* The language switch: the site header's (globe, code, chevron, dark menu),
   in ink on the white form side, top right. */
body.login.bb-login.bb-login .wem-login-lang {
	position: fixed;
	z-index: 20;
	top: 18px;
	right: clamp(16px, 3vw, 40px);
}

body.login.bb-login.bb-login .wem-login-lang-button {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	margin: 0;
	padding: 0 10px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--wem-ink);
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .16em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
}

body.login.bb-login.bb-login .wem-login-lang-drop {
	position: absolute;
	top: 100%;
	right: 0;
	display: flex;
	flex-direction: column;
	width: 170px;
	padding: 10px 6px;
	background: #0c0f12;
	border: 1px solid rgba(255, 255, 255, .12);
	border-top: 2px solid var(--wem-blue);
	box-shadow: 0 24px 50px rgba(0, 0, 0, .45);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}

body.login.bb-login.bb-login .wem-login-lang:is(:hover, :focus-within, [data-open="1"]) > .wem-login-lang-drop {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .18s ease, transform .18s ease;
}

body.login.bb-login.bb-login .wem-login-lang-drop a {
	display: flex;
	align-items: center;
	padding: 9px 14px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-decoration: none;
	text-transform: uppercase;
}

body.login.bb-login.bb-login .wem-login-lang-drop a:is(:hover, :focus-visible) {
	background: rgba(255, 255, 255, .12);
	color: #fff;
}

body.login.bb-login.bb-login .wem-login-lang-drop a[aria-current="true"] {
	color: var(--wem-sky);
}

/* WordPress's and WPML's own switchers: the one above replaces them. */
body.login.bb-login.bb-login :is(.language-switcher, .wpml-login-ls) {
	display: none !important;
}
