/*!
 * Go Splash 2.0 — splash screen styles
 */

/* ---------- Tokens ---------- */
:root {
	--gs-bg: #f5f4f1;
	--gs-surface: #ffffff;
	--gs-text: #18171c;
	--gs-muted: #6c6a73;
	--gs-faint: #9b99a2;
	--gs-border: #e7e5e0;
	--gs-field: #ffffff;
	--gs-field-border: #dcd9d3;
	--gs-ring: color-mix(in oklab, var(--gs-accent) 28%, transparent);
	--gs-accent-hover: color-mix(in oklab, var(--gs-accent) 86%, #000);
	--gs-accent-soft: color-mix(in oklab, var(--gs-accent) 9%, var(--gs-surface));
	--gs-error: #c2283a;
	--gs-error-soft: color-mix(in oklab, var(--gs-error) 8%, var(--gs-surface));
	--gs-info: #187a4d;
	--gs-info-soft: color-mix(in oklab, var(--gs-info) 9%, var(--gs-surface));
	--gs-radius-xl: 28px;
	--gs-radius: 12px;
	--gs-shadow: 0 1px 2px rgb(20 18 30 / .04), 0 8px 24px -12px rgb(20 18 30 / .10);
	--gs-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--gs-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
	color-scheme: light;
}

.gs-scheme-dark {
	--gs-bg: #0d0d10;
	--gs-surface: #16161a;
	--gs-text: #f3f2f5;
	--gs-muted: #a3a1ab;
	--gs-faint: #75737d;
	--gs-border: #26252b;
	--gs-field: #1b1b20;
	--gs-field-border: #2f2e35;
	--gs-accent-hover: color-mix(in oklab, var(--gs-accent) 84%, #fff);
	--gs-error: #ff6b7d;
	--gs-info: #4fd395;
	--gs-shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .5);
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	.gs-scheme-auto {
		--gs-bg: #0d0d10;
		--gs-surface: #16161a;
		--gs-text: #f3f2f5;
		--gs-muted: #a3a1ab;
		--gs-faint: #75737d;
		--gs-border: #26252b;
		--gs-field: #1b1b20;
		--gs-field-border: #2f2e35;
		--gs-accent-hover: color-mix(in oklab, var(--gs-accent) 84%, #fff);
		--gs-error: #ff6b7d;
		--gs-info: #4fd395;
		--gs-shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .5);
		color-scheme: dark;
	}
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body.gs {
	margin: 0;
	background: var(--gs-bg);
	color: var(--gs-text);
	font-family: var(--gs-sans);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

.gs a { color: inherit; }

/* ---------- Layout ---------- */
.gs-shell {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
	min-height: 100vh;
	min-height: 100dvh;
	padding: 14px;
	gap: 14px;
}

/* ---------- Showcase panel ---------- */
.gs-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: clamp(28px, 4vw, 52px);
	border-radius: var(--gs-radius-xl);
	color: #fff;
	background: #1a1020;
}

.gs-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	background: var(--gs-hero-image) center / cover no-repeat;
	transform: scale(1.04);
	filter: saturate(.85);
	animation: gs-drift 24s ease-in-out infinite alternate;
}

.gs-bg-gradient .gs-hero__media {
	background:
		radial-gradient(60% 55% at 18% 22%, color-mix(in oklab, var(--gs-accent) 85%, #fff 0%) 0%, transparent 70%),
		radial-gradient(55% 60% at 85% 30%, #6a2bd9 0%, transparent 70%),
		radial-gradient(70% 60% at 60% 95%, #2a0f5c 0%, transparent 70%),
		#170b26;
	filter: none;
}

.gs-hero__tint {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgb(10 6 18 / .35) 0%, rgb(10 6 18 / 0) 30%, rgb(10 6 18 / 0) 60%, rgb(10 6 18 / .55) 100%),
		linear-gradient(135deg, color-mix(in oklab, var(--gs-accent) 52%, transparent) 0%, rgb(56 24 120 / .55) 100%);
	mix-blend-mode: normal;
}

/* subtle film grain */
.gs-hero__tint::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: .18;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.gs-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	align-self: flex-start;
	margin: 0;
	padding: 8px 14px 8px 12px;
	border: 1px solid rgb(255 255 255 / .18);
	border-radius: 999px;
	background: rgb(255 255 255 / .08);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	font-size: 13px;
	font-weight: 450;
	letter-spacing: .01em;
	color: rgb(255 255 255 / .9);
}

.gs-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 4px rgb(255 255 255 / .18);
}

.gs-hero__center {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 28px;
	padding-block: 32px;
}

.gs-hero__logo {
	width: clamp(88px, 9vw, 120px);
	height: auto;
	border-radius: 50%;
	box-shadow: 0 20px 50px -18px rgb(0 0 0 / .6), 0 0 0 1px rgb(255 255 255 / .12);
}

.gs-hero__headline {
	margin: 0;
	max-width: 14ch;
	font-family: var(--gs-serif);
	font-weight: 400;
	font-size: clamp(36px, 4.4vw, 64px);
	line-height: 1.02;
	letter-spacing: -.015em;
	text-wrap: balance;
}

.gs-hero__headline em {
	font-style: italic;
	color: color-mix(in oklab, var(--gs-accent) 30%, #fff);
}

.gs-hero__headline strong { font-weight: 400; }

.gs-hero__credit {
	margin: 0;
	font-size: 12px;
	letter-spacing: .02em;
	color: rgb(255 255 255 / .62);
	text-align: center;
}

.gs-hero__credit a {
	text-decoration: none;
	transition: color .2s;
}

.gs-hero__credit a:hover { color: #fff; }

/* ---------- Form panel ---------- */
.gs-panel {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
	padding: clamp(20px, 3vw, 40px) clamp(20px, 4vw, 64px);
}

.gs-panel__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
	min-height: 24px;
}

.gs-brand {
	font-weight: 600;
	font-size: 16px;
	letter-spacing: -.01em;
}

.gs-tagline {
	font-size: 14px;
	color: var(--gs-muted);
}

.gs-card {
	width: 100%;
	max-width: 400px;
	margin-inline: auto;
	animation: gs-rise .7s cubic-bezier(.2, .7, .2, 1) both;
}

.gs-title {
	margin: 0 0 8px;
	font-size: clamp(28px, 2.6vw, 34px);
	line-height: 1.1;
	font-weight: 600;
	letter-spacing: -.03em;
}

.gs-subtitle {
	margin: 0 0 28px;
	color: var(--gs-muted);
	font-size: 15px;
}

.gs-message {
	margin: 0 0 24px;
	padding: 14px 16px;
	border-radius: var(--gs-radius);
	background: var(--gs-accent-soft);
	border: 1px solid color-mix(in oklab, var(--gs-accent) 16%, transparent);
	font-size: 14px;
	color: var(--gs-text);
}

.gs-message > :first-child { margin-top: 0; }
.gs-message > :last-child { margin-bottom: 0; }
.gs-message a { color: var(--gs-accent); }

.gs-alert {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0 0 20px;
	padding: 12px 14px;
	border-radius: var(--gs-radius);
	font-size: 14px;
	line-height: 1.45;
	animation: gs-shake .4s ease both;
}

.gs-alert svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }

.gs-alert--error {
	background: var(--gs-error-soft);
	color: var(--gs-error);
	border: 1px solid color-mix(in oklab, var(--gs-error) 18%, transparent);
}

.gs-alert--info {
	background: var(--gs-info-soft);
	color: var(--gs-info);
	border: 1px solid color-mix(in oklab, var(--gs-info) 18%, transparent);
	animation: none;
}

/* ---------- Form ---------- */
.gs-form { display: grid; gap: 18px; }

.gs-field { display: grid; gap: 7px; }

.gs-field label {
	font-size: 13.5px;
	font-weight: 500;
	color: var(--gs-text);
}

.gs-field input {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid var(--gs-field-border);
	border-radius: var(--gs-radius);
	background: var(--gs-field);
	color: var(--gs-text);
	font: inherit;
	font-size: 15px;
	box-shadow: 0 1px 2px rgb(20 18 30 / .04);
	transition: border-color .15s, box-shadow .15s, background-color .15s;
	appearance: none;
}

.gs-field input:hover { border-color: color-mix(in oklab, var(--gs-field-border) 60%, var(--gs-text)); }

.gs-field input:focus {
	outline: none;
	border-color: var(--gs-accent);
	box-shadow: 0 0 0 4px var(--gs-ring);
}

.gs-field input:-webkit-autofill,
.gs-field input:-webkit-autofill:hover,
.gs-field input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--gs-text);
	-webkit-box-shadow: 0 0 0 40px var(--gs-field) inset, 0 0 0 4px transparent;
	caret-color: var(--gs-text);
}

.gs-pass { position: relative; }

.gs-pass input { padding-right: 52px; }

.gs-pass__toggle {
	position: absolute;
	top: 50%;
	right: 6px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--gs-faint);
	cursor: pointer;
	transform: translateY(-50%);
	transition: color .15s, background-color .15s;
}

.gs-pass__toggle:hover { color: var(--gs-text); background: color-mix(in oklab, var(--gs-text) 6%, transparent); }
.gs-pass__toggle:focus-visible { outline: 2px solid var(--gs-accent); outline-offset: 1px; }

.gs-pass__toggle svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.gs-pass__toggle .gs-eye-off,
.gs-pass__toggle[aria-pressed="true"] .gs-eye { display: none; }
.gs-pass__toggle[aria-pressed="true"] .gs-eye-off { display: block; }

.gs-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: -2px;
}

/* Toggle switch */
.gs-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--gs-muted);
	cursor: pointer;
	user-select: none;
}

.gs-switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.gs-switch__track {
	position: relative;
	flex: none;
	width: 34px;
	height: 20px;
	border-radius: 999px;
	background: color-mix(in oklab, var(--gs-text) 16%, transparent);
	transition: background-color .2s;
}

.gs-switch__track::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgb(0 0 0 / .25);
	transition: transform .22s cubic-bezier(.3, .7, .3, 1.2);
}

.gs-switch input:checked + .gs-switch__track { background: var(--gs-accent); }
.gs-switch input:checked + .gs-switch__track::after { transform: translateX(14px); }
.gs-switch input:focus-visible + .gs-switch__track { box-shadow: 0 0 0 4px var(--gs-ring); }

.gs-link {
	font-size: 14px;
	font-weight: 500;
	color: var(--gs-accent) !important;
	text-decoration: none;
	text-underline-offset: 3px;
}

.gs-link:hover { text-decoration: underline; }
.gs-link:focus-visible { outline: 2px solid var(--gs-accent); outline-offset: 2px; border-radius: 4px; }

.gs-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 50px;
	margin-top: 6px;
	padding: 0 20px;
	border: 0;
	border-radius: var(--gs-radius);
	background: var(--gs-accent);
	color: var(--gs-accent-ink);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -.005em;
	cursor: pointer;
	box-shadow: 0 1px 0 rgb(255 255 255 / .2) inset, 0 8px 20px -10px var(--gs-accent);
	transition: background-color .2s, transform .15s, box-shadow .2s;
}

.gs-submit:hover { background: var(--gs-accent-hover); }
.gs-submit:active { transform: translateY(1px) scale(.995); }
.gs-submit:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--gs-ring); }

.gs-submit svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .2s;
}

.gs-submit:hover svg { transform: translateX(3px); }

.gs-submit.is-loading { pointer-events: none; opacity: .85; }
.gs-submit.is-loading svg { animation: gs-nudge .8s ease-in-out infinite; }

.gs-register {
	margin: 24px 0 0;
	text-align: center;
	font-size: 14px;
	color: var(--gs-muted);
}

.gs-panel__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 16px;
	font-size: 13px;
	color: var(--gs-faint);
}

.gs-panel__foot a {
	text-decoration: none;
	transition: color .2s;
}

.gs-panel__foot a:hover { color: var(--gs-text); }

/* ---------- Motion ---------- */
@keyframes gs-rise {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

@keyframes gs-drift {
	from { transform: scale(1.04) translate3d(0, 0, 0); }
	to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@keyframes gs-shake {
	0%, 100% { transform: none; }
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}

@keyframes gs-nudge {
	0%, 100% { transform: translateX(0); }
	50% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.gs-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 860px) {
	.gs-shell {
		grid-template-columns: 1fr;
		padding: 10px;
		gap: 0;
	}

	.gs-hero {
		min-height: 300px;
		padding: 22px;
		border-radius: 22px;
	}

	.gs-hero__center { gap: 18px; padding-block: 24px 8px; }
	.gs-hero__logo { width: 76px; }
	.gs-hero__headline { font-size: clamp(30px, 8vw, 40px); }
	.gs-hero__credit { display: none; }
	.gs-hero__eyebrow { font-size: 12px; padding: 6px 12px 6px 10px; }

	.gs-panel { padding: 28px 14px 18px; gap: 28px; }
	.gs-panel__head { display: none; }
	.gs-panel__foot { justify-content: center; text-align: center; }
}

@media (max-width: 380px) {
	.gs-row { flex-direction: column; align-items: flex-start; }
}
