/* --- 10. AUTH PAGES --- */
.auth-container {
	width: 100%;
	max-width: 460px;
	padding: 20px;
}

.auth-box {
	background: var(--card-bg);
	padding: 50px;
	border-radius: 4px;
	border: 1px solid var(--border);
}

.auth-box h2 {
	font-family: var(--font-display);
	font-size: 2.5rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin: 24px 0 30px;
}

.auth-footer {
	text-align: center;
	font-size: 0.85rem;
	color: var(--text-gray);
	margin-top: 20px;
}

.auth-footer a {
	color: var(--cyan);
	text-decoration: none;
}

.auth-footer a:hover {
	text-decoration: underline;
}

/* ---- LEFT PANEL ---- */
.left-panel {
	position: relative;
	background: var(--dark);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 50px 50px 50px;
	padding-top: calc(50px + var(--navbar-height));
	overflow: hidden;
	border-right: 1px solid var(--border);
}

/* Animated grid background */
.left-panel::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
	background-size: 60px 60px;
	animation: grid-drift 20s linear infinite;
	opacity: 0.6;
}

@keyframes grid-drift {
	from {
		transform: translateY(0);
	}

	to {
		transform: translateY(60px);
	}
}

/* Cyan radial glow */
.left-panel::after {
	content: '';
	position: absolute;
	bottom: -100px;
	left: -100px;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 65%);
	pointer-events: none;
}

.panel-logo {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
}

.logo-block {
	background: var(--cyan);
	padding: 10px 20px;
	border-radius: 3px;
	transform: skewX(-8deg);
	box-shadow: 0 0 25px var(--cyan-glow);
}

.logo-block img {
	height: 30px;
	width: auto;
	display: block;
	transform: skewX(8deg);
	filter: brightness(0) invert(1);
}

.logo-text {
	font-family: var(--font-display);
	font-size: 1.6rem;
	letter-spacing: 4px;
	color: var(--text-white);
}

.panel-body {
	position: relative;
	z-index: 2;
}

.panel-eyebrow {
	font-family: var(--font-condensed);
	font-size: 0.7rem;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: var(--cyan);
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}

.panel-eyebrow::before {
	content: '';
	display: inline-block;
	width: 24px;
	height: 1px;
	background: var(--cyan);
}

.panel-headline {
	font-family: var(--font-display);
	font-size: clamp(3.5rem, 6vw, 6rem);
	line-height: 0.92;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.panel-headline .outline {
	-webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.25);
	color: transparent;
}

.panel-sub {
	margin-top: 24px;
	font-size: 0.95rem;
	color: var(--text-gray);
	line-height: 1.7;
	max-width: 360px;
}

@keyframes float {
	0%,
	100% {
		transform: rotate(-15deg) translateY(0);
	}

	50% {
		transform: rotate(-15deg) translateY(-20px);
	}
}

.panel-stats {
	position: relative;
	z-index: 2;
	display: flex;
	gap: 40px;
}

.stat {
	display: flex;
	flex-direction: column;
}

.stat-num {
	font-family: var(--font-display);
	font-size: 2rem;
	color: var(--cyan);
	line-height: 1;
}

.stat-lbl {
	font-family: var(--font-condensed);
	font-size: 0.65rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--text-gray);
	margin-top: 4px;
}

/* ---- RIGHT PANEL ---- */
.right-panel {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 50px 60px;
	padding-top: calc(50px + var(--navbar-height));
	position: relative;
	overflow: hidden;
	overflow-y: auto;
}

/* Subtle top glow */
.right-panel::before {
	content: '';
	position: absolute;
	top: -80px;
	right: -80px;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, var(--cyan-dim) 0%, transparent 70%);
	pointer-events: none;
}

.auth-wrap {
	width: 100%;
	max-width: 400px;
	position: relative;
	z-index: 1;
	animation: slide-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes slide-up {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Tabs */
.auth-tabs {
	display: flex;
	border-bottom: 1px solid var(--border);
	margin-bottom: 40px;
}

.auth-tab {
	flex: 1;
	padding: 14px;
	font-family: var(--font-condensed);
	font-weight: 900;
	font-size: 0.85rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--text-gray);
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	cursor: pointer;
	transition: all 0.2s;
}

.auth-tab:hover {
	color: var(--text-white);
}

.auth-tab.active {
	color: var(--cyan);
	border-bottom-color: var(--cyan);
}

/* Form panels */
.form-panel {
	display: none;
}

.form-panel.active {
	display: block;
}

.form-title {
	font-family: var(--font-display);
	font-size: 2.4rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.form-subtitle {
	font-size: 0.88rem;
	color: var(--text-gray);
	margin-bottom: 36px;
	line-height: 1.5;
}

/* Input groups */
.input-group {
	position: relative;
	margin-bottom: 18px;
}

.input-group label {
	font-family: var(--font-condensed);
	font-size: 0.68rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--text-gray);
	display: block;
	margin-bottom: 8px;
}

.input-group input {
	width: 100%;
	padding: 14px 16px;
	background: var(--dark);
	border: 1px solid var(--border);
	border-radius: 4px;
	color: var(--text-white);
	font-family: var(--font-body);
	font-size: 0.95rem;
	outline: none;
	transition:
		border-color 0.2s,
		box-shadow 0.2s;
}

.input-group input:focus {
	border-color: var(--cyan);
	box-shadow: 0 0 0 3px var(--cyan-dim);
}

.input-group input::placeholder {
	color: var(--text-gray);
}

/* Password toggle */
.input-group .pw-toggle {
	position: absolute;
	right: 14px;
	bottom: 14px;
	font-size: 1rem;
	cursor: pointer;
	color: var(--text-gray);
	background: none;
	border: none;
	transition: color 0.2s;
	line-height: 1;
}

.input-group .pw-toggle:hover {
	color: var(--text-white);
}

/* Submit button */
.btn-submit {
	width: 100%;
	padding: 16px;
	background: var(--cyan);
	border: none;
	border-radius: 4px;
	color: var(--black);
	font-family: var(--font-condensed);
	font-weight: 900;
	font-size: 0.95rem;
	letter-spacing: 3px;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 8px 30px var(--cyan-dim);
	transition: all 0.3s;
	position: relative;
	overflow: hidden;
}

.btn-submit::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
	transform: translateX(-100%);
	transition: transform 0.5s;
}

.btn-submit:hover::after {
	transform: translateX(100%);
}

.btn-submit:hover {
	box-shadow: 0 8px 40px var(--cyan-glow);
	transform: translateY(-1px);
}

.btn-submit:active {
	transform: translateY(0);
}

.btn-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.form-switch {
	text-align: center;
	margin-top: 24px;
	font-size: 0.85rem;
	color: var(--text-gray);
}

.form-switch button {
	background: none;
	border: none;
	color: var(--cyan);
	cursor: pointer;
	font-family: var(--font-body);
	font-size: 0.85rem;
	text-decoration: underline;
	padding: 0;
}

/* Divider */
.divider {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 24px 0;
}

.divider::before,
.divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--border);
}

.divider span {
	font-family: var(--font-condensed);
	font-size: 0.65rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--text-gray);
}

/* Back to site link */
.back-link {
	display: block;
	text-align: center;
	font-family: var(--font-condensed);
	font-size: 0.72rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--text-gray);
	text-decoration: none;
	margin-top: 30px;
	transition: color 0.2s;
}

.back-link:hover {
	color: var(--text-white);
}

/* Success state */
.success-msg {
	text-align: center;
	padding: 40px 0;
	display: none;
}

.success-msg .check {
	font-size: 3rem;
	margin-bottom: 16px;
	display: block;
	animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pop {
	from {
		transform: scale(0);
	}

	to {
		transform: scale(1);
	}
}

.success-msg h3 {
	font-family: var(--font-display);
	font-size: 1.8rem;
	letter-spacing: 2px;
	margin-bottom: 8px;
}

.success-msg p {
	font-size: 0.88rem;
	color: var(--text-gray);
}

/* Auth layout: neutralise wrapper padding so two-panel-auth fills viewport. */
body.wc-auth-layout .wc-page-wrap {
	padding: 0;
	min-height: 0;
}

/* Two-panel auth layout (login / register) */
.two-panel-auth {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 100vh;
}

/* Responsive */
@media (max-width: 768px) {
	body {
		grid-template-columns: 1fr;
		overflow: auto;
	}

	.two-panel-auth {
		grid-template-columns: 1fr;
	}

	.left-panel {
		display: none;
	}

	.right-panel {
		padding: var(--page-top-clear) 28px 50px;
		min-height: 100vh;
	}
}

@media (max-width: 600px) {
	.auth-box,
	.contact-info {
		padding: 32px 24px;
	}
}

/* SVG-based deco-glove (shield icon in auth left panel) */
.deco-glove {
	position: absolute;
	right: -30px;
	bottom: 60px;
	width: 240px;
	height: auto;
	opacity: 0.07;
	transform: rotate(-15deg);
	pointer-events: none;
	user-select: none;
	animation: float 6s ease-in-out infinite;
	color: var(--cyan);
}

.deco-glove svg {
	width: 100%;
	height: auto;
	display: block;
}

/* Remember-me + forgot password row */
.auth-options-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 22px;
}

.auth-options-row label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: var(--text-gray);
	cursor: pointer;
}

.auth-options-row a {
	font-size: 0.82rem;
	color: var(--cyan);
	text-decoration: none;
}

/* Small hint text under form fields */
.form-hint {
	font-size: 0.85rem;
	color: var(--text-gray);
	margin-bottom: 18px;
}

/* WooCommerce password visibility toggle */
.password-input {
	position: relative;
	display: block;
}

.password-input input {
	padding-right: 44px;
}

.show-password-input {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	width: 44px;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
}

/* Default / hide-password: password is hidden → open eye */
.show-password-input::before {
	content: '';
	display: block;
	width: 18px;
	height: 18px;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.show-password-input:hover::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0f0f2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

/* display-password: password IS visible → slashed eye */
.show-password-input.display-password::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94'/%3E%3Cpath d='M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
}

.show-password-input.display-password:hover::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0f0f2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94'/%3E%3Cpath d='M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
}
