/**
 * Smart Source authentication pages.
 *
 * Scoped to the standalone WordPress login and BuddyBoss registration
 * templates so these styles cannot affect the rest of the site.
 */

body.login,
body.bb-rl-register {
	--ssw-auth-cyan: #00c8ff;
	--ssw-auth-green: #00e5b0;
	--ssw-auth-navy-950: #040812;
	--ssw-auth-navy-900: #080d18;
	--ssw-auth-navy-850: #0b1320;
	--ssw-auth-navy-800: #0f1929;
	--ssw-auth-navy-700: #16243a;
	--ssw-auth-navy-600: #1a2b43;

	--bb-rl-primary-color: var(--ssw-auth-green);
	--bb-rl-secondary-color: var(--ssw-auth-cyan);
	--bb-rl-background-color: var(--ssw-auth-navy-800);
	--bb-rl-background-hover-color: var(--ssw-auth-navy-700);
	--bb-rl-background-secondary-color: var(--ssw-auth-navy-900);
	--bb-rl-background-secondary-hover-color: var(--ssw-auth-navy-850);
	--bb-rl-background-tertiary-color: #1a2540;
	--bb-rl-background-tertiary-hover-color: #243454;
	--bb-rl-background-disabled-color: #243044;
	--bb-rl-background-brand-primary-color: var(--ssw-auth-green);
	--bb-rl-background-brand-primary-hover-color: #33edc1;
	--bb-rl-background-brand-secondary-color: #103839;
	--bb-rl-background-brand-secondary-hover-color: #164b4b;
	--bb-rl-background-brand-disabled-color: #146353;
	--bb-rl-background-positive-secondary-color: #0c392f;
	--bb-rl-background-warning-primary-color: #ff9d3d;
	--bb-rl-background-warning-secondary-color: #3a2a14;
	--bb-rl-background-danger-primary-color: #ff5e6c;
	--bb-rl-background-danger-secondary-color: #3a1822;
	--bb-rl-border-color: #142038;
	--bb-rl-border-secondary-color: var(--ssw-auth-navy-600);
	--bb-rl-border-tertiary-color: #29415f;
	--bb-rl-border-quaternary-color: #45627d;
	--bb-rl-border-quinery-color: var(--ssw-auth-cyan);
	--bb-rl-border-brand-primary-color: #6affd8;
	--bb-rl-border-brand-secondary-color: var(--ssw-auth-green);
	--bb-rl-text-color: #e8f4ff;
	--bb-rl-text-white-color: #fff;
	--bb-rl-text-secondary-color: #b7c9dc;
	--bb-rl-text-tertiary-color: #829ab3;
	--bb-rl-text-disabled-color: #62758b;
	--bb-rl-text-brand-primary-color: var(--ssw-auth-green);
	--bb-rl-text-brand-secondary-color: var(--ssw-auth-cyan);
	--bb-rl-text-positive-primary-color: #b8ffe7;
	--bb-rl-text-warning-primary-color: #ffe1bd;
	--bb-rl-text-danger-primary-color: #ffd0d4;
	--bb-rl-icon-color: #d5e7f4;
	--bb-rl-icon-primary-color: #c1d5e5;
	--bb-rl-icon-secondary-color: #9bb2c5;
	--bb-rl-icon-tertiary-color: #6f879c;

	min-width: 0;
	min-height: 100vh;
	min-height: 100dvh;
	background:
		radial-gradient(circle at 16% 20%, rgba(0, 200, 255, 0.12), transparent 29rem),
		radial-gradient(circle at 84% 78%, rgba(0, 229, 176, 0.09), transparent 31rem),
		linear-gradient(145deg, var(--ssw-auth-navy-950), var(--ssw-auth-navy-900) 52%, #0a1422);
	color: var(--bb-rl-text-color);
	color-scheme: dark;
	font-family: InterText, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	position: relative;
	isolation: isolate;
}

:where(body.login, body.bb-rl-register)::before {
	position: fixed;
	z-index: -1;
	inset: 0;
	background-image:
		linear-gradient(rgba(0, 200, 255, 0.028) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 200, 255, 0.028) 1px, transparent 1px);
	background-size: 44px 44px;
	content: "";
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.76), transparent 88%);
	pointer-events: none;
}

:where(body.login, body.bb-rl-register) ::selection {
	background: rgba(0, 200, 255, 0.28);
	color: #fff;
}

/* Shared auth header. */
:where(body.login, body.bb-rl-register) .bb-rl-login-header {
	min-height: 82px;
	margin: 0;
	padding: 18px clamp(20px, 4vw, 64px);
	background: rgba(4, 8, 18, 0.74);
	border-color: rgba(41, 65, 95, 0.82);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(18px);
}

:where(body.login, body.bb-rl-register) .bb-rl-login-header::after {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.7), rgba(0, 229, 176, 0.7), transparent);
	content: "";
	pointer-events: none;
}

:where(body.login, body.bb-rl-register) .bb-rl-login-header-logo:has(> img) {
	width: 154px;
	height: 44px;
	background: url("img/logo-white.png") no-repeat left center / contain;
}

:where(body.login, body.bb-rl-register) .bb-rl-login-header-logo img {
	width: 100%;
	height: 100%;
	opacity: 0;
}

:where(body.login, body.bb-rl-register) .bb-rl-login-header-actions-text {
	color: var(--bb-rl-text-secondary-color);
}

:where(body.login, body.bb-rl-register) .bb-rl-button--secondary-fill {
	min-height: 38px;
	padding-inline: 18px;
	background: rgba(0, 229, 176, 0.07);
	border-color: rgba(0, 229, 176, 0.54);
	border-radius: 8px;
	color: var(--ssw-auth-green);
	font-weight: 700;
}

:where(body.login, body.bb-rl-register) .bb-rl-button--secondary-fill:hover {
	background: rgba(0, 229, 176, 0.14);
	border-color: var(--ssw-auth-green);
	color: #f4fffb;
	transform: translateY(-1px);
}

:where(body.login, body.bb-rl-register) a {
	color: var(--ssw-auth-cyan);
}

:where(body.login, body.bb-rl-register) a:hover {
	color: #6de3ff;
}

/* Shared form surface. */
body.login #login,
body.bb-rl-register .register-page-main {
	position: relative;
	flex-shrink: 0;
	overflow: hidden;
	background: linear-gradient(155deg, rgba(18, 31, 51, 0.98), rgba(11, 19, 32, 0.98));
	border: 1px solid rgba(41, 65, 95, 0.92);
	border-radius: 18px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42), 0 0 42px rgba(0, 200, 255, 0.055);
}

body.login #login::after,
body.bb-rl-register .register-page-main::after {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--ssw-auth-green), var(--ssw-auth-cyan));
	content: "";
}

body.login .login-heading h2::before,
body.bb-rl-register .register-page-main > h1::before {
	display: block;
	margin-bottom: 8px;
	color: var(--ssw-auth-green);
	content: "THE LOADING DOCK";
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.18em;
	line-height: 1.4;
}

body.login .login-heading::after,
body.bb-rl-register .register-page-main > h1::after {
	display: block;
	margin-top: 9px;
	color: var(--bb-rl-text-secondary-color);
	content: "Connect, learn, and grow with the reseller community.";
	font-size: 14px;
	font-weight: 400;
	line-height: 1.55;
}

body.login .login-heading,
body.bb-rl-register .register-page-main > h1 {
	margin-bottom: 28px;
}

body.login .login-heading h2,
body.bb-rl-register .register-page-main > h1 {
	color: #f4f9ff;
	font-size: clamp(25px, 3vw, 30px);
	font-weight: 750;
	letter-spacing: -0.03em;
	line-height: 1.16;
}

/* WordPress login. */
body.login {
	display: flex;
	flex-direction: column;
}

body.login #login {
	width: min(calc(100% - 32px), 480px);
	max-width: none;
	margin: clamp(34px, 7vh, 72px) auto;
	padding: clamp(28px, 4vw, 42px);
}

body.login #login h1.wp-login-logo a {
	width: 148px;
	height: 58px;
	margin: 0 0 22px;
	background-image: url("img/logo-white.png") !important;
	background-position: left center;
	background-size: contain;
}

body.login #login form {
	margin: 0;
}

body.login #login form > p:first-child,
body.login #login .user-pass-wrap {
	margin-bottom: 20px;
}

body.login label,
body.bb-rl-register .register-section label,
body.bb-rl-register .register-section legend {
	margin-bottom: 8px;
	color: #c7d8e8;
	font-size: 13px;
	font-weight: 650;
	letter-spacing: 0.01em;
}

body.login form .input,
body.login input[type="text"],
body.bb-rl-register .register-section input,
body.bb-rl-register .register-section select,
body.bb-rl-register .select2-selection {
	min-height: 46px;
	background: #0b1725;
	border: 1px solid var(--bb-rl-border-tertiary-color);
	border-radius: 9px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
	color: var(--bb-rl-text-color);
	font-size: 15px;
	transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

body.login form .input:hover,
body.bb-rl-register .register-section input:hover,
body.bb-rl-register .register-section select:hover {
	border-color: #3a5875;
}

body.login form .input:focus,
body.login input[type="text"]:focus,
body.bb-rl-register .register-section input:focus,
body.bb-rl-register .register-section select:focus,
body.bb-rl-register .select2-container--focus .select2-selection {
	background: #0d1b2b;
	border-color: var(--ssw-auth-green);
	box-shadow: 0 0 0 3px rgba(0, 229, 176, 0.12);
	outline: none;
}

:where(body.login, body.bb-rl-register) input:-webkit-autofill,
:where(body.login, body.bb-rl-register) input:-webkit-autofill:hover,
:where(body.login, body.bb-rl-register) input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--bb-rl-text-color);
	box-shadow: 0 0 0 1000px #0b1725 inset;
	caret-color: var(--bb-rl-text-color);
}

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

body.login .button.wp-hide-pw,
body.bb-rl-register .bb-toggle-password {
	color: var(--bb-rl-icon-secondary-color);
}

body.login .button.wp-hide-pw:hover,
body.bb-rl-register .bb-toggle-password:hover {
	color: var(--ssw-auth-cyan);
}

body.login .forgetmenot {
	margin-top: 3px;
}

body.login .forgetmenot input[type="checkbox"] {
	border-color: var(--bb-rl-border-tertiary-color);
	background: #0b1725;
	box-shadow: none;
	accent-color: var(--ssw-auth-green);
}

body.login .forgetmenot input[type="checkbox"]:checked::before {
	filter: hue-rotate(120deg) saturate(1.4);
}

body.login .forgetmenot label,
body.login .lostmenot,
body.login .lostmenot a {
	color: var(--bb-rl-text-secondary-color);
}

body.login .lostmenot a:hover {
	color: var(--ssw-auth-cyan);
}

body.login .submit .button-primary,
body.bb-rl-register .register-page-main .submit input {
	min-height: 48px;
	margin-top: 22px;
	background: linear-gradient(135deg, var(--ssw-auth-green), var(--ssw-auth-cyan));
	border: 0;
	border-radius: 9px;
	box-shadow: 0 12px 28px rgba(0, 229, 176, 0.15);
	color: #04121b;
	font-size: 15px;
	font-weight: 800;
	text-shadow: none;
	transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

body.login .submit .button-primary:hover,
body.bb-rl-register .register-page-main .submit input:hover {
	background: linear-gradient(135deg, #33edc1, #34d3ff);
	box-shadow: 0 15px 34px rgba(0, 200, 255, 0.22);
	filter: saturate(1.05);
	transform: translateY(-1px);
}

body.login .submit .button-primary:focus,
body.bb-rl-register .register-page-main .submit input:focus {
	box-shadow: 0 0 0 3px rgba(0, 229, 176, 0.2), 0 12px 28px rgba(0, 229, 176, 0.15);
	outline: 2px solid var(--bb-rl-border-brand-primary-color);
	outline-offset: 2px;
}

body.login #login:has(.privacy-policy-page-link:not(:empty)),
body.login #login:has(.privacy-policy-page-link:not(:empty)) form {
	margin-bottom: 0;
}

body.login .privacy-policy-page-link,
body.login .privacy-policy-page-link:not(:empty) {
	margin: 28px 0 0;
	padding-top: 20px;
	border-top: 1px solid rgba(41, 65, 95, 0.72);
	color: var(--bb-rl-text-tertiary-color);
}

body.login .privacy-policy-page-link a {
	color: var(--bb-rl-text-secondary-color);
	font-weight: 500;
	text-decoration-color: rgba(183, 201, 220, 0.45);
	text-underline-offset: 3px;
}

body.login .message,
body.login .success,
body.login .notice {
	border-width: 1px;
	border-radius: 9px;
}

/* BuddyBoss registration. */
body.bb-rl-register {
	display: flex;
	flex-direction: column;
}

body.bb-rl-register .register-page-main {
	width: min(calc(100% - 32px), 760px);
	max-width: none;
	margin: clamp(26px, 5vh, 52px) auto;
	padding: clamp(28px, 4vw, 42px);
}

body.bb-rl-register .register-page-main .register-page-logo {
	width: 148px;
	height: 58px;
	margin-bottom: 22px;
	background: url("img/logo-white.png") no-repeat left center / contain;
}

body.bb-rl-register .register-page-main .register-page-logo img {
	width: 100%;
	height: 100%;
	opacity: 0;
}

body.bb-rl-register .register-page-main .layout-wrap {
	display: grid;
	gap: 20px;
}

body.bb-rl-register .register-page-main #basic-details-section,
body.bb-rl-register .register-page-main #profile-details-section {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

body.bb-rl-register .register-section .bb-signup-field,
body.bb-rl-register .register-section fieldset {
	margin: 0;
}

body.bb-rl-register .register-section input {
	padding: 10px 13px;
}

body.bb-rl-register .register-page-main .bb-toggle-password {
	right: 7px;
	bottom: 12px;
}

body.bb-rl-register .register-privacy-info {
	margin: 24px 0 0;
	padding: 18px 20px;
	background: rgba(0, 200, 255, 0.055);
	border: 1px solid rgba(0, 200, 255, 0.16);
	border-radius: 10px;
	color: var(--bb-rl-text-secondary-color);
	font-size: 13px;
	line-height: 1.55;
}

body.bb-rl-register .register-privacy-info a {
	font-weight: 650;
	text-underline-offset: 3px;
}

body.bb-rl-register .register-page-main .submit input {
	width: 100%;
}

body.bb-rl-register .bp-feedback,
:where(body.login, body.bb-rl-register) .registration-popup,
body.login .mfp-content #terms-modal,
body.login .mfp-content #privacy-modal {
	background-color: var(--ssw-auth-navy-800);
	border-color: var(--bb-rl-border-tertiary-color);
	color: var(--bb-rl-text-color);
}

@media (max-width: 680px) {
	:where(body.login, body.bb-rl-register) .bb-rl-login-header {
		min-height: 72px;
		padding: 14px 18px;
	}

	:where(body.login, body.bb-rl-register) .bb-rl-login-header-logo:has(> img) {
		width: 126px;
		height: 38px;
	}

	:where(body.login, body.bb-rl-register) .bb-rl-login-header-actions {
		gap: 10px;
	}

	:where(body.login, body.bb-rl-register) .bb-rl-login-header-actions-text {
		display: none;
	}

	body.bb-rl-register .register-page-main #basic-details-section,
	body.bb-rl-register .register-page-main #profile-details-section {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

@media (max-width: 480px) {
	body.login #login,
	body.bb-rl-register .register-page-main {
		width: calc(100% - 24px);
		margin: 20px auto 28px;
		padding: 26px 22px;
		border-radius: 14px;
	}

	body.login .login-heading,
	body.bb-rl-register .register-page-main > h1 {
		margin-bottom: 24px;
	}

	body.login .forgetmenot,
	body.login .lostmenot {
		float: none;
	}

	body.login .lostmenot {
		margin-top: 12px;
	}
}

@media (max-height: 760px) and (min-width: 481px) {
	body.login #login {
		margin: 12px auto 18px;
		padding-block: 24px;
	}

	body.login #login h1.wp-login-logo a {
		height: 48px;
		margin-bottom: 14px;
	}

	body.login .login-heading {
		margin-bottom: 20px;
	}

	body.login #login form > p:first-child,
	body.login #login .user-pass-wrap {
		margin-bottom: 16px;
	}

	body.login .submit .button-primary {
		margin-top: 16px;
	}

	body.login .privacy-policy-page-link,
	body.login .privacy-policy-page-link:not(:empty) {
		margin-top: 20px;
		padding-top: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	:where(body.login, body.bb-rl-register) *,
	:where(body.login, body.bb-rl-register) *::before,
	:where(body.login, body.bb-rl-register) *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
