/* Joy account auth content */
body.woocommerce-account:not(.logged-in) .page-title {
	display: none;
}

.joy-auth-page {
	position: relative;
	color: var(--joy-color-text, #261306);
	font-family: var(--joy-font-body, Outfit, sans-serif);
}

.joy-auth-page,
.joy-auth-page * {
	box-sizing: border-box;
}

.joy-auth-main {
	display: grid;
	place-items: center;
	width: 100%;
	min-height: clamp(560px, 58svh, 640px);
	padding: 0 20px clamp(48px, 6vw, 72px);
}

.joy-auth-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	width: min(655px, 100%);
	max-width: calc(100vw - 32px);
}

.joy-auth-page.is-register .joy-auth-panel {
	gap: 24px;
}

.joy-auth-panel__heading {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	text-align: center;
}

.joy-auth-panel__title {
	margin: 0;
	color: var(--joy-color-text, #261306);
	font-family: var(--joy-font-body, Outfit, sans-serif);
	font-size: clamp(2.25rem, 1.735rem + 1.429vw, 3rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
}

.joy-auth-panel__subtitle {
	margin: 0;
	color: var(--joy-color-text, #261306);
	font-family: var(--joy-font-body, Outfit, sans-serif);
	font-size: clamp(1.125rem, 0.868rem + 0.714vw, 1.5rem);
	font-weight: var(--joy-weight-regular, 400);
	line-height: 1.33;
}

.joy-auth-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: min(491px, 100%);
	max-width: calc(100vw - 32px);
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.joy-auth-field {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
}

.joy-auth-field__label {
	margin: 0;
	color: var(--joy-color-brown, #6a391b);
	font-size: 16px;
	font-weight: var(--joy-weight-bold, 700);
	line-height: 1.2;
}

.joy-auth-form input.joy-auth-field__control {
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 24px !important;
	border: 2px solid rgba(106, 57, 27, 0.4);
	border-radius: 40px;
	background: rgba(106, 57, 27, 0.1);
	color: var(--joy-color-brown, #6a391b);
	font-size: 16px;
	font-weight: var(--joy-weight-regular, 400);
	line-height: 1.2;
	box-shadow: none;
	backdrop-filter: blur(5px);
}

.joy-auth-form .password-input {
	display: block;
	width: 100%;
}

.joy-auth-form .show-password-input {
	display: none !important;
}

.joy-auth-form input.joy-auth-field__control::placeholder {
	color: var(--joy-color-brown, #6a391b);
	opacity: 1;
}

.joy-auth-form input.joy-auth-field__control:focus {
	border-color: var(--joy-color-brown, #6a391b);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(106, 57, 27, 0.14);
}

.joy-auth-form__footer {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: min(491px, 100%);
	max-width: calc(100vw - 32px);
	margin: 0;
}

.joy-auth-login-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	width: 100%;
}

.joy-auth-login-options__lost,
.joy-auth-switch a,
.joy-auth-terms a {
	color: var(--joy-color-brown, #6a391b);
	font-size: 16px;
	font-weight: var(--joy-weight-bold, 700);
	text-decoration: none;
}

.joy-auth-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--joy-color-brown, #6a391b);
	font-size: 16px;
	font-weight: var(--joy-weight-regular, 400);
	line-height: 1.3;
}

.joy-auth-form input.joy-auth-check__input {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin: 0;
	border: 2px solid rgba(106, 57, 27, 0.4);
	border-radius: 8px;
	background-color: rgba(106, 57, 27, 0.1);
	box-shadow: none;
	appearance: none;
}

.joy-auth-form input.joy-auth-check__input:checked {
	background-color: var(--joy-color-brown, #6a391b);
	box-shadow: inset 0 0 0 4px #eadfd5;
}

.joy-auth-check__label strong {
	font-weight: var(--joy-weight-bold, 700);
}

.joy-auth-form .woocommerce-privacy-policy-text {
	width: min(491px, 100%);
	max-width: calc(100vw - 32px);
	margin: 0;
	color: var(--joy-color-text, #261306);
	font-size: 15px;
	line-height: 1.45;
}

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

.joy-auth-form .woocommerce-privacy-policy-text a {
	color: var(--joy-color-brown, #6a391b);
	font-weight: var(--joy-weight-bold, 700);
	text-decoration: none;
}

.joy-auth-terms {
	align-items: flex-start;
}

.joy-auth-button.button,
.joy-auth-form .button.joy-auth-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 0 24px;
	border: 0;
	border-radius: 44px;
	background: var(--joy-color-brown, #6a391b);
	color: var(--joy-color-white, #fff);
	font-size: 16px;
	font-weight: var(--joy-weight-bold, 700);
	line-height: 1.2;
	text-transform: none;
	box-shadow: none;
	backdrop-filter: blur(5px);
}

.joy-auth-button.button:hover,
.joy-auth-button.button:focus {
	background: var(--joy-color-text, #261306);
	color: var(--joy-color-white, #fff);
}

.joy-auth-switch {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	color: var(--joy-color-brown, #6a391b);
	font-size: 16px;
	line-height: 1.3;
}

.joy-auth-page .woocommerce-notices-wrapper {
	width: min(491px, 100%);
	max-width: calc(100vw - 32px);
}

@media (max-width: 640px) {
	.joy-auth-main {
		min-height: 0;
		padding: 24px 16px 64px;
	}

	.joy-auth-panel,
	.joy-auth-page.is-register .joy-auth-panel {
		gap: 26px;
		width: 100%;
		max-width: 100%;
	}

	.joy-auth-form,
	.joy-auth-form__footer {
		width: 100%;
		max-width: 100%;
	}

	.joy-auth-panel__heading {
		gap: 12px;
	}

	.joy-auth-panel__title {
		max-width: 100%;
		font-size: 28px;
		line-height: 1.06;
		text-wrap: balance;
		overflow-wrap: normal;
	}

	.joy-auth-panel__subtitle {
		max-width: 100%;
		font-size: 18px;
		line-height: 1.35;
		text-wrap: balance;
	}

	.joy-auth-login-options,
	.joy-auth-switch {
		align-items: flex-start;
		flex-direction: column;
	}
}
