/*
 * AS Plus sign-in, registration and password-reset pages.
 *
 * Two columns on desktop (form, then a brand panel), one column on phones with the
 * brand panel as a compact banner above the form. Colours, radius and fonts come from
 * the theme tokens (--asplus-*).
 */

/* The My Account grid is for signed-in customers (menu + content); here the page is just the card. */
.asplus-auth-page .woocommerce {
	display: block;
	max-width: 1100px;
	margin-inline: auto;
}

.asplus-auth {
	--auth-gold: var(--asplus-accent, #d8ae6a);
	--auth-ink: #1b1a18;
	--auth-radius: var(--asplus-radius, 16px);
	--auth-red: #e5484d;

	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: 560px;
	margin-block: 24px;
	overflow: hidden;
	background: var(--asplus-surface, #161615);
	border: 1px solid var(--asplus-border, rgba(245, 242, 238, 0.1));
	border-radius: calc(var(--auth-radius) * 1.4);
	color: var(--asplus-text, #f5f2ee);
}

.asplus-auth--single {
	grid-template-columns: minmax(0, 520px);
	justify-content: center;
	min-height: 0;
	background: none;
	border: 0;
	overflow: visible;
}

.asplus-auth .asplus-icon {
	display: block;
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

.asplus-auth a:focus-visible,
.asplus-auth button:focus-visible {
	outline: 2px solid var(--auth-gold);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ brand */

.asplus-auth-brand {
	position: relative;
	order: 2;
	display: flex;
	align-items: center;
	padding: 40px;
	background:
		radial-gradient(ellipse at 20% 15%, rgba(216, 174, 106, 0.2), transparent 55%),
		radial-gradient(ellipse at 85% 95%, rgba(216, 174, 106, 0.12), transparent 50%),
		var(--asplus-bg, #0b0b0c);
	border-inline-start: 1px solid var(--asplus-border, rgba(245, 242, 238, 0.1));
}

.asplus-auth-brand.has-image {
	background-image:
		linear-gradient(to top, var(--asplus-bg, #0b0b0c) 8%, rgba(11, 11, 12, 0.72) 55%, rgba(11, 11, 12, 0.5) 100%),
		var(--asplus-auth-image);
	background-size: cover;
	background-position: center;
}

.asplus-auth-brand-inner {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
}

.asplus-auth-logo img {
	max-height: 72px;
	width: auto;
}

.asplus-auth-logo-name {
	font-family: var(--asplus-font-heading, inherit);
	font-size: 2rem;
	font-weight: 800;
	color: var(--auth-gold);
}

.asplus-auth-welcome {
	margin: 10px 0 0;
	font-family: var(--asplus-font-heading, inherit);
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	font-weight: 800;
	line-height: 1.35;
	color: var(--asplus-text, #f5f2ee);
}

.asplus-auth-lead {
	margin: 0;
	color: var(--asplus-muted, #a79f95);
	font-size: 1rem;
	line-height: 1.8;
}

.asplus-auth-points {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.asplus-auth-points li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
}

.asplus-auth-points .asplus-icon {
	width: 34px;
	height: 34px;
	padding: 7px;
	border: 1px solid rgba(216, 174, 106, 0.5);
	border-radius: 10px;
	color: var(--auth-gold);
}

/* ------------------------------------------------------------------- card */

.asplus-auth-card {
	order: 1;
	padding: 40px;
	min-width: 0;
}

.asplus-auth--single .asplus-auth-card {
	padding: 36px;
	background: var(--asplus-surface, #161615);
	border: 1px solid var(--asplus-border, rgba(245, 242, 238, 0.1));
	border-radius: calc(var(--auth-radius) * 1.4);
}

.asplus-auth-tabs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	margin-block-end: 26px;
	padding: 5px;
	background: var(--asplus-bg, #0b0b0c);
	border: 1px solid var(--asplus-border, rgba(245, 242, 238, 0.1));
	border-radius: calc(var(--auth-radius) * 0.9);
}

.asplus-auth-tab {
	min-height: 44px;
	padding: 8px 12px;
	background: transparent;
	border: 0;
	border-radius: calc(var(--auth-radius) * 0.65);
	color: var(--asplus-muted, #a79f95);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.asplus-auth-tab:hover {
	color: var(--asplus-text, #f5f2ee);
}

.asplus-auth-tab[aria-selected="true"] {
	background: var(--auth-gold);
	color: var(--auth-ink);
}

/* Without script both panels are shown one under the other. */
.js-auth .asplus-auth-panel:not(.is-active) {
	display: none;
}

.asplus-auth-panel + .asplus-auth-panel {
	margin-block-start: 36px;
}

.js-auth .asplus-auth-panel + .asplus-auth-panel {
	margin-block-start: 0;
}

.asplus-auth-title {
	margin: 0 0 20px;
	font-family: var(--asplus-font-heading, inherit);
	font-size: 1.4rem;
	font-weight: 800;
}

.asplus-auth-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
}

.asplus-auth-row {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.asplus-auth-row label {
	color: var(--asplus-text, #f5f2ee);
	font-size: 0.9rem;
	font-weight: 600;
}

.asplus-auth-req {
	color: var(--auth-gold);
}

.asplus-auth-field {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-inline: 14px;
	background: var(--asplus-surface-2, #1f1e1c);
	border: 1px solid var(--asplus-border, rgba(245, 242, 238, 0.14));
	border-radius: calc(var(--auth-radius) * 0.75);
	color: var(--asplus-muted, #a79f95);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.asplus-auth-field:focus-within {
	border-color: var(--auth-gold);
	box-shadow: 0 0 0 3px rgba(216, 174, 106, 0.16);
}

.asplus-auth .asplus-auth-field input.input-text,
.asplus-auth .asplus-auth-field input[type="text"],
.asplus-auth .asplus-auth-field input[type="email"],
.asplus-auth .asplus-auth-field input[type="tel"],
.asplus-auth .asplus-auth-field input[type="password"] {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 50px;
	margin: 0;
	padding: 10px 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--asplus-text, #f5f2ee);
	font: inherit;
}

.asplus-auth .asplus-auth-field input:focus {
	outline: 0;
	box-shadow: none;
}

.asplus-auth-eye {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 8px;
	color: var(--asplus-muted, #a79f95);
	cursor: pointer;
}

.asplus-auth-eye:hover,
.asplus-auth-eye[aria-pressed="true"] {
	color: var(--auth-gold);
}

.asplus-auth-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	font-size: 0.9rem;
}

.asplus-auth-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--asplus-muted, #a79f95);
	cursor: pointer;
}

.asplus-auth-check input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--auth-gold);
}

.asplus-auth-meta a,
.asplus-auth-link {
	padding: 0;
	background: none;
	border: 0;
	color: var(--auth-gold);
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.asplus-auth-meta a:hover,
.asplus-auth-link:hover {
	text-decoration: underline;
}

.asplus-auth-hint {
	margin: 0;
	color: var(--asplus-muted, #a79f95);
	font-size: 0.88rem;
	line-height: 1.8;
}

.asplus-auth .asplus-auth-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	margin: 6px 0 0;
	padding: 12px 20px;
	background: var(--auth-gold);
	border: 0;
	border-radius: calc(var(--auth-radius) * 0.85);
	color: var(--auth-ink);
	font: inherit;
	font-size: 1.05rem;
	font-weight: 800;
	cursor: pointer;
	transition: filter 0.18s ease;
}

.asplus-auth .asplus-auth-submit:hover {
	background: var(--auth-gold);
	color: var(--auth-ink);
	filter: brightness(1.07);
}

.asplus-auth-switch {
	margin: 20px 0 0;
	color: var(--asplus-muted, #a79f95);
	font-size: 0.92rem;
	text-align: center;
}

/* --------------------------------------------------------- WooCommerce notices */

.asplus-auth-page .woocommerce-error,
.asplus-auth-page .woocommerce-message,
.asplus-auth-page .woocommerce-info {
	margin: 24px 0 0;
	padding: 14px 18px;
	list-style: none;
	background: var(--asplus-surface, #161615);
	border: 1px solid var(--asplus-border, rgba(245, 242, 238, 0.12));
	border-inline-start: 4px solid var(--asplus-accent, #d8ae6a);
	border-radius: calc(var(--asplus-radius, 16px) * 0.75);
	color: var(--asplus-text, #f5f2ee);
	line-height: 1.8;
}

.asplus-auth-page .woocommerce-error {
	border-inline-start-color: #e5484d;
}

.asplus-auth-page .woocommerce-error a,
.asplus-auth-page .woocommerce-message a,
.asplus-auth-page .woocommerce-info a {
	color: var(--asplus-accent, #d8ae6a);
}

/* -------------------------------------------------- e-mail form behind the mobile door */

.asplus-auth-more {
	margin-block-start: 16px;
	padding-block-start: 12px;
	border-block-start: 1px solid var(--asplus-border, rgba(245, 242, 238, 0.1));
}

.asplus-auth-more summary {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--asplus-muted, rgba(245, 242, 238, 0.6));
	font-size: 0.84rem;
	cursor: pointer;
	list-style: none;
}

.asplus-auth-more summary::-webkit-details-marker {
	display: none;
}

.asplus-auth-more summary::before {
	content: '+';
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border: 1px solid var(--asplus-border, rgba(245, 242, 238, 0.2));
	border-radius: 50%;
	font-size: 0.8rem;
	line-height: 1;
}

.asplus-auth-more[open] summary,
.asplus-auth-more summary:hover {
	color: var(--asplus-accent, #d8ae6a);
}

.asplus-auth-more[open] summary::before {
	content: '−';
	border-color: var(--asplus-accent, #d8ae6a);
}

.asplus-auth-more form {
	margin-block-start: 14px;
}

/* The mobile door makes the card the only thing a customer needs; the brand column stays as it is. */
.asplus-auth.has-phone .asplus-auth-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* ------------------------------------------------------------------ phones */

@media (max-width: 860px) {
	.asplus-auth {
		grid-template-columns: minmax(0, 1fr);
		margin-block: 12px;
		min-height: 0;
	}

	.asplus-auth--single {
		margin-inline: 0;
	}

	.asplus-auth-brand {
		order: 0;
		padding: 26px 22px;
		border-inline-start: 0;
		border-block-end: 1px solid var(--asplus-border, rgba(245, 242, 238, 0.1));
	}

	.asplus-auth-brand-inner {
		align-items: center;
		gap: 8px;
		text-align: center;
	}

	.asplus-auth-logo img {
		max-height: 56px;
	}

	.asplus-auth-welcome {
		margin-block-start: 4px;
		font-size: 1.3rem;
	}

	.asplus-auth-lead {
		font-size: 0.9rem;
	}

	.asplus-auth-points {
		display: none;
	}

	.asplus-auth-card {
		order: 1;
		padding: 24px 18px 28px;
	}

	.asplus-auth--single .asplus-auth-card {
		padding: 24px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.asplus-auth *,
	.asplus-auth *::before,
	.asplus-auth *::after {
		transition: none !important;
	}
}
