/* Auth page — auth-page.jsx */

body.necta-auth-page {
	background: #faf5ed;
	color: #1a1612;
}

body.necta-auth-page .necta-wp {
	min-height: 100vh;
}

.necta-auth {
	min-height: 100vh;
	padding: 14px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

.necta-auth__scene {
	position: relative;
	flex: 1;
	min-height: min(820px, calc(100vh - 28px));
	border-radius: 28px;
	overflow: hidden;
	background: #0a0a0a;
	box-shadow: 0 30px 60px rgba(26, 22, 18, 0.1);
	display: grid;
	grid-template-columns: 1.05fr 1fr;
}

/* —— Showcase (left) —— */

.necta-auth-showcase {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
	color: #fff;
	display: flex;
	flex-direction: column;
	padding: 28px 36px;
}

.necta-auth-showcase__glow {
	position: absolute;
	bottom: -30%;
	left: 50%;
	transform: translateX(-50%);
	width: 1100px;
	height: 1100px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(232, 80, 2, 0.45) 0%, rgba(193, 8, 1, 0.14) 28%, rgba(0, 0, 0, 0) 58%);
	filter: blur(50px);
	pointer-events: none;
	animation: necta-auth-glow 8s ease-in-out infinite;
}

@keyframes necta-auth-glow {
	0%,
	100% {
		opacity: 0.85;
		transform: translateX(-50%) scale(1);
	}
	50% {
		opacity: 1;
		transform: translateX(-50%) scale(1.06);
	}
}

.necta-auth-showcase__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 75% 60% at 50% 60%, black 0%, transparent 80%);
	pointer-events: none;
}

.necta-auth-showcase__top,
.necta-auth-showcase__head,
.necta-auth-showcase__body,
.necta-auth-showcase__bottom {
	position: relative;
	z-index: 2;
}

.necta-auth-showcase__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.necta-auth-showcase__brand {
	display: inline-flex;
	align-items: center;
}

.necta-auth-showcase__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: #a7a7a7;
	text-decoration: none;
}

.necta-auth-showcase__back:hover {
	color: #fff;
}

.necta-auth-showcase__head {
	margin-top: 56px;
	max-width: 460px;
}

.necta-auth-showcase__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 12px 4px 4px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	background: rgba(20, 20, 20, 0.6);
	margin-bottom: 22px;
	backdrop-filter: blur(8px);
}

.necta-auth-showcase__chip-tag {
	font-size: 9.5px;
	letter-spacing: 0.1em;
	padding: 3px 8px;
	background: rgba(232, 80, 2, 0.16);
	color: #f16001;
	border-radius: 999px;
	text-transform: uppercase;
	font-weight: 600;
}

.necta-auth-showcase__chip-text {
	font-size: 12px;
	color: #a7a7a7;
}

.necta-auth-showcase__title {
	font-weight: 500;
	font-size: clamp(2rem, 3.2vw, 2.75rem);
	line-height: 1.02;
	letter-spacing: -0.03em;
	margin: 0;
	color: #fff;
}

.necta-auth-showcase__accent {
	color: var(--necta-serif-accent);
}

.necta-auth-showcase__lead {
	font-size: 15px;
	color: #a7a7a7;
	margin: 14px 0 0;
	line-height: 1.55;
}

.necta-auth-showcase__body {
	margin-top: 36px;
	flex: 1;
	min-height: 0;
}

.necta-auth-showcase__bottom {
	margin-top: auto;
}

/* Recap */

.necta-auth-recap__live {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 10px;
	color: #646464;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.necta-auth-recap__dot {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: #5fb878;
	flex-shrink: 0;
}

.necta-auth-recap__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	margin-bottom: 22px;
	padding-bottom: 22px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.necta-auth-recap__stat-label {
	font-size: 9.5px;
	color: #646464;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.necta-auth-recap__stat-row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-top: 4px;
}

.necta-auth-recap__stat-value {
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.025em;
	color: #fff;
}

.necta-auth-recap__stat-delta {
	font-size: 10.5px;
	color: #5fb878;
}

.necta-auth-recap__new {
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(232, 80, 2, 0.06);
	border: 1px solid rgba(232, 80, 2, 0.2);
	display: flex;
	align-items: center;
	gap: 12px;
}

.necta-auth-recap__new-tag {
	font-size: 9px;
	color: #f16001;
	letter-spacing: 0.1em;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(232, 80, 2, 0.15);
	font-weight: 600;
}

.necta-auth-recap__new-text {
	font-size: 12.5px;
	color: #d7d7d7;
	flex: 1;
}

.necta-auth-recap__new-arrow {
	font-size: 12px;
	color: #f16001;
}

/* USPs */

.necta-auth-usps {
	position: relative;
	height: 320px;
	margin-top: -8px;
}

.necta-auth-usps__card {
	position: absolute;
	top: calc(var(--necta-usp-i, 0) * 88px);
	left: calc(var(--necta-usp-i, 0) * 28px);
	right: calc(var(--necta-usp-i, 0) * 28px);
	transform: rotate(calc(var(--necta-usp-i, 0) * 1deg - 1deg));
	padding: 14px 18px;
	border-radius: 14px;
	background: rgba(20, 20, 20, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(14px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
	display: flex;
	align-items: center;
	gap: 14px;
	z-index: calc(3 - var(--necta-usp-i, 0));
}

.necta-auth-usps__icon {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	flex-shrink: 0;
	background: linear-gradient(135deg, #f16001, #c10801);
	color: #fff;
	font-size: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(232, 80, 2, 0.3);
}

.necta-auth-usps__title-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 3px;
	flex-wrap: wrap;
}

.necta-auth-usps__title {
	font-size: 13.5px;
	font-weight: 500;
	color: #fff;
	letter-spacing: -0.01em;
}

.necta-auth-usps__tag {
	font-size: 9px;
	color: #f16001;
	letter-spacing: 0.1em;
	font-weight: 500;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(232, 80, 2, 0.15);
}

.necta-auth-usps__desc {
	font-size: 12px;
	color: #8a8a8a;
	line-height: 1.45;
	margin: 0;
}

/* Testimonial */

.necta-auth-quote {
	margin: 22px 0 0;
	padding: 16px 18px;
	border-radius: 14px;
	background: rgba(14, 14, 14, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(14px);
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.necta-auth-quote__mark {
	font-size: 28px;
	color: #f16001;
	line-height: 1;
	margin-top: -2px;
}

.necta-auth-quote__body p {
	font-size: 13px;
	color: #d7d7d7;
	margin: 0;
	line-height: 1.55;
	letter-spacing: -0.005em;
}

.necta-auth-quote__footer {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
}

.necta-auth-quote__avatar {
	width: 26px;
	height: 26px;
	border-radius: 999px;
	background: radial-gradient(circle at 35% 35%, #f5cbb0 0%, #b88a6a 60%, #5a3a25 100%);
	flex-shrink: 0;
}

.necta-auth-quote__name {
	display: block;
	font-size: 12px;
	color: #fff;
	font-weight: 500;
	font-style: normal;
}

.necta-auth-quote__role {
	display: block;
	font-size: 9.5px;
	color: #8a8a8a;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-top: 2px;
	font-style: normal;
}

.necta-auth-showcase__trust {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	font-size: 10px;
	color: #646464;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	flex-wrap: wrap;
}

.necta-auth-showcase__trust-highlight {
	color: #fff;
}

.necta-auth-showcase__trust-dot {
	color: #3a3a3a;
}

.necta-auth-showcase__trust-status {
	color: #5fb878;
}

/* —— Panel (right) —— */

.necta-auth-panel {
	background: #faf5ed;
	color: #1a1612;
	display: flex;
	flex-direction: column;
	padding: 28px 36px;
	position: relative;
}

.necta-auth-panel__switch {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 14px;
	font-size: 13px;
	color: #5a4a3a;
	flex-wrap: wrap;
}

.necta-auth-panel__switch-btn {
	padding: 8px 14px;
	border-radius: 999px;
	background: #fff;
	color: #1a1612;
	border: 1px solid #ede5d8;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	font-family: inherit;
	white-space: nowrap;
}

.necta-auth-panel__switch-btn:hover {
	border-color: #d3c5a8;
}

.necta-auth-panel__center {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 0;
}

.necta-auth-card {
	width: min(420px, 100%);
	display: flex;
	flex-direction: column;
}

.necta-auth-card__title {
	font-weight: 500;
	font-size: 28px;
	letter-spacing: -0.025em;
	line-height: 1.1;
	margin: 0 0 6px;
	color: #1a1612;
}

.necta-auth-card__lead {
	font-size: 14px;
	color: #5a4a3a;
	margin: 0 0 22px;
	line-height: 1.55;
}

.necta-auth-tabs {
	display: flex;
	padding: 4px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #ede5d8;
	margin-bottom: 18px;
}

.necta-auth-tab {
	flex: 1;
	padding: 10px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	border: none;
	background: transparent;
	color: #5a4a3a;
	font-family: inherit;
	transition: background 0.2s ease, color 0.2s ease;
}

.necta-auth-tab:hover {
	background: rgba(26, 22, 18, 0.04);
}

.necta-auth__scene--signup .necta-auth-tab[data-auth-set-mode='signup'],
.necta-auth__scene:not(.necta-auth__scene--signup) .necta-auth-tab[data-auth-set-mode='signin'] {
	background: #1a1612;
	color: #fff;
}

.necta-auth-sso {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
	opacity: 0.55;
}

.necta-auth-sso__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex: 1;
	padding: 11px 14px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid #e6dccd;
	font-size: 13.5px;
	font-weight: 500;
	color: #1a1612;
	cursor: not-allowed;
	font-family: inherit;
}

.necta-auth-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 4px 0 14px;
	font-size: 10px;
	color: #8a6a4a;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.necta-auth-divider span:first-child,
.necta-auth-divider span:last-child {
	flex: 1;
	height: 1px;
	background: #ede5d8;
}

.necta-auth-form .woocommerce-privacy-policy-text,
.necta-auth-register-wrap .woocommerce-privacy-policy-text {
	display: none !important;
}

.necta-auth-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
}

.necta-auth-field {
	display: block;
}

.necta-auth-field__label,
.necta-auth-field__label-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 500;
	color: #3a2a1a;
	letter-spacing: -0.005em;
}

.necta-auth-field__label-row {
	width: 100%;
}

.necta-auth-field__link {
	font-size: 11.5px;
	color: #e85002;
	font-weight: 400;
	text-decoration: none;
}

.necta-auth-field__link:hover {
	text-decoration: underline;
}

.necta-auth-input {
	width: 100%;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid #e6dccd;
	font-family: inherit;
	font-size: 14px;
	color: #1a1612;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.necta-auth-input:focus {
	border-color: #e85002;
	box-shadow: 0 0 0 3px rgba(232, 80, 2, 0.12);
}

.necta-auth-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #5a4a3a;
	margin-top: 2px;
	cursor: pointer;
}

.necta-auth-remember input {
	accent-color: #e85002;
}

.necta-auth-submit {
	position: relative;
	margin-top: 10px;
	padding: 13px 18px;
	border-radius: 999px;
	background: #1a1612;
	color: #fff;
	border: none;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	font-family: inherit;
	letter-spacing: -0.01em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	box-shadow: 0 4px 12px rgba(26, 22, 18, 0.15);
	text-decoration: none;
	width: 100%;
	box-sizing: border-box;
}

.necta-auth-submit:hover:not(:disabled) {
	background: #2a2218;
	color: #fff;
}

.necta-auth-submit:disabled {
	opacity: 0.72;
	cursor: wait;
}

.necta-auth-submit__spinner {
	display: none;
	position: absolute;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: necta-auth-spin 0.7s linear infinite;
}

.necta-auth-submit.is-loading .necta-auth-submit__spinner {
	display: block;
}

.necta-auth-submit.is-loading .necta-auth-submit__label {
	visibility: hidden;
}

@keyframes necta-auth-spin {
	to {
		transform: rotate(360deg);
	}
}

.necta-auth-privacy-note {
	margin: 10px 0 0;
	font-size: 10.5px;
	line-height: 1.5;
	color: #a89888;
	text-align: center;
	max-width: 340px;
	margin-left: auto;
	margin-right: auto;
}

.necta-auth-privacy-note a {
	color: #8a6a4a;
	text-decoration: underline;
}

.necta-auth-privacy-note a:hover {
	color: #5a4a3a;
}

/* OTP step — hide signup chrome */
.necta-auth-card--otp .necta-auth-card__title[data-auth-mode="signup"],
.necta-auth-card--otp .necta-auth-card__lead[data-auth-mode="signup"],
.necta-auth-card--otp .necta-auth-tabs,
.necta-auth-card--otp .necta-auth-sso,
.necta-auth-card--otp .necta-auth-divider {
	display: none !important;
}

.necta-auth-panel--otp .necta-auth-panel__switch {
	display: none;
}

.necta-auth-notices {
	max-width: calc(100% - 28px);
	margin: 0 auto 12px;
}

.necta-auth-notices .woocommerce-message,
.necta-auth-notices .woocommerce-error,
.necta-auth-notices .woocommerce-info {
	margin: 0;
	border-radius: 12px;
	font-size: 14px;
}

.necta-auth-terms {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12.5px;
	color: #5a4a3a;
	margin-top: 4px;
	line-height: 1.55;
	cursor: pointer;
}

.necta-auth-terms input {
	margin-top: 3px;
	accent-color: #e85002;
	flex-shrink: 0;
}

.necta-auth-terms a {
	color: #1a1612;
	text-decoration: underline;
}

.necta-auth-funnel-link {
	margin-top: 16px;
	font-size: 13px;
	color: #5a4a3a;
	text-align: center;
}

.necta-auth-funnel-link a {
	color: #e85002;
	font-weight: 500;
	text-decoration: none;
}

.necta-auth-funnel-link a:hover {
	text-decoration: underline;
}

.necta-auth-signup-cta {
	font-size: 14px;
	color: #5a4a3a;
	line-height: 1.55;
}

/* —— Registration OTP step —— */

.necta-auth-otp {
	text-align: center;
}

.necta-auth-otp__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 12px;
	padding: 0;
	border: none;
	background: none;
	font-size: 13px;
	color: #5a4a3a;
	cursor: pointer;
	font-family: inherit;
}

.necta-auth-otp__back:hover {
	color: #1a1612;
}

.necta-auth-otp__title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 600;
	color: #1a1612;
	letter-spacing: -0.02em;
}

.necta-auth-otp__lead {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.5;
	color: #5a4a3a;
}

.necta-auth-otp__hint {
	margin: 0 0 20px;
	font-size: 12px;
	line-height: 1.45;
	color: #a89888;
}

.necta-auth-otp__email {
	display: block;
	margin-top: 4px;
	font-weight: 600;
	color: #1a1612;
	word-break: break-all;
}

.necta-auth-otp__inputs {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 16px;
}

.necta-auth-otp__digit {
	width: 44px;
	height: 52px;
	padding: 0;
	border: 1px solid #d3c5a8;
	border-radius: 12px;
	background: #fff;
	font-size: 22px;
	font-weight: 600;
	font-family: 'Geist Mono', ui-monospace, monospace;
	text-align: center;
	color: #1a1612;
	caret-color: #e85002;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.necta-auth-otp__digit:focus {
	outline: none;
	border-color: #e85002;
	box-shadow: 0 0 0 3px rgba(232, 80, 2, 0.15);
}

.necta-auth-otp__digit:not(:placeholder-shown),
.necta-auth-otp__digit:focus {
	border-color: #1a1612;
}

.necta-auth-otp__error,
.necta-auth-register-error {
	margin: 0 0 12px;
	font-size: 13px;
	color: #c10801;
	line-height: 1.45;
	text-align: center;
}

.necta-auth-register-error {
	text-align: left;
}

.necta-auth-otp__resend {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.necta-auth-otp__resend-btn {
	border: none;
	background: none;
	padding: 4px 8px;
	font-size: 13px;
	font-weight: 500;
	color: #e85002;
	cursor: pointer;
	font-family: inherit;
}

.necta-auth-otp__resend-btn:disabled {
	color: #a89888;
	cursor: not-allowed;
}

.necta-auth-otp__resend-meta {
	font-size: 11px;
	color: #8a6a4a;
	letter-spacing: 0.04em;
}

@media (max-width: 400px) {
	.necta-auth-otp__digit {
		width: 38px;
		height: 48px;
		font-size: 20px;
	}

	.necta-auth-otp__inputs {
		gap: 6px;
	}
}

.necta-auth-signup-badges {
	margin-top: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 11.5px;
	color: #5a4a3a;
}

.necta-auth-signup-badges span:first-child {
	color: #5fb878;
}

.necta-auth-signup-badges__dot {
	color: #d3c5a8;
}

.necta-auth-signup-legal {
	margin-top: 16px;
	font-size: 12px;
	color: #5a4a3a;
	line-height: 1.55;
	text-align: center;
}

.necta-auth-signup-legal a {
	color: #1a1612;
	text-decoration: underline;
}

.necta-auth-panel__legal {
	padding-top: 18px;
	border-top: 1px solid #ede5d8;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	font-size: 10.5px;
	color: #8a6a4a;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.necta-auth-panel__legal-links {
	display: inline-flex;
	align-items: center;
	gap: 18px;
}

.necta-auth-panel__legal a {
	color: #5a4a3a;
	text-decoration: none;
}

.necta-auth-panel__legal a:hover {
	color: #1a1612;
}

/* Hide WooCommerce default login chrome on auth page */
.necta-auth .woocommerce-notices-wrapper {
	margin-bottom: 12px;
}

@media (max-width: 960px) {
	.necta-auth__scene {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.necta-auth-showcase {
		min-height: 420px;
		padding: 24px 20px;
	}

	.necta-auth-showcase__head {
		margin-top: 32px;
	}

	.necta-auth-usps {
		height: auto;
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	.necta-auth-usps__card {
		position: relative;
		top: auto;
		left: auto;
		right: auto;
		transform: none;
	}

	.necta-auth-panel {
		padding: 24px 20px 28px;
	}
}
