/* Customer login screen (logged-out My Account). Loaded by igx-login.php.

   Two columns: an edge-to-edge photo and the form. The theme centres
   form.login at 50-80% width with left:50% + translateX, paints it grey
   through ::before and draws icons on the labels; those rules sit in a
   <style> block in the page body, hence the !important on the resets.
   Buttons follow the home hero buttons: brand pink, white text, 2px
   corners, uppercase. */

/* These screens have no title / breadcrumb band (switched off through the
   theme's own page setting). Without the theme's 150px gap under the header
   the photo starts directly below the menu. */
body.igx-login-page #header-wrapper {
	margin-bottom: 0 !important;
}

/* Let the layout reach both edges of the window. */
body.igx-login-page #main > .container {
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
}
body.igx-login-page #primary.content-full-width {
	display: block;
	width: 100%;
	min-height: 0;
	margin: 0 !important;
	padding: 0 !important;
}
body.igx-login-page #primary > .hentry,
body.igx-login-page #primary > .hentry > .woocommerce {
	margin: 0;
	padding: 0;
}
/* The theme leaves 120px under the last block of every page; here the photo runs down to the footer. */
body.igx-login-page #primary > *:last-child {
	margin-bottom: 0;
}

body.igx-login-page .igx-login {
	--igx-login-pink: var(--e-global-color-primary, #FF55AD);
	--igx-login-ink: #4B2020;
	--igx-login-line: #F3D2E0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: clamp(620px, 88vh, 980px);
	background: #fff;
}
body.igx-login-page .igx-login *,
body.igx-login-page .igx-login *::before,
body.igx-login-page .igx-login *::after {
	box-sizing: border-box;
}

/* Photo ------------------------------------------------------------------- */

body.igx-login-page .igx-login__media {
	position: relative;
	overflow: hidden;
	background: var(--wdtTertiaryColor, #F9E8EF);
}
body.igx-login-page .igx-login__media img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
	object-position: 50% 30%;
}

/* Form -------------------------------------------------------------------- */

body.igx-login-page .igx-login__panel {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 64px clamp(24px, 6vw, 96px);
}
body.igx-login-page .igx-login__inner {
	width: 100%;
	max-width: 440px;
}
body.igx-login-page .igx-login h2 {
	display: block;
	width: auto;
	margin: 0 0 18px;
	color: var(--igx-login-ink);
	font-size: 32px;
	line-height: 1.15;
	text-align: left;
}
body.igx-login-page .igx-login .woocommerce-notices-wrapper:not(:empty) {
	margin: 0 0 20px;
}

body.igx-login-page .igx-login form.login,
body.igx-login-page .igx-login form.register,
body.igx-login-page .igx-login form.lost_reset_password {
	position: static !important;
	left: auto !important;
	float: none !important;
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	-webkit-transform: none !important;
	transform: none !important;
}
body.igx-login-page .igx-login form.login::before,
body.igx-login-page .igx-login form.register::before,
body.igx-login-page .igx-login form .woocommerce-form-row label::before,
body.igx-login-page .igx-login form .woocommerce-form-row label::after {
	display: none !important;
}
body.igx-login-page .igx-login form .form-row {
	float: none !important;
	display: block;
	width: 100% !important;
	margin: 0 0 14px;
	padding: 0;
}
body.igx-login-page .igx-login form .woocommerce-form-row label {
	display: block;
	width: 100%;
	margin: 0 0 6px;
	padding: 0 !important;
	color: var(--igx-login-ink);
	font-size: 14px;
	font-weight: 600;
}
body.igx-login-page .igx-login form .password-input {
	display: block;
	width: 100%;
}
body.igx-login-page .igx-login form input.input-text {
	display: block;
	width: 100%;
	height: auto;
	min-height: 52px;
	margin: 0;
	padding: 13px 16px;
	border: 1px solid var(--igx-login-line);
	border-radius: 2px;
	background: #fff;
	color: var(--igx-login-ink);
	font-size: 16px;
	line-height: 1.4;
	box-shadow: none;
}
body.igx-login-page .igx-login form input.input-text:focus {
	border-color: var(--igx-login-pink);
	outline: 2px solid var(--wdtTertiaryColor, #F9E8EF);
	outline-offset: 0;
}
body.igx-login-page .igx-login form .woocommerce-form-login__rememberme {
	display: inline-block;
	width: auto;
	margin: 0;
	color: var(--igx-login-ink);
	font-size: 14px;
}
body.igx-login-page .igx-login form .button {
	display: block !important;
	float: none !important;
	clear: both;
	width: 100% !important;
	min-height: 52px;
	margin: 12px 0 0 !important;
	padding: 14px 24px !important;
	border: 1px solid var(--igx-login-pink) !important;
	border-radius: 2px !important;
	background: var(--igx-login-pink) !important;
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.08em !important;
	text-transform: uppercase;
	box-shadow: none;
}
body.igx-login-page .igx-login form .button:hover,
body.igx-login-page .igx-login form .button:focus-visible {
	border-color: var(--igx-login-ink) !important;
	background: var(--igx-login-ink) !important;
	color: #fff !important;
}
body.igx-login-page .igx-login form p.lost_password {
	margin: 4px 0 0;
	font-size: 14px;
	text-align: center;
}
body.igx-login-page .igx-login form.lost_reset_password > p:first-child {
	margin: 0 0 20px;
}

/* One form at a time. Create an account stays behind a link. */
body.igx-login-page .igx-login #customer_login .col-1,
body.igx-login-page .igx-login #customer_login .col-2 {
	float: none;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}
body.igx-login-page .igx-login #customer_login .col-2,
body.igx-login-page .igx-login #customer_login.is-login .col-2 {
	display: none;
}
body.igx-login-page .igx-login #customer_login.is-register .col-1,
body.igx-login-page.igx-show-register .igx-login #customer_login:not(.is-login) .col-1 {
	display: none;
}
body.igx-login-page .igx-login #customer_login.is-register .col-2,
body.igx-login-page.igx-show-register .igx-login #customer_login:not(.is-login) .col-2 {
	display: block;
}
body.igx-login-page .igx-login-back {
	margin: 0 0 16px;
}
body.igx-login-page .igx-login-back a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--igx-login-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}
body.igx-login-page .igx-login-back a::before {
	content: "\2190";
	font-size: 16px;
}
body.igx-login-page .igx-login-back a:hover,
body.igx-login-page .igx-login-back a:focus-visible {
	color: var(--igx-login-pink);
}

body.igx-login-page .igx-login .igx-login-switch {
	margin: 14px 0 0;
	font-size: 14px;
	text-align: center;
}
body.igx-login-page .igx-login .igx-login-switch a {
	color: var(--igx-login-ink);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
body.igx-login-page .igx-login__google {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	margin: 0 0 4px;
	border: 1px solid var(--igx-login-line);
	border-radius: 2px;
	background: #fff;
	color: var(--igx-login-ink);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
}
body.igx-login-page .igx-login__google svg {
	width: 18px;
	height: 18px;
	flex: none;
}
body.igx-login-page .igx-login__or {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 16px 0 18px;
	color: #111;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
body.igx-login-page .igx-login__or::before,
body.igx-login-page .igx-login__or::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--igx-login-line);
}

/* Continue with Google sits above the email fields. Its colours stay Google's own. */
body.igx-login-page .igx-login-google {
	margin: 0 0 8px;
}
body.igx-login-page .igx-login-google .nsl-container,
body.igx-login-page .igx-login-google .nsl-container-buttons,
body.igx-login-page .igx-login-google .nsl-button {
	width: 100%;
	max-width: none;
}
body.igx-login-page .igx-login-google .nsl-button {
	border-radius: 2px;
	min-height: 52px;
}
body.igx-login-page .igx-login-google__or {
	margin: 18px 0 0;
	color: #111;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
}

/* Account details: connect or disconnect Google. */
.woocommerce-EditAccountForm .igx-login-google {
	margin: 0 0 22px;
}
.woocommerce-EditAccountForm .igx-login-google__label {
	margin: 0 0 8px;
	color: #111;
	font-weight: 600;
}
.woocommerce-EditAccountForm .igx-login-google .nsl-container,
.woocommerce-EditAccountForm .igx-login-google .nsl-container-buttons,
.woocommerce-EditAccountForm .igx-login-google .nsl-button {
	width: 100%;
	max-width: none;
}
.woocommerce-EditAccountForm .igx-login-google .nsl-button {
	border-radius: 2px;
	min-height: 48px;
}

/* Small screens: photo on top, form below --------------------------------- */

@media (max-width: 900px) {
	body.igx-login-page .igx-login {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}
	body.igx-login-page .igx-login__media {
		height: clamp(240px, 44vh, 420px);
	}
	body.igx-login-page .igx-login__panel {
		padding: 40px 24px 56px;
	}
	body.igx-login-page .igx-login h2 {
		font-size: 30px;
	}
}
