/* Shared layout styles for non-connected (public) pages */

.nonconnected-shell {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	color: var(--ui-shell-text, #fdbc6c);
}

.nc-header {
	position: sticky;
	top: 0;
	z-index: 20;
	border-bottom: 1px solid var(--ui-shell-border, rgba(255,195,82,0.35));
	background: rgba(8, 4, 0, 0.9);
	box-shadow: 0 4px 30px rgba(255,195,82,0.06);
}

.nc-header__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 14px 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.nc-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: inherit;
}

.nc-brand__mark {
	width: 36px;
	height: 36px;
	border-radius: 0;
	display: grid;
	place-items: center;
	background: radial-gradient(circle at 40% 35%, rgba(255,195,82,0.18), transparent 60%), rgba(20, 12, 2, 0.9);
	color: var(--ui-shell-text);
	border: 1px solid var(--ui-shell-border, rgba(255,195,82,0.35));
	box-shadow: 0 0 16px rgba(255,195,82,0.2);
}

.nc-brand__mark-icon {
	font-size: 18px;
	line-height: 1;
	color: inherit;
}

.nc-brand__copy {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.nc-brand__name {
	font-weight: 700;
	letter-spacing: 0.01em;
}

.nc-brand__tag {
	color: var(--ui-shell-muted, rgba(255,195,82,0.7));
	font-size: 11px;
}

.nc-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.nc-link {
	color: var(--ui-shell-muted, #fdbc6c);
	padding: 8px 10px;
	border-radius: 0;
	border: 1px solid transparent;
	text-decoration: none;
	font-size: 12px;
}

.nc-link:hover {
	color: var(--text, #f4f7ff);
	border-color: var(--ui-shell-border, #1f2b4d);
}

.nc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 14px;
	border-radius: 0;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid var(--ui-shell-border, rgba(255,195,82,0.35));
	transition: transform 0.15s ease;
	cursor: pointer;
}

.nc-button:hover {
	transform: translateY(-1px);
}

.nc-button.primary {
	background: linear-gradient(180deg, #ffd78e 0%, #fdbc6c 100%);
	color: #050200;
	box-shadow: 0 0 18px rgba(255,195,82,0.28), inset 0 0 24px rgba(255,195,82,0.25);
}

.nc-button.ghost {
	border-color: var(--ui-shell-border, rgba(255,195,82,0.35));
	color: var(--text, #f4f7ff);
	background: rgba(8, 4, 0, 0.65);
	box-shadow: inset 0 0 20px rgba(7,5,0,0.7);
}

.nc-button.callout {
	background: linear-gradient(180deg, #1ef5a2 0%, #0ecf7f 100%);
	color: #04110a;
	border-color: rgba(30, 245, 162, 0.6);
	box-shadow: 0 0 18px rgba(30, 245, 162, 0.35), inset 0 0 18px rgba(6, 46, 26, 0.55);
}

.nc-main {
	flex: 1 1 auto;
}

.nc-footer {
	border-top: 1px solid var(--ui-shell-border, rgba(255,195,82,0.35));
	background: rgba(8, 4, 0, 0.85);
	box-shadow: 0 -4px 30px rgba(255,195,82,0.08);
}

.nc-footer__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 18px 22px 26px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	color: var(--ui-shell-muted, rgba(255,195,82,0.7));
	font-size: 12px;
}

.nc-footer__links {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.nc-footer__links a {
	color: inherit;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	padding-bottom: 2px;
}

.nc-footer__links a:hover {
	color: var(--text, #f4f7ff);
	border-color: var(--ui-shell-border, rgba(255,195,82,0.35));
}

.nc-footer__brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.nc-footer__brand-icon {
	font-size: 14px;
	color: var(--ui-primary, #fdbc6c);
}

@media (max-width: 720px) {
	.nc-header__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.nc-header__actions {
		width: 100%;
		justify-content: flex-start;
	}
}

.nc-contact-modal {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(4, 1, 0, 0.8);
	z-index: 9999;
}

.nc-contact-modal.hidden {
	display: none;
}

.nc-contact-card {
	background: var(--ui-shell-panel, rgba(2, 0, 0, 0.75));
	color: #fdbc6c;
	border: 1px solid var(--ui-shell-border, rgba(255,195,82,0.35));
	border-radius: var(--ui-radius-large);
	padding: 18px;
	width: min(520px, calc(100% - 36px));
	box-shadow: 0 0 30px rgba(255,195,82,0.08), inset 0 0 40px rgba(7, 5, 0, 0.7);
}

.nc-contact-card h3 {
	margin: 0 0 8px 0;
}

.nc-contact-card p {
	margin: 0 0 12px 0;
	color: #cbd5e1;
}

.nc-contact-field {
	display: grid;
	gap: 6px;
	margin-bottom: 10px;
}

.nc-contact-field label {
	color: #cbd5e1;
	font-size: 13px;
}

.nc-contact-field input,
.nc-contact-field textarea {
	width: 100%;
	padding: 10px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.05);
	color: #f4f7ff;
	font-size: 14px;
}

.nc-contact-field textarea {
	min-height: 90px;
	resize: vertical;
}

.nc-contact-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 6px;
}

.nc-btn-secondary,
.nc-btn-primary {
	border-radius: 10px;
	padding: 10px 14px;
	cursor: pointer;
	border: 1px solid transparent;
	font-weight: 700;
}

.nc-btn-secondary {
	background: transparent;
	color: #f4f7ff;
	border-color: rgba(255, 255, 255, 0.18);
}

.nc-btn-primary {
	background: linear-gradient(180deg, #ffd78e 0%, #fdbc6c 100%);
	color: #050200;
	box-shadow: 6px 6px 0 #2d1603, 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* Landing page (Index) */
body.page-landing {
	--bg: #050914;
	--panel: rgba(13, 19, 38, 0.8);
	--card: rgba(19, 26, 47, 0.9);
	--accent: #fdbc6c;
	--accent-2: #ffb347;
	--accent-3: #ff8a4c;
	--text: #fdbc6c;
	--muted: rgba(255, 195, 82, 0.7);
	--stroke: rgba(255, 195, 82, 0.25);
	--shadow: 0 24px 70px rgba(5, 8, 20, 0.6);
	--scroll-y: 0px;
	--pixel-border: 2px solid rgba(255, 195, 82, 0.45);
	--pixel-shadow: 6px 6px 0 #2d1603;
	--pixel-shadow-soft: 0 16px 32px rgba(0, 0, 0, 0.35);
	--pixel-inset: inset 0 0 0 2px rgba(255, 195, 82, 0.14);
	margin: 0;
	background: radial-gradient(circle at 15% 20%, rgba(255, 195, 82, 0.14), transparent 34%), radial-gradient(circle at 85% 10%, rgba(140, 72, 7, 0.2), transparent 32%), var(--bg);
	color: var(--text);
	font-family: 'Courier New', monospace;
	letter-spacing: 0.01em;
}

body.page-landing a {
	color: inherit;
	text-decoration: none;
}

body.page-landing .landing {
	position: relative;
	overflow: hidden;
	min-height: 100vh;
}

body.page-landing .landing::before {
	content: "";
	position: fixed;
	inset: -20%;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 140px 140px;
	background-position: calc(50% + var(--scroll-y) * 0.05) calc(50% + var(--scroll-y) * 0.08);
	opacity: 0.35;
	pointer-events: none;
	z-index: 0;
}

body.page-landing .nav-bar {
	position: sticky;
	top: 0;
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 26px 48px;
	backdrop-filter: blur(10px);
	background: rgba(5, 9, 20, 0.7);
	border-bottom: 1px solid var(--stroke);
}

body.page-landing .brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

body.page-landing .brand-mark {
	width: 36px;
	height: 36px;
	border-radius: 0;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	display: grid;
	place-items: center;
	color: #050200;
	font-size: 14px;
	font-weight: 800;
	box-shadow: var(--pixel-shadow-soft);
}

body.page-landing .brand-copy {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

body.page-landing .brand-name {
	font-size: 18px;
}

body.page-landing .brand-tag {
	color: var(--muted);
	font-size: 12px;
	font-weight: 500;
}

body.page-landing .top-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 12px 16px;
	background: linear-gradient(120deg, rgba(255, 195, 82, 0.18), rgba(140, 72, 7, 0.22));
	border-bottom: var(--pixel-border);
	text-align: center;
	box-shadow: var(--pixel-shadow-soft);
}

body.page-landing .top-cta strong {
	font-weight: 700;
}

body.page-landing .top-cta .cta-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	border-radius: 0;
	background: linear-gradient(180deg, var(--accent-3), #ffa76f);
	color: #251103;
	font-weight: 700;
	border: var(--pixel-border);
	box-shadow: var(--pixel-shadow), var(--pixel-shadow-soft), var(--pixel-inset);
	animation: ctaPulse 2.8s steps(2) infinite;
}

@keyframes ctaPulse {
	0%, 100% { transform: translateY(0); box-shadow: 0 12px 28px rgba(255, 138, 76, 0.32); }
	50% { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(255, 167, 111, 0.4); }
}

body.page-landing .nav-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 14px;
	color: var(--muted);
}

body.page-landing .nav-pill {
	padding: 10px 14px;
	border-radius: 0;
	border: var(--pixel-border);
	transition: transform 0.08s ease, box-shadow 0.08s ease;
	box-shadow: var(--pixel-shadow), var(--pixel-shadow-soft), var(--pixel-inset);
}

body.page-landing .nav-pill:hover {
	color: var(--text);
	transform: translate(-2px, -2px);
}

body.page-landing .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border-radius: 0;
	font-weight: 700;
	border: var(--pixel-border);
	transition: transform 0.08s ease, box-shadow 0.08s ease;
	cursor: pointer;
}

body.page-landing .btn.primary {
	background: linear-gradient(180deg, var(--accent), var(--accent-2));
	color: #050200;
	box-shadow: var(--pixel-shadow), var(--pixel-shadow-soft), var(--pixel-inset);
}

body.page-landing .btn.primary:hover {
	transform: translate(-2px, -2px);
	box-shadow: 4px 4px 0 #2d1603, var(--pixel-shadow-soft), var(--pixel-inset);
}

body.page-landing .btn.ghost {
	border: var(--pixel-border);
	color: var(--text);
	background: linear-gradient(180deg, rgba(8, 4, 0, 0.82), rgba(16, 9, 2, 0.72));
	box-shadow: var(--pixel-shadow), var(--pixel-shadow-soft), var(--pixel-inset);
}

body.page-landing .page-shell {
	max-width: 1180px;
	padding: 28px 32px 96px;
	margin: 0 auto;
}

body.page-landing .hero {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 32px;
	padding: 38px 24px 54px;
	background: linear-gradient(180deg, rgba(255, 195, 82, 0.07), rgba(8, 4, 0, 0));
	border: 1px solid rgba(255, 195, 82, 0.25);
	border-radius: 0;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38), inset 0 0 24px rgba(8, 4, 0, 0.55);
}

body.page-landing .eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 0;
	border: 1px solid var(--stroke);
	color: var(--muted);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

body.page-landing .eyebrow::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 0;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	box-shadow: 0 0 0 7px rgba(255, 195, 82, 0.16);
}

body.page-landing h1 {
	font-size: 48px;
	margin: 16px 0 12px;
	line-height: 1.06;
}

body.page-landing .subhead {
	color: var(--muted);
	font-size: 18px;
	line-height: 1.6;
	margin-bottom: 24px;
	max-width: 640px;
}

body.page-landing .cta-row {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

body.page-landing .strength-note {
	color: var(--muted);
	font-size: 13px;
}

body.page-landing .metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	margin-top: 12px;
}

body.page-landing .metric {
	border: 1px solid var(--stroke);
	border-radius: 0;
	padding: 14px 16px;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

body.page-landing .metric .number {
	font-size: 26px;
	font-weight: 700;
}

body.page-landing .metric .label {
	color: var(--muted);
	font-size: 13px;
}

body.page-landing .hero-card {
	border-radius: 0;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: var(--card);
	box-shadow: var(--shadow);
	padding: 22px;
	position: relative;
	overflow: hidden;
}

body.page-landing .hero-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, rgba(255, 195, 82, 0.16), rgba(140, 72, 7, 0.12));
	opacity: 0.7;
	pointer-events: none;
}

body.page-landing .hero-card h3 {
	margin: 0 0 6px;
	font-size: 20px;
}

body.page-landing .hero-card p {
	margin: 0 0 16px;
	color: var(--muted);
}

body.page-landing .card-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 12px;
	position: relative;
	z-index: 1;
}

body.page-landing .card-item {
	display: grid;
	grid-template-columns: 34px 1fr;
	gap: 12px;
	align-items: center;
	padding: 12px;
	border-radius: 0;
	border: 1px solid var(--stroke);
	background: rgba(4, 18, 37, 0.55);
}

body.page-landing .badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 30px;
	border-radius: 0;
	background: linear-gradient(145deg, var(--accent), var(--accent-2));
	color: #05122f;
	font-weight: 800;
	font-size: 13px;
}

body.page-landing .card-item h4 {
	margin: 0;
	font-size: 16px;
}

body.page-landing .card-item span {
	color: var(--muted);
	font-size: 13px;
}

body.page-landing .section {
	padding: 18px 0 12px;
}

body.page-landing .section-header h2 {
	margin: 12px 0 10px;
	font-size: 28px;
}

body.page-landing .section-header p {
	margin: 0 0 22px;
	color: var(--muted);
	max-width: 660px;
	line-height: 1.6;
}

body.page-landing .card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
}

body.page-landing .cta-panel {
	margin: 32px 0 0;
	border-radius: 0;
	border: 1px solid rgba(255, 195, 82, 0.35);
	padding: 28px;
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 14px;
	align-items: center;
	background: linear-gradient(120deg, rgba(255, 195, 82, 0.14), rgba(140, 72, 7, 0.16));
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), inset 0 0 30px rgba(7, 5, 0, 0.6);
}

body.page-landing .cta-panel h3 {
	margin: 0 0 6px;
	font-size: 22px;
}

body.page-landing .cta-panel p {
	margin: 0;
	color: var(--muted);
}

body.page-landing .contact-row {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
}

body.page-landing .contact-meta {
	color: var(--muted);
	font-size: 13px;
}

@media (max-width: 960px) {
	body.page-landing .nav-bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding: 18px 20px;
		position: relative;
	}

	body.page-landing .nav-actions {
		flex-wrap: wrap;
	}

	body.page-landing .page-shell {
		padding: 20px 18px 72px;
	}

	body.page-landing .hero {
		grid-template-columns: 1fr;
	}

	body.page-landing h1 {
		font-size: 36px;
	}

	body.page-landing .cta-panel {
		grid-template-columns: 1fr;
		text-align: left;
	}

	body.page-landing .contact-row {
		justify-content: flex-start;
	}
}

/* Login page */
body.page-login {
	--bg: #050914;
	--panel: rgba(13, 19, 38, 0.8);
	--accent: #fdbc6c;
	--accent-2: #ffb347;
	--accent-3: #ff8a4c;
	--text: #fdbc6c;
	--muted: rgba(255, 195, 82, 0.7);
	--stroke: rgba(255, 195, 82, 0.25);
	--shadow: 0 20px 60px rgba(5, 8, 20, 0.55);
	margin: 0;
	font-family: 'Courier New', monospace;
	background: radial-gradient(circle at 18% 12%, rgba(255, 195, 82, 0.16), transparent 30%), radial-gradient(circle at 86% 8%, rgba(140, 72, 7, 0.2), transparent 30%), var(--bg);
	color: var(--text);
}

body.page-login .login-shell {
	min-height: 50vh;
	display: grid;
	grid-template-columns: minmax(340px, 1.1fr) minmax(320px, 0.9fr);
	grid-template-areas: "hero login";
	column-gap: 28px;
	row-gap: 10px;
	align-items: start;
	align-content: start;
	padding: 48px 28px 64px;
	max-width: 1120px;
	margin: 0 auto;
}

body.page-login .login-column {
	grid-area: login;
	display: grid;
	gap: 12px;
}

body.page-login .login-hero {
	grid-area: hero;
}

body.page-login .login-hero h1 {
	font-size: 38px;
	margin: 0 0 12px;
	line-height: 1.08;
}

body.page-login .login-hero p {
	color: var(--muted);
	font-size: 16px;
	line-height: 1.6;
	margin: 0 0 18px;
}

body.page-login .login-hero .error {
	color: #ffb4a6;
}

body.page-login .login-status {
	margin-top: 12px;
	padding: 12px 14px;
	border-radius: 0;
	border: 1px solid var(--stroke);
	background: rgba(252, 211, 77, 0.08);
	color: #fcd34d;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	box-shadow: 0 0 0 1px rgba(252, 211, 77, 0.12), 0 12px 30px rgba(0, 0, 0, 0.25);
	animation: login-pulse 2s ease-in-out infinite;
}

body.page-login .login-status::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 0;
	background: #fbbf24;
	box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.24);
}

@keyframes login-pulse {
	0% { box-shadow: 0 0 0 1px rgba(252, 211, 77, 0.18), 0 12px 30px rgba(0, 0, 0, 0.25); }
	50% { box-shadow: 0 0 0 6px rgba(252, 211, 77, 0.12), 0 12px 30px rgba(0, 0, 0, 0.2); }
	100% { box-shadow: 0 0 0 1px rgba(252, 211, 77, 0.18), 0 12px 30px rgba(0, 0, 0, 0.25); }
}

body.page-login .pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 0;
	border: 1px solid var(--stroke);
	color: var(--muted);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

body.page-login .pill::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 0;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	box-shadow: 0 0 0 6px rgba(255, 195, 82, 0.16);
}

body.page-login .login-card {
	background: var(--panel);
	border: 1px solid var(--stroke);
	border-radius: 0;
	padding: 22px;
	box-shadow: var(--shadow);
	backdrop-filter: blur(10px);
	display: block;
}

body.page-login .login-card h2 {
	margin: 0 0 10px;
}

body.page-login .login-card p {
	color: var(--muted);
	margin: 0 0 18px;
}

body.page-login .support-card {
	background: var(--panel);
	border: 1px solid var(--stroke);
	border-radius: 0;
	padding: 18px;
	box-shadow: var(--shadow);
	backdrop-filter: blur(10px);
	align-self: start;
	margin-top: 60px;
	max-width: 420px;
	width: 100%;
}

body.page-login .support-card h3 {
	margin: 0 0 8px;
}

body.page-login .support-card p {
	margin: 0 0 12px;
	color: var(--muted);
}

body.page-login .support-links {
	display: grid;
	gap: 10px;
}

body.page-login .support-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 0;
	border: 1px solid var(--stroke);
	color: var(--text);
	text-decoration: none;
	background: rgba(255, 255, 255, 0.02);
}

body.page-login .support-link:hover {
	border-color: rgba(255, 255, 255, 0.16);
}

body.page-login .support-modal-overlay {
	position: fixed;
	inset: 0;
	--support-modal-overlay: rgba(12, 18, 32, 0.55);
	background: var(--support-modal-overlay);
	backdrop-filter: blur(2px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2000;
}

body.page-login .support-modal {
	--support-modal-bg: #0c1326;
	--support-modal-text: #e7edf6;
	--support-modal-muted: #9db2cc;
	--support-modal-border: rgba(255, 255, 255, 0.16);
	--support-modal-input-bg: rgba(255, 255, 255, 0.05);
	--support-modal-input-border: rgba(255, 255, 255, 0.2);
	--support-modal-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
	--support-modal-muted-bg: rgba(255, 255, 255, 0.02);
	--support-modal-muted-bg-hover: rgba(255, 255, 255, 0.06);
	--support-modal-muted-text: var(--support-modal-muted);
	background: var(--support-modal-bg);
	color: var(--support-modal-text);
	padding: 24px;
	border-radius: 0;
	width: min(420px, calc(100% - 32px));
	box-shadow: var(--support-modal-shadow);
	border: 1px solid var(--support-modal-border);
}

body.page-login .support-modal h3 {
	margin: 0 0 8px;
	font-size: 18px;
}

body.page-login .support-modal p.helper {
	margin: 0 0 12px;
	color: var(--support-modal-muted);
	font-size: 13px;
}

body.page-login .support-modal label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin-top: 12px;
	color: var(--support-modal-text);
}

body.page-login .support-modal input,
body.page-login .support-modal textarea {
	width: 100%;
	margin-top: 6px;
	padding: 9px 10px;
	border-radius: 0;
	border: 1px solid var(--support-modal-input-border);
	background: var(--support-modal-input-bg);
	font-size: 14px;
	color: var(--support-modal-text);
}

body.page-login .support-modal textarea {
	min-height: 100px;
	resize: vertical;
}

body.page-login .support-modal input:focus,
body.page-login .support-modal textarea:focus {
	outline: none;
	border-color: var(--accent, #fdbc6c);
	box-shadow: 0 0 0 2px rgba(10, 222, 180, 0.18);
	background: var(--support-modal-bg);
}

body.page-login .support-modal-actions {
	margin-top: 18px;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

body.page-login .support-modal .btn-muted {
	background: var(--support-modal-muted-bg);
	color: var(--support-modal-muted-text);
	border: 1px solid var(--support-modal-border);
	box-shadow: none;
}

body.page-login .support-modal .btn-muted:hover {
	border-color: var(--support-modal-border);
	background: var(--support-modal-muted-bg-hover);
}

body.page-login .support-modal .btn {
	box-shadow: var(--support-modal-shadow);
}

@media (prefers-color-scheme: light) {
	body.page-login .support-modal {
		--support-modal-bg: #ffffff;
		--support-modal-text: #0f172a;
		--support-modal-muted: #475569;
		--support-modal-border: #e2e8f0;
		--support-modal-input-bg: #f8fafc;
		--support-modal-input-border: #cbd5e1;
		--support-modal-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
		--support-modal-muted-bg: rgba(15, 23, 42, 0.02);
		--support-modal-muted-bg-hover: rgba(15, 23, 42, 0.08);
	}
	body.page-login .support-modal-overlay {
		--support-modal-overlay: rgba(15, 23, 42, 0.35);
	}
	body.page-login .support-modal .btn-muted:hover {
		background: rgba(15, 23, 42, 0.04);
	}
}

body.page-login .form-table {
	width: 100%;
	border-spacing: 0 18px;
}

body.page-login .form-table th {
	text-align: right;
	font-size: 13px;
	color: var(--muted);
	padding-right: 14px;
	vertical-align: middle;
	width: 160px;
	white-space: nowrap;
}

body.page-login .form-table td {
	width: 100%;
	padding: 4px 0 4px 4px;
}

body.page-login label {
	font-size: 13px;
	color: var(--muted);
}

body.page-login input[type=text],
body.page-login input[type=password] {
	width: 90%;
	padding: 12px;
	border-radius: 0;
	border: 1px solid var(--stroke);
	background: rgba(255, 255, 255, 0.03);
	color: var(--text);
	font-size: 15px;
	font-family: 'Courier New', monospace;
	letter-spacing: 0.08em;
}

body.page-login input[type=text]:focus,
body.page-login input[type=password]:focus {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-color: var(--accent-3);
	box-shadow: 0 0 0 4px rgba(255, 171, 84, 0.18);
}

body.page-login .form-action {
	padding-top: 10px;
}

body.page-login .form-action .btn {
	width: 97%;
}

body.page-login .btn {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	padding: 12px 18px;
	border-radius: 0;
	border: 1px solid transparent;
	font-weight: 700;
	color: #041225;
	background: linear-gradient(135deg, var(--accent-3), #ffa96d);
	box-shadow: 0 14px 36px rgba(255, 138, 76, 0.34);
	cursor: pointer;
}

body.page-login .btn.sso {
	background: linear-gradient(135deg, var(--accent-2), #7ee0ff);
	box-shadow: 0 12px 30px rgba(89, 195, 255, 0.34);
	color: #041225;
}

body.page-login .small-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--muted);
	font-size: 13px;
	text-decoration: none;
	margin-top: 10px;
}

body.page-login .error {
	color: #ffb4a6;
	margin-top: 10px;
}

@media (max-width: 720px) {
	body.page-login .login-shell {
		padding: 32px 16px 48px;
		grid-template-columns: 1fr;
		grid-template-areas:
			"hero"
			"login";
	}

	body.page-login .login-hero h1 {
		font-size: 30px;
	}
	body.page-login .support-card {
		margin-top: 40px;
		max-width: none;
	}
}

/* Signup page */
body.page-signup {
	--bg: #050914;
	--panel: rgba(13, 19, 38, 0.85);
	--accent: #fdbc6c;
	--accent-2: #ffb347;
	--accent-3: #ff8a4c;
	--text: #f4f7ff;
	--muted: #9db2cc;
	--stroke: rgba(255, 255, 255, 0.08);
	--shadow: 0 20px 60px rgba(5, 8, 20, 0.55);
	margin: 0;
	font-family: 'Courier New', monospace;
	background: radial-gradient(circle at 18% 12%, rgba(255, 195, 82, 0.16), transparent 30%), radial-gradient(circle at 86% 8%, rgba(140, 72, 7, 0.2), transparent 30%), var(--bg);
	color: var(--text);
}

body.page-signup .signup-shell {
	min-height: 100vh;
	display: grid;
	grid-template-columns: minmax(360px, 1.05fr) minmax(340px, 0.95fr);
	gap: 28px;
	align-items: start;
	padding: 52px 28px 72px;
	max-width: 1160px;
	margin: 0 auto;
}

body.page-signup .signup-hero h1 {
	font-size: 40px;
	margin: 0 0 12px;
	line-height: 1.08;
}

body.page-signup .signup-hero p {
	color: var(--muted);
	font-size: 16px;
	line-height: 1.6;
	margin: 0 0 18px;
}

body.page-signup .pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 0;
	border: 1px solid var(--stroke);
	color: var(--muted);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

body.page-signup .pill::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 0;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	box-shadow: 0 0 0 6px rgba(255, 195, 82, 0.18);
}

body.page-signup .callouts {
	display: grid;
	gap: 12px;
	margin-top: 14px;
}

body.page-signup .callout {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	color: var(--text);
	line-height: 1.5;
}

body.page-signup .callout .dot {
	width: 10px;
	height: 10px;
	border-radius: 0;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	box-shadow: 0 0 0 6px rgba(255, 195, 82, 0.14);
	margin-top: 4px;
}

body.page-signup .signup-card {
	background: var(--panel);
	border: 1px solid var(--stroke);
	border-radius: 0;
	padding: 22px;
	box-shadow: var(--shadow);
	backdrop-filter: blur(10px);
}

body.page-signup .signup-card h2 {
	margin: 0 0 10px;
}

body.page-signup .signup-card p {
	color: var(--muted);
	margin: 0 0 18px;
}

body.page-signup .form-table {
	width: 100%;
	border-spacing: 0 18px;
}

body.page-signup .form-table th {
	text-align: right;
	font-size: 13px;
	color: var(--muted);
	padding-right: 14px;
	vertical-align: middle;
	width: 160px;
	white-space: nowrap;
}

body.page-signup .form-table td {
	width: 100%;
	padding: 4px 0 4px 4px;
}

body.page-signup label {
	font-size: 13px;
	color: var(--muted);
}

body.page-signup input[type=text],
body.page-signup input[type=password],
body.page-signup textarea {
	width: 90%;
	padding: 12px;
	border-radius: 0;
	border: 1px solid var(--stroke);
	background: rgba(255, 255, 255, 0.03);
	color: var(--text);
	font-size: 15px;
}

body.page-signup input[type=password] {
	letter-spacing: 0.08em;
	font-family: 'Courier New', monospace;
}

body.page-signup input[type=text]:focus,
body.page-signup input[type=password]:focus,
body.page-signup textarea:focus {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-color: var(--accent-3);
	box-shadow: 0 0 0 4px rgba(255, 171, 84, 0.18);
}

body.page-signup textarea {
	min-height: 96px;
	resize: vertical;
}

body.page-signup .form-action {
	padding-top: 12px;
}

body.page-signup .btn {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	padding: 12px 18px;
	border-radius: 0;
	border: 1px solid transparent;
	font-weight: 700;
	color: #041225;
	background: linear-gradient(135deg, var(--accent-3), #ffa76f);
	box-shadow: 0 14px 36px rgba(255, 138, 76, 0.34);
	cursor: pointer;
	text-decoration: none;
	width: auto;
	min-width: 140px;
}

body.page-signup .support-note {
	margin-top: 14px;
	color: var(--muted);
	font-size: 13px;
}

@media (max-width: 720px) {
	body.page-signup .signup-shell {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 36px 16px 60px;
	}
}

body.page-signup .modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(4, 9, 18, 0.75);
	backdrop-filter: blur(5px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	transition: opacity 0.2s ease;
}

body.page-signup .modal-backdrop.hidden {
	opacity: 0;
	pointer-events: none;
}

body.page-signup .modal {
	background: var(--panel);
	border: 1px solid var(--stroke);
	border-radius: 0;
	padding: 22px 22px 18px;
	box-shadow: var(--shadow);
	width: min(520px, calc(100% - 32px));
	color: var(--text);
}

body.page-signup .modal h3 {
	margin: 0 0 10px;
	font-size: 22px;
}

body.page-signup .modal p {
	margin: 0 0 16px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.6;
}

body.page-signup .modal .field {
	display: grid;
	gap: 6px;
	margin-bottom: 12px;
}

body.page-signup .modal .field label {
	color: var(--muted);
	font-size: 13px;
}

body.page-signup .modal .field input {
	width: 100%;
	padding: 12px;
	border-radius: 0;
	border: 1px solid var(--stroke);
	background: rgba(255, 255, 255, 0.04);
	color: var(--text);
	font-size: 15px;
}

body.page-signup .modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 6px;
}

body.page-signup .btn-secondary {
	background: transparent;
	color: var(--text);
	border: 1px solid var(--stroke);
	box-shadow: none;
	min-width: 110px;
}

/* Logout page */
body.page-logout {
	--bg: #050914;
	--panel: rgba(13, 19, 38, 0.86);
	--text: #fdbc6c;
	--muted: rgba(255, 195, 82, 0.7);
	--accent: #fdbc6c;
	--accent-2: #ffb347;
	--stroke: rgba(255, 195, 82, 0.25);
	--shadow: 0 18px 52px rgba(5, 8, 20, 0.55);
	margin: 0;
	font-family: 'Courier New', monospace;
	background: radial-gradient(circle at 18% 18%, rgba(255, 195, 82, 0.18), transparent 32%), radial-gradient(circle at 82% 14%, rgba(140, 72, 7, 0.2), transparent 30%), var(--bg);
	color: var(--text);
}

body.page-logout .logout-shell {
	min-height: calc(100vh - 160px);
	display: grid;
	place-items: center;
	padding: 64px 16px 80px;
}

body.page-logout .logout-card {
	max-width: 480px;
	width: 100%;
	background: var(--panel);
	border: 1px solid var(--stroke);
	border-radius: 0;
	box-shadow: 6px 6px 0 #2d1603, var(--shadow);
	padding: 24px;
	text-align: center;
}

body.page-logout .logout-card h1 {
	margin: 0 0 8px;
}

body.page-logout .logout-card p {
	margin: 0 0 16px;
	color: var(--muted);
	line-height: 1.6;
}

body.page-logout .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border-radius: 0;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #050200;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 6px 6px 0 #2d1603, 0 12px 32px rgba(0, 0, 0, 0.35);
	border: 2px solid rgba(255, 195, 82, 0.45);
}

body.page-logout .error {
	color: #ffb4a6;
	margin-top: 10px;
}

/* Auth0 callback page */
body.page-callback-auth0 {
	--bg: #050914;
	--panel: rgba(13, 19, 38, 0.86);
	--text: #f4f7ff;
	--muted: #9db2cc;
	--accent: #fdbc6c;
	--accent-2: #ffb347;
	--stroke: rgba(255, 255, 255, 0.08);
	--shadow: 0 18px 52px rgba(5, 8, 20, 0.55);
	margin: 0;
	font-family: 'Courier New', monospace;
	background: radial-gradient(circle at 18% 18%, rgba(89, 195, 255, 0.18), transparent 32%), radial-gradient(circle at 82% 14%, rgba(10, 222, 180, 0.2), transparent 30%), var(--bg);
	color: var(--text);
}

body.page-callback-auth0 .cb-shell {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 48px 16px 64px;
}

body.page-callback-auth0 .cb-card {
	max-width: 460px;
	width: 100%;
	background: var(--panel);
	border: 1px solid var(--stroke);
	border-radius: 18px;
	box-shadow: var(--shadow);
	padding: 24px;
	text-align: center;
	margin-top: 16px;
}

body.page-callback-auth0 .cb-title {
	font-size: 22px;
	margin: 0 0 6px;
}

body.page-callback-auth0 .cb-desc {
	color: var(--muted);
	margin: 0 0 16px;
	line-height: 1.6;
}

body.page-callback-auth0 .cb-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(10, 222, 180, 0.14), rgba(89, 195, 255, 0.14));
	color: var(--text);
	border: 1px solid var(--stroke);
}

body.page-callback-auth0 .cb-spinner {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-top-color: var(--accent);
	animation: spin 1s linear infinite;
}

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