/*
 * Sign in / create account popup (siteryn.com pattern, Wooprex colors).
 * Scoped to .wx-auth so the theme's global form styles do not apply.
 */

.wx-auth {
	--wx-text: #131313;
	--wx-muted: #575757;
	--wx-accent: #131313;
	--wx-line: #e6e6ea;
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: "Manrope", sans-serif;
	color: var(--wx-text);
}

.wx-auth[hidden] {
	display: none;
}

.wx-auth--inline {
	position: static;
	min-height: calc(100vh - 74px);
	background: #f7f7f9;
}

.wx-auth__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(19, 19, 19, .45);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	animation: wx-auth-fade .2s ease;
}

.wx-auth__dialog {
	position: relative;
	width: 100%;
	max-width: 420px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 36px 32px 28px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(19, 19, 19, .14);
	text-align: center;
	animation: wx-auth-rise .25s ease;
}

.wx-auth--inline .wx-auth__dialog {
	animation: none;
}

@keyframes wx-auth-fade {
	from {
		opacity: 0;
	}
}

@keyframes wx-auth-rise {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}

.wx-auth .wx-auth__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--wx-muted);
	cursor: pointer;
}

.wx-auth .wx-auth__close:hover {
	background: #f1f1f4;
	color: var(--wx-text);
}

.wx-auth__logo {
	display: inline-block;
	margin-bottom: 18px;
}

.wx-auth__logo img {
	display: block;
	width: 150px;
	height: auto;
}

.wx-auth__view[hidden] {
	display: none;
}

.wx-auth .wx-auth__title {
	margin: 0 0 6px;
	font-family: "Manrope", sans-serif;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: normal;
	color: var(--wx-text);
}

.wx-auth .wx-auth__subtitle {
	margin: 0 0 22px;
	font-size: 15px;
	color: var(--wx-muted);
}

.wx-auth__form {
	text-align: left;
}

.wx-auth__field {
	margin: 0 0 14px;
}

.wx-auth__pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.wx-auth__control {
	position: relative;
	display: block;
}

.wx-auth__icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #8a8a93;
	display: flex;
	pointer-events: none;
}

.wx-auth .wx-auth__control input {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--wx-line);
	border-radius: 10px;
	background: #fff;
	color: var(--wx-text);
	font: 500 15px "Manrope", sans-serif;
	box-shadow: none;
	outline: none;
}

.wx-auth .wx-auth__icon + input {
	padding-left: 42px;
}

.wx-auth .wx-auth__control input:has(+ .wx-auth__toggle) {
	padding-right: 44px;
}

.wx-auth .wx-auth__control input::placeholder {
	color: #8a8a93;
}

.wx-auth .wx-auth__control input:focus {
	padding-left: 14px;
	background: #fff; /* the theme's input:focus turns it grey and resets the left padding */
	border-color: var(--wx-accent);
	box-shadow: 0 0 0 3px rgba(42, 26, 85, .12);
}

.wx-auth .wx-auth__control .wx-auth__icon + input:focus {
	padding-left: 42px; /* keeps the text clear of the icon */
}

.wx-auth__field.is-invalid input {
	border-color: #c62828;
}

.wx-auth .wx-auth__toggle {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: #8a8a93;
	cursor: pointer;
}

.wx-auth .wx-auth__toggle:hover,
.wx-auth .wx-auth__toggle.is-on {
	color: var(--wx-text);
}

.wx-auth .wx-auth__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 2px 0 18px;
	font-size: 14px;
}

.wx-auth .wx-auth__remember {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--wx-muted);
	cursor: pointer;
}

.wx-auth__remember input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--wx-text);
}

.wx-auth .wx-auth__row a,
.wx-auth .wx-auth__switch a,
.wx-auth .wx-auth__terms a {
	color: var(--wx-accent);
	font-size: inherit;
	font-weight: 600;
	line-height: inherit;
	text-decoration: none;
}

.wx-auth__row a:hover,
.wx-auth__switch a:hover,
.wx-auth__terms a:hover {
	text-decoration: underline;
}

.wx-auth .wx-auth__terms {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--wx-muted);
}

.wx-auth__error {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #fdecec;
	color: #c62828;
	font-size: 14px;
}

.wx-auth__error:empty {
	display: none;
}

.wx-auth .wx-auth__notice {
	margin: 0 0 14px;
	padding: 10px 14px;
	border-radius: 10px;
	background: #fcf6ef;
	color: var(--wx-text);
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
}

.wx-auth__notice:empty {
	display: none;
}

.wx-auth__subtitle strong {
	color: var(--wx-text);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.wx-auth .wx-auth__switch a.is-waiting {
	color: var(--wx-muted);
	font-weight: 500;
	cursor: default;
	text-decoration: none;
}

.wx-auth .wx-auth__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 50px;
	margin: 0;
	border: 0;
	border-radius: 12px;
	background: #131313;
	color: #fff;
	font: 700 16px "Manrope", sans-serif;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(19, 19, 19, .18);
	transition: background-color .2s ease, transform .1s ease;
}

.wx-auth .wx-auth__submit:hover {
	background: #000;
}

.wx-auth .wx-auth__submit:active {
	transform: translateY(1px);
}

.wx-auth .wx-auth__submit:disabled {
	opacity: .7;
	cursor: progress;
}

.wx-auth .wx-auth__switch {
	margin: 20px 0 0;
	padding-top: 18px;
	border-top: 1px solid var(--wx-line);
	font-size: 15px;
	color: var(--wx-muted);
}

body.wx-auth-open {
	overflow: hidden;
}

@media (max-width: 480px) {
	.wx-auth__dialog {
		padding: 30px 20px 22px;
	}

	.wx-auth__pair {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

/* Full pages: /login/, /register/, /forgot-password/, /reset-password/ (template-parts/store/auth-page.php) */
.wx-auth-page {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: 100vh;
	font-family: "Manrope", sans-serif;
}

.wx-auth-page__brand {
	display: flex;
	align-items: center;
	padding: 60px clamp(40px, 7vw, 110px);
	background: #000 url("../../../../uploads/2025/12/bg-black-scaled.webp") center / cover no-repeat;
	color: #fcf6ef;
}

.wx-auth-page__pitch {
	max-width: 520px;
}

.wx-auth-page .wx-auth-page__phrase {
	margin: 0 0 18px;
	color: #fff;
	font-size: clamp(30px, 2.8vw, 40px);
	font-weight: 700;
	line-height: 1.12;
}

.wx-auth-page .wx-auth-page__line {
	margin: 0 0 36px;
	color: #bdbab4;
	font-size: 18px;
	line-height: 1.6;
}

.wx-auth-page .wx-auth-page__promises {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wx-auth-page .wx-auth-page__promises li {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #fcf6ef;
	font-size: 16px;
	line-height: 1.5;
}

.wx-auth-page .wx-auth-page__promises svg {
	flex: none;
}

.wx-auth--page {
	min-height: 100vh;
	background: #fff;
}

.wx-auth--page .wx-auth__dialog {
	max-height: none;
	overflow: visible;
	box-shadow: none;
}

/* same size as the popup's h2: the site's h1 rule in custom.css uses !important */
.wx-auth--page .wx-auth__dialog h1.wx-auth__title {
	font-size: 24px !important;
	line-height: 1.25 !important;
}

@media (max-width: 991px) {
	.wx-auth-page {
		grid-template-columns: minmax(0, 1fr);
	}

	.wx-auth-page__brand {
		display: none;
	}
}
