/* =========================================================
   Guest authentication surface
   ========================================================= */

body.cma-ui-auth-page.woocommerce-account .hero-section,
body.cma-ui-auth-page.woocommerce-account .ct-page-title,
body.cma-ui-auth-page.woocommerce-account .ct-breadcrumbs,
body.cma-ui-auth-page.woocommerce-account .entry-header,
body.cma-ui-auth-page.woocommerce-account .page-header {
	display: none !important;
}

.cma-auth {
	padding-block: clamp(16px, 4vw, 44px) clamp(36px, 7vw, 72px);
	background: transparent;
	overflow: visible;
}

.cma-auth__woocommerce {
	display: grid;
	justify-items: center;
}

.cma-auth__woocommerce > .woocommerce-notices-wrapper,
.cma-auth__woocommerce > .woocommerce-error,
.cma-auth__woocommerce > .woocommerce-message,
.cma-auth__woocommerce > .woocommerce-info {
	width: min(100%, 620px);
}

.cma-auth__card {
	width: min(100%, 620px);
	padding: clamp(22px, 4vw, 34px);
	background: var(--cma-surface);
	border: var(--cma-content-border-w) solid var(--cma-border);
	border-radius: var(--cma-content-radius);
	box-shadow: var(--cma-shadow);
}

.cma-auth__header {
	display: grid;
	gap: 7px;
	margin-bottom: 24px;
}

.cma-auth .cma-auth__title {
	margin: 0;
	color: var(--cma-text);
	font-size: clamp(24px, 4vw, 30px);
	font-weight: var(--cma-font-heading-weight);
	line-height: 1.18;
}

.cma-auth .cma-auth__description {
	max-width: 46ch;
	margin: 0;
	color: var(--cma-text-dim);
	font-size: var(--cma-font-body-size);
	line-height: 1.55;
}

.cma-auth__tabs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px;
	margin-bottom: 24px;
	padding: 4px;
	background: var(--cma-inner-surface-alt);
	border: var(--cma-inner-border-w) solid var(--cma-border);
	border-radius: var(--cma-field-radius);
}

.cma-auth .cma-auth__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid transparent;
	border-radius: calc(var(--cma-field-radius) - 4px);
	background: transparent;
	box-shadow: none;
	color: var(--cma-text-dim);
	font: inherit;
	font-size: var(--cma-font-button-size);
	font-weight: var(--cma-font-button-weight);
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.cma-auth .cma-auth__tab[aria-selected="true"] {
	border-color: var(--cma-primary);
	background: var(--cma-button-gradient);
	color: #ffffff;
}

.cma-auth .cma-auth__tab:hover:not([aria-selected="true"]) {
	border-color: color-mix(in srgb, var(--cma-primary) 18%, var(--cma-border));
	background: var(--cma-surface);
	color: var(--cma-text);
}

.cma-auth .cma-auth__tab:active {
	transform: translateY(1px);
}

.cma-auth .cma-auth__tab:focus-visible,
.cma-auth .woocommerce input:focus-visible,
.cma-auth .woocommerce a:focus-visible,
.cma-auth .woocommerce button:focus-visible {
	outline: 3px solid var(--cma-active-35);
	outline-offset: 3px;
}

.cma-auth__panel[hidden] {
	display: none !important;
}

.cma-auth .cma-auth__form {
	display: block;
	margin: 0;
}

.cma-auth .woocommerce .form-row,
.cma-auth .woocommerce form .form-row {
	margin-bottom: 18px;
}

.cma-auth .woocommerce label {
	font-size: 13px;
	font-weight: 600;
}

.cma-auth .woocommerce .required {
	color: #b42318;
}

.cma-auth .woocommerce .input-text,
.cma-auth .woocommerce input[type="text"],
.cma-auth .woocommerce input[type="email"],
.cma-auth .woocommerce input[type="password"] {
	min-height: 50px;
	font-size: 16px;
}

.cma-auth .woocommerce .password-input {
	display: block;
	position: relative;
}

.cma-auth .woocommerce .password-input .input-text {
	padding-right: 48px;
}

.cma-auth .woocommerce .show-password-input {
	position: absolute;
	top: 50%;
	right: 10px;
	width: 36px;
	height: 36px;
	min-height: 36px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--cma-text-dim);
	transform: translateY(-50%);
}

.cma-auth .woocommerce .show-password-input:hover {
	background: var(--cma-inner-surface-alt);
	color: var(--cma-text);
}

.cma-auth .woocommerce .social-sep {
	display: none !important;
}

.cma-auth .cma-auth__remember-row {
	margin-top: -2px;
}

.cma-auth .woocommerce .woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	cursor: pointer;
}

.cma-auth .woocommerce .woocommerce-form-login__rememberme input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--cma-primary);
}

.cma-auth .woocommerce .cma-auth__submit-row {
	margin-bottom: 14px;
}

.cma-auth .woocommerce .cma-auth__submit {
	width: 100%;
	min-height: 50px;
	white-space: nowrap;
}

.cma-auth .cma-auth__lost-password {
	margin: 0;
	text-align: center;
}

.cma-auth .cma-auth__lost-password a,
.cma-auth .cma-auth__noscript a,
.cma-auth .woocommerce-privacy-policy-text a {
	color: var(--cma-text);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.cma-auth .cma-auth__password-note,
.cma-auth .woocommerce-privacy-policy-text {
	margin: 0 0 18px;
	color: var(--cma-text-dim);
	font-size: 13px;
	line-height: 1.55;
}

.cma-auth .woocommerce-privacy-policy-text p {
	margin: 0;
}

.cma-auth__social {
	margin-top: 24px;
	padding-top: 2px;
	border-top: var(--cma-inner-border-w) solid transparent;
}

.cma-auth__social .sssl-login {
	width: 100%;
	max-width: none;
	margin: 0;
}

.cma-auth__social .sssl-login__divider {
	margin-bottom: 14px;
	color: var(--cma-text-dim);
	font-size: 12px;
}

.cma-auth__social .sssl-login__buttons {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cma-auth__social .sssl-button {
	min-height: 50px;
	border-radius: var(--cma-button-radius);
	font-size: var(--cma-font-button-size);
	font-weight: var(--cma-font-button-weight);
	white-space: nowrap;
}

.cma-auth__noscript {
	margin: 18px 0 0;
	text-align: center;
}

.cma-ui--hairline-content.cma-auth .cma-auth__card {
	position: relative;
	border-color: transparent;
}

.cma-ui--hairline-content.cma-auth .cma-auth__card::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 200%;
	height: 200%;
	transform: scale(.5);
	transform-origin: top left;
	box-sizing: border-box;
	pointer-events: none;
	border: var(--cma-content-border-w-double) solid var(--cma-border);
	border-radius: var(--cma-content-radius-hairline);
}

@media (max-width: 640px) {
	.cma-auth {
		padding: 10px 0 44px;
	}

	.cma-auth__card {
		padding: 20px 16px 22px;
	}

	.cma-auth__header,
	.cma-auth__tabs {
		margin-bottom: 20px;
	}

	.cma-auth .cma-auth__tab {
		padding-inline: 8px;
		font-size: 13px;
	}

	.cma-auth__social .sssl-login__buttons {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cma-auth .cma-auth__tab,
	.cma-auth .woocommerce .button,
	.cma-auth__social .sssl-button {
		transition: none;
	}
}
