/**
 * Equippedly Auth — login / create account.
 *
 * Bricks sets html { font-size: 62.5% }, so 1rem is 10px.
 * Every size in this file is px. Do not use rem here.
 *
 * WooCommerce's global .woocommerce-form-login / register rule
 * (max-width: 28rem, its own border) is reset only inside .eq-auth.
 */

.eq-auth-page .woocommerce-account .woocommerce,
.eq-auth-page .woocommerce-account .entry-content > .woocommerce {
	max-width: none;
}

/* The logged-out account wrapper still prints a generic "My account" title. */
.eq-auth-page .eq-woo-page__head {
	display: none;
}

.eq-auth-page .entry-title,
.eq-auth-page h1.wp-block-post-title,
.eq-auth-page .brxe-heading.eq-page-title,
.eq-auth-page article > h1:not(.eq-auth__title),
.eq-auth-page .woocommerce > h1:not(.eq-auth__title),
.eq-auth-page .woocommerce-MyAccount-content > h1:not(.eq-auth__title),
.eq-auth-page main h1:not(.eq-auth__title) {
	display: none !important;
}

.eq-auth-page .show-password-input {
	display: none !important;
}

/*
 * Let the auth column use the page width up to ~1140px.
 * Logged-in account, cart, and checkout keep the normal container.
 */
.eq-auth-page .eq-woo-account > .eq-container {
	max-width: 1220px;
	padding-inline: 20px;
}

.eq-auth-page .woocommerce > .woocommerce-notices-wrapper {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto 8px;
	align-self: stretch;
}

.eq-auth-page .woocommerce-error,
.eq-auth-page .woocommerce-message,
.eq-auth-page .woocommerce-info,
.eq-auth-page .woocommerce-privacy-policy-text {
	display: block;
	font-size: 15px;
	line-height: 1.5;
}

.eq-auth {
	padding: clamp(28px, 4vw, 64px) 0 clamp(40px, 5vw, 80px);
	background: var(--eq-color-chalk-white, #f7f5f1);
	min-height: 60vh;
	font-size: 16px;
	color: #141414;
	box-sizing: border-box;
}

.eq-auth *,
.eq-auth *::before,
.eq-auth *::after {
	box-sizing: border-box;
}

.eq-auth__shell {
	width: 100%;
	max-width: 1140px;
	margin-inline: auto;
}

.eq-auth__intro {
	max-width: 520px;
	margin: 0 0 32px;
	text-align: start;
}

.eq-auth__eyebrow {
	margin: 0 0 10px;
	font-family: var(--eq-font-heading, "General Sans", sans-serif);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--eq-color-text-muted, #8a8a8e);
}

.eq-auth__title {
	margin: 0 0 16px;
	font-family: var(--eq-font-display, "Clash Display", sans-serif);
	font-size: clamp(40px, 4vw, 56px);
	font-weight: 600;
	line-height: 0.98;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: #141414;
}

.eq-auth__lead {
	margin: 0;
	max-width: 42ch;
	font-family: var(--eq-font-body, Inter, sans-serif);
	font-size: 16px;
	line-height: 1.55;
	color: var(--eq-color-text-secondary-light, #4a4a4d);
}

.eq-auth__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	align-items: stretch;
}

.eq-auth__panel,
.eq-auth__card {
	min-width: 0;
	padding: 28px 28px 32px;
	background: var(--eq-color-pure-white, #fff);
	border: 1px solid var(--eq-color-border-light, #e4e2dd);
	border-radius: var(--eq-radius-lg, 12px);
}

.eq-auth__panel-title {
	margin: 0 0 8px;
	font-family: var(--eq-font-heading, "General Sans", sans-serif);
	font-size: 14px;
	font-weight: 650;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
	color: #141414;
}

.eq-auth__panel-lead {
	margin: 0 0 20px;
	font-family: var(--eq-font-body, Inter, sans-serif);
	font-size: 15px;
	line-height: 1.5;
	color: var(--eq-color-text-secondary-light, #4a4a4d);
}

/* Drop the global 28rem / 280px WooCommerce form card inside auth only. */
.eq-auth .woocommerce-form-login,
.eq-auth .woocommerce-form-register,
.eq-auth .eq-auth__form,
.woocommerce-account .eq-auth .woocommerce-form-login,
.woocommerce-account .eq-auth .woocommerce-form-register {
	float: none;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	text-align: start;
}

.eq-auth form .form-row {
	float: none;
	clear: both;
	width: 100%;
	margin: 0 0 16px;
	padding: 0;
}

.eq-auth form .form-row-first,
.eq-auth form .form-row-last,
.eq-auth form .form-row-wide {
	float: none;
	width: 100%;
}

.eq-auth form .form-row::before,
.eq-auth form .form-row::after {
	content: none;
	display: none;
}

.eq-auth__field label,
.eq-auth form .form-row label {
	display: block;
	float: none;
	width: auto;
	margin: 0 0 6px;
	font-family: var(--eq-font-heading, "General Sans", sans-serif);
	font-size: 14px;
	font-weight: 550;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
	color: #141414;
}

.eq-auth__optional {
	font-weight: 400;
	color: var(--eq-color-text-muted, #8a8a8e);
}

.eq-auth__field .input-text,
.eq-auth__field input[type="text"],
.eq-auth__field input[type="email"],
.eq-auth__field input[type="password"],
.eq-auth form .input-text {
	display: block;
	width: 100%;
	max-width: none;
	min-width: 0;
	height: 50px;
	min-height: 50px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--eq-color-border-light, #e4e2dd);
	border-radius: var(--eq-radius-md, 8px);
	background: var(--eq-color-pure-white, #fff);
	font-family: var(--eq-font-body, Inter, sans-serif);
	font-size: 16px;
	line-height: 1.4;
	color: #141414;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.eq-auth__field .input-text::placeholder,
.eq-auth form .input-text::placeholder {
	color: #8a8a8e;
	opacity: 1;
	font-size: 16px;
}

.eq-auth__field .input-text:focus,
.eq-auth form .input-text:focus {
	outline: none;
	border-color: #141414;
	box-shadow: inset 0 0 0 1px #141414, 0 0 0 3px rgba(203, 255, 77, 0.45);
}

.eq-auth__password-wrap {
	position: relative;
	display: block;
	width: 100%;
}

.eq-auth__password-wrap .input-text {
	padding-inline-end: 76px;
}

.eq-auth__toggle-password {
	position: absolute;
	top: 50%;
	inset-inline-end: 6px;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	font-family: var(--eq-font-heading, "General Sans", sans-serif);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #4a4a4d;
	cursor: pointer;
	min-height: 44px;
	padding: 0 8px;
}

.eq-auth__toggle-password:hover,
.eq-auth__toggle-password:focus-visible {
	color: #141414;
}

.eq-auth__row-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin: 0 0 16px;
	font-family: var(--eq-font-body, Inter, sans-serif);
	font-size: 15px;
	line-height: 1.4;
}

.eq-auth__remember {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	cursor: pointer;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	color: #4a4a4d;
}

.eq-auth__remember input {
	width: 16px;
	height: 16px;
	min-height: 0;
	margin: 0;
	accent-color: #141414;
	flex: 0 0 auto;
}

.eq-auth__lost {
	color: #141414;
	font-size: 15px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.eq-auth__lost:hover {
	color: #4a4a4d;
}

.eq-auth__actions {
	margin: 0;
	padding: 0;
	width: 100%;
}

.eq-auth__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	height: 52px;
	padding: 0 20px;
	border: 0;
	border-radius: var(--eq-radius-md, 8px);
	font-family: var(--eq-font-heading, "General Sans", sans-serif);
	font-size: 14px;
	font-weight: 650;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
}

.eq-auth__btn--primary {
	background: var(--eq-color-volt, #cbff4d);
	color: #141414;
}

.eq-auth__btn--primary:hover,
.eq-auth__btn--primary:focus {
	background: var(--eq-color-volt-hover, #b8eb3a);
	color: #141414;
}

.eq-auth__btn:focus-visible {
	outline: 2px solid #141414;
	outline-offset: 3px;
}

.eq-auth__btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.eq-auth__magic-msg {
	margin: 16px 0 0;
	font-family: var(--eq-font-body, Inter, sans-serif);
	font-size: 15px;
	line-height: 1.45;
	color: #4a4a4d;
}

.eq-auth__magic-msg.is-error {
	color: var(--eq-color-error, #d93f3f);
}

.eq-auth__magic-msg.is-success {
	color: var(--eq-color-success, #1f8a4c);
}

.eq-auth__google {
	margin: 0 0 20px;
}

.eq-auth__google-slot {
	display: flex;
	justify-content: center;
	min-height: 44px;
}

.eq-auth__divider {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 20px;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #8a8a8e;
}

.eq-auth__divider::before,
.eq-auth__divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e4e2dd;
}

.eq-auth__privacy,
.eq-auth__hint {
	margin: 0 0 16px;
	font-family: var(--eq-font-body, Inter, sans-serif);
	font-size: 14px;
	line-height: 1.5;
	color: #5c5c60;
}

.eq-auth__privacy a {
	color: #141414;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.eq-auth__footer {
	margin: 20px 0 0;
	font-family: var(--eq-font-body, Inter, sans-serif);
	font-size: 15px;
	line-height: 1.5;
	color: #4a4a4d;
}

.eq-auth__grid + .eq-auth__footer {
	margin-top: 24px;
	text-align: center;
}

.eq-auth__footer a {
	color: #141414;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.eq-auth .u-columns,
.eq-auth .col2-set {
	display: block;
	width: 100%;
	float: none;
}

@media (min-width: 1024px) {
	.eq-auth__grid:has(.eq-auth__panel--magic) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px;
	}

	.eq-auth[data-eq-auth-view="register"] .eq-auth__shell {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(480px, 560px);
		column-gap: clamp(40px, 5vw, 72px);
		align-items: center;
	}

	.eq-auth[data-eq-auth-view="register"] .eq-auth__intro {
		margin-bottom: 0;
	}

	.eq-auth[data-eq-auth-view="register"] .eq-auth__card {
		width: 100%;
	}
}

@media (max-width: 1023px) {
	.eq-auth[data-eq-auth-view="register"] .eq-auth__intro,
	.eq-auth[data-eq-auth-view="register"] .eq-auth__card {
		width: 100%;
		max-width: 560px;
		margin-inline: auto;
	}

	.eq-auth[data-eq-auth-view="register"] .eq-auth__intro {
		margin-bottom: 24px;
	}
}

@media (max-width: 767px) {
	.eq-auth-page .eq-woo-account > .eq-container {
		padding-inline: 16px;
	}

	.eq-auth {
		padding-top: 24px;
		padding-bottom: calc(24px + 96px);
	}

	.eq-auth__intro {
		max-width: none;
		margin-bottom: 20px;
	}

	.eq-auth__title {
		font-size: 36px;
	}

	.eq-auth__panel,
	.eq-auth__card,
	.eq-auth[data-eq-auth-view="register"] .eq-auth__card {
		max-width: none;
		padding: 20px 16px 24px;
	}

	.eq-auth[data-eq-auth-view="register"] .eq-auth__intro {
		max-width: none;
		padding: 0;
	}

	.eq-auth__row-meta {
		align-items: flex-start;
	}
}
