/* Nexus auth pages — login, register, account hub */
.nexus-auth-page {
	padding: clamp(2rem, 5vw, 4rem) 0;
	min-height: 50vh;
}
.nexus-auth-page-inner {
	display: flex;
	justify-content: center;
	align-items: flex-start;
}
.nexus-auth-card {
	width: min(100%, 420px);
	background: var(--nexus-body-bg, #fff);
	border: 1px solid var(--nexus-border-light, #e2e8f0);
	border-radius: var(--nexus-radius, 8px);
	padding: clamp(1.25rem, 3vw, 2rem);
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
	animation: nexus-auth-in 0.35s ease;
}
@keyframes nexus-auth-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}
.nexus-auth-title {
	margin: 0 0 1rem;
	font-size: 1.5rem;
	line-height: 1.2;
}
.nexus-auth-form label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
}
.nexus-auth-form input[type="text"],
.nexus-auth-form input[type="email"],
.nexus-auth-form input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--nexus-border-light, #cbd5e1);
	border-radius: 6px;
	margin-bottom: 0.75rem;
}
.nexus-auth-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 0.875rem;
}
.nexus-auth-check {
	font-weight: 400;
}
.nexus-auth-link {
	color: var(--nexus-link, var(--nexus-primary, #0f766e));
	text-decoration: none;
}
.nexus-auth-link:hover {
	text-decoration: underline;
}
.nexus-auth-submit {
	width: 100%;
	margin-top: 0.25rem;
}
.nexus-spam-math label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.875rem;
}

.nexus-spam-math input[type="number"] {
	max-width: 6rem;
}
.nexus-auth-footer {
	margin: 1rem 0 0;
	font-size: 0.875rem;
	text-align: center;
	color: var(--nexus-body-text-muted, #64748b);
}
.nexus-auth-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
	border-radius: 6px;
	padding: 0.65rem 0.75rem;
	margin: 0 0 1rem;
	font-size: 0.875rem;
}
.nexus-auth-success {
	background: #ecfdf5;
	color: #047857;
	border: 1px solid #a7f3d0;
	border-radius: 6px;
	padding: 0.65rem 0.75rem;
	margin: 0 0 1rem;
	font-size: 0.875rem;
}
.nexus-auth-intro {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	color: var(--nexus-body-text-muted, #64748b);
}
.nexus-auth-notice {
	text-align: center;
	padding: 1rem;
}
.nexus-auth-account {
	width: min(100%, 720px);
}
.nexus-auth-account-head {
	display: flex;
	gap: 1rem;
	align-items: center;
	margin-bottom: 1.25rem;
}
.nexus-auth-avatar {
	border-radius: 50%;
}
.nexus-auth-meta {
	margin: 0.25rem 0 0;
	color: var(--nexus-body-text-muted, #64748b);
	font-size: 0.875rem;
}
.nexus-auth-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.35rem;
}
.nexus-auth-nav a {
	display: block;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--nexus-border-light, #e2e8f0);
	border-radius: 6px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s, background 0.15s;
}
.nexus-auth-nav a:hover {
	border-color: var(--nexus-primary, #0f766e);
	background: rgba(15, 118, 110, 0.06);
}
.nexus-auth-wc-account {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--nexus-border-light, #e2e8f0);
}
.nexus-auth-wc-account .woocommerce-MyAccount-navigation {
	display: none;
}
.nexus-auth-recent-orders {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--nexus-border-light, #e2e8f0);
}
.nexus-auth-orders-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}
.nexus-auth-orders-table th,
.nexus-auth-orders-table td {
	padding: 0.5rem 0.35rem;
	border-bottom: 1px solid var(--nexus-border-light, #e2e8f0);
	text-align: left;
}
.nexus-auth-orders-more {
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
}
.nexus-auth-profile-edit {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--nexus-border-light, #e2e8f0);
}
.nexus-auth-subtitle {
	margin: 0 0 0.75rem;
	font-size: 1.05rem;
}
.nexus-header-user-menu {
	position: relative;
}
.nexus-header-user-toggle {
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: inherit;
	display: inline-flex;
	align-items: center;
}
.nexus-header-user-dropdown {
	position: absolute;
	right: 0;
	top: calc(100% + 0.35rem);
	min-width: 11rem;
	background: var(--nexus-body-bg, #fff);
	border: 1px solid var(--nexus-border-light, #e2e8f0);
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
	padding: 0.35rem;
	z-index: 120;
	display: none;
}
.nexus-header-user-menu.is-open .nexus-header-user-dropdown {
	display: block;
}
.nexus-header-user-dropdown a {
	display: block;
	padding: 0.65rem 0.75rem;
	min-height: 44px;
	border-radius: 4px;
	text-decoration: none;
	color: inherit;
	font-size: 0.875rem;
	box-sizing: border-box;
}
.nexus-header-user-dropdown a:hover {
	background: rgba(15, 118, 110, 0.08);
}
