/* Freyza login/signup split-panel card.
 * Wraps the existing .freyza-auth-card login/register forms (styled in
 * account.css, shared with the lost/reset-password pages) in a new shell:
 * a dark intro panel on the left, tabbed forms on the right. Nothing about
 * the form fields, nonces, or submit handling changes here — only the
 * layout/chrome around them.
 */

/* account.css gives .freyza-auth generous section padding and wraps it in
   .freyza-container (max-width + side padding) for the plain single-card
   lost/reset-password views — this page's shell already provides its own
   framing, so drop both rather than nesting box inside box inside box. */
.freyza-auth.freyza-section {
	min-height: 100vh;
	padding-block: 0;
}

.woocommerce-account .freyza-auth .freyza-container,
.woocommerce-account .freyza-container:has(.freyza-auth) {
	max-width: none;
	padding-inline: 0;
}

/* WooCommerce's own core CSS puts a 24px margin-bottom on this wrapper
   even when empty (no notice to show, but it still contains whitespace
   text nodes so :empty doesn't match) — that showed as a gray gap between
   the header and the card. */
.woocommerce-notices-wrapper:has(+ .freyza-auth) {
	margin-bottom: 0;
}

.freyza-auth-shell {
	background: var(--freyza-color-surface);
	border-radius: 0;
	box-shadow: none;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow: hidden;
}

.freyza-auth-shell__brand-row {
	align-items: center;
	display: flex;
	gap: var(--freyza-space-3);
	position: relative;
	text-decoration: none;
	width: fit-content;
}

/* Compact mobile-only top bar (back arrow + mark) — the desktop brand row
   lives inside the intro panel, which is hidden below 1180px. */
.freyza-auth-shell__mobile-bar {
	align-items: center;
	display: none;
	justify-content: space-between;
	padding: var(--freyza-space-3) var(--freyza-space-4);
}

.freyza-auth-shell__back {
	align-items: center;
	color: var(--freyza-color-primary);
	display: inline-flex;
	font-size: 1.1rem;
	height: 44px;
	justify-content: center;
	margin-left: -10px;
	width: 44px;
}

.freyza-auth-shell__mobile-bar-spacer {
	width: 44px;
}

.freyza-auth-shell__mobile-quote {
	color: var(--freyza-color-muted);
	display: none;
	font-size: 1rem;
	font-style: italic;
	font-weight: 300;
	line-height: 1.6;
	margin: 0 0 var(--freyza-space-6);
}

.freyza-auth-shell__switch {
	display: none;
	font-size: 0.85rem;
	margin: var(--freyza-space-4) 0 0;
	text-align: center;
}

.freyza-auth-shell__switch-link {
	background: none;
	border: 0;
	color: var(--freyza-color-secondary);
	cursor: pointer;
	font-size: inherit;
	font-weight: 700;
	padding: 0;
}

.freyza-auth-shell__mark {
	align-items: center;
	border: 1px solid var(--freyza-color-accent);
	border-radius: var(--freyza-radius-pill);
	color: var(--freyza-color-accent);
	display: inline-flex;
	flex-shrink: 0;
	font-family: var(--freyza-font-heading);
	font-size: 0.85rem;
	font-weight: 600;
	height: 28px;
	justify-content: center;
	text-decoration: none;
	width: 28px;
}

.freyza-auth-shell__mark:hover,
.freyza-auth-shell__mark:focus-visible {
	color: var(--freyza-color-accent);
}

.freyza-auth-shell__brand {
	color: #ffffff;
	font-family: var(--freyza-font-heading);
	font-size: 1.05rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.freyza-auth-shell__split {
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: minmax(0, 1fr) 560px;
	min-height: 680px;
}

/* Left intro panel */

.freyza-auth-shell__intro {
	background: var(--freyza-color-primary);
	display: flex;
	flex-direction: column;
	gap: var(--freyza-space-7);
	justify-content: space-between;
	overflow: hidden;
	padding: var(--freyza-space-8);
	position: relative;
}

.freyza-auth-shell__intro-glow {
	background: radial-gradient(circle at 20% 15%, rgba(176, 138, 70, 0.18), transparent 55%);
	inset: 0;
	position: absolute;
}

.freyza-auth-shell__intro-top {
	display: flex;
	flex-direction: column;
	gap: var(--freyza-space-4);
	max-width: 420px;
	position: relative;
}

.freyza-auth-shell__intro-eyebrow {
	color: var(--freyza-color-accent);
	font-family: var(--freyza-font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.freyza-auth-shell__intro-title {
	color: #ffffff;
	font-family: var(--freyza-font-heading);
	font-size: 2.1rem;
	font-weight: 300;
	letter-spacing: -0.01em;
	line-height: 1.25;
	margin: 0;
}

.freyza-auth-shell__intro-text {
	color: #aebfce;
	font-size: 0.95rem;
	line-height: 1.7;
	margin: 0;
}

.freyza-auth-shell__quote {
	color: #dce2e9;
	font-size: 1.2rem;
	font-style: italic;
	font-weight: 300;
	line-height: 1.6;
	margin: 0;
	max-width: 400px;
	position: relative;
}

.freyza-auth-shell__features {
	border-top: 1px solid #1a3e63;
	display: flex;
	flex-direction: column;
	gap: var(--freyza-space-4);
	list-style: none;
	margin: 0;
	padding: var(--freyza-space-7) 0 0;
	position: relative;
}

.freyza-auth-shell__features li {
	align-items: center;
	color: #dce2e9;
	display: flex;
	font-size: 0.9rem;
	gap: var(--freyza-space-3);
}

.freyza-auth-shell__features li span {
	color: var(--freyza-color-accent);
}

/* Right forms panel */

.freyza-auth-shell__forms {
	display: flex;
	flex-direction: column;
	gap: var(--freyza-space-6);
	max-height: 100%;
	overflow-y: auto;
	padding: 96px 80px 72px;
}

.freyza-auth-tabs {
	border-bottom: 1px solid var(--freyza-color-border);
	display: flex;
	flex-shrink: 0;
	gap: var(--freyza-space-6);
}

/* Kadence's own theme CSS styles every <button> (default, hover, focus and
   active) with its global color palette — border-radius and a teal
   background on hover/focus/active. Overriding all four states here,
   not just the default one, so none of that leaks through. */
.freyza-auth-tab,
.freyza-auth-tab:hover,
.freyza-auth-tab:focus,
.freyza-auth-tab:active {
	background: none;
	background-color: transparent;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	box-shadow: none;
	color: var(--freyza-color-muted);
	cursor: pointer;
	font-family: var(--freyza-font-heading);
	font-size: 0.95rem;
	padding: 0 0 var(--freyza-space-4);
	transform: none;
}

.freyza-auth-tab {
	-webkit-tap-highlight-color: transparent;
}

.freyza-auth-tab:focus-visible {
	outline: 2px solid var(--freyza-color-secondary);
	outline-offset: 2px;
}

.freyza-auth-tab[aria-selected="true"] {
	border-bottom-color: var(--freyza-color-primary);
	color: var(--freyza-color-primary);
	font-weight: 600;
}

.freyza-auth-shell__forms .freyza-auth__grid {
	display: block;
}

/* The mockup goes straight from the tabs to the fields — no repeated
   "Welcome back / Login to your account" heading block. Keep the heading
   for screen readers (each tab panel still needs one) but hide it
   visually instead of removing it from the markup. */
.freyza-auth-shell__forms [data-freyza-auth-panel] .freyza-auth-card__eyebrow,
.freyza-auth-shell__forms [data-freyza-auth-panel] .freyza-auth-card__title,
.freyza-auth-shell__forms [data-freyza-auth-panel] .freyza-auth-card__text {
	border: 0;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.freyza-auth-shell__forms [data-freyza-auth-panel] form {
	margin-top: var(--freyza-space-6);
}

.freyza-auth-card .woocommerce-button,
.freyza-auth-card button[type="submit"] {
	justify-content: center;
	min-height: 48px;
	width: 100%;
}

.freyza-auth-shell__forms .freyza-auth-card[hidden] {
	display: none;
}

.freyza-auth-shell__forms .freyza-auth-card {
	background: none;
	border: 0;
	box-shadow: none;
	padding: 0;
	position: relative;
}

/* WooCommerce's own stylesheet puts a bordered box around form.login and
   form.register (border, padding, margin) — drop that here so the fields
   sit directly in the panel instead of a second nested box. */
.freyza-auth-shell__forms form.login,
.freyza-auth-shell__forms form.register {
	border: 0;
	margin: 0;
	padding: 0;
}

@media (max-width: 1180px) {
	.freyza-auth-shell__split {
		grid-template-columns: minmax(0, 1fr);
	}

	.freyza-auth-shell__intro {
		display: none;
	}

	.freyza-auth-shell__mobile-bar {
		display: flex;
	}

	.freyza-auth-shell__mobile-quote {
		display: block;
	}

	.freyza-auth-shell__switch {
		display: block;
	}

	.freyza-auth-shell__forms {
		max-height: none;
		overflow-y: visible;
		padding: var(--freyza-space-2) var(--freyza-space-5) var(--freyza-space-6);
	}

	.freyza-auth-tabs {
		gap: var(--freyza-space-5);
		margin-bottom: var(--freyza-space-6);
	}
}
