:root {
	color-scheme: dark;
	--bg: #080a0f;
	--bg-soft: #0d1118;
	--surface: rgba(19, 24, 35, 0.82);
	--surface-strong: rgba(26, 32, 48, 0.94);
	--border: rgba(255, 247, 234, 0.14);
	--border-strong: rgba(255, 112, 72, 0.42);
	--text: #fff7ea;
	--text-soft: #e1d8ca;
	--muted: #9da8b8;
	--accent: #ff7048;
	--accent-2: #f7c65f;
	--accent-dark: #1e0e0a;
	--shadow: rgba(0, 0, 0, 0.36);
}

* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
	background: var(--bg);
}

body {
	min-height: 100svh;
	margin: 0;
	color: var(--text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: 0;
	background:
		linear-gradient(120deg, rgba(255, 112, 72, 0.11), transparent 28%),
		linear-gradient(315deg, rgba(247, 198, 95, 0.08), transparent 30%),
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
		var(--bg);
	background-size: auto, auto, 44px 44px, 44px 44px, auto;
}

body::before {
	position: fixed;
	inset: 0;
	pointer-events: none;
	content: "";
	background:
		linear-gradient(90deg, rgba(8, 10, 15, 0.84), rgba(8, 10, 15, 0.26) 52%, rgba(8, 10, 15, 0.9)),
		linear-gradient(180deg, rgba(8, 10, 15, 0.18), rgba(8, 10, 15, 0.72));
}

button,
input {
	font: inherit;
	letter-spacing: 0;
}

.auth-shell {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
	align-items: center;
	min-height: 100svh;
	gap: clamp(32px, 7vw, 104px);
	padding: clamp(28px, 5vw, 72px);
}

.intro-pane {
	display: grid;
	align-content: space-between;
	min-height: min(640px, calc(100svh - 96px));
	max-width: 760px;
	animation: rise 680ms ease both;
}

.brand {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	gap: 12px;
	color: var(--text);
	text-decoration: none;
}

.brand-logo {
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	display: block;
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--border), 0 18px 48px var(--shadow);
}

.brand span {
	display: grid;
	gap: 2px;
	line-height: 1;
}

.brand strong {
	font-size: 0.98rem;
	font-weight: 800;
}

.brand span span {
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 650;
	text-transform: uppercase;
}

.intro-copy {
	max-width: 660px;
	padding: clamp(56px, 9vw, 112px) 0;
}

.eyebrow {
	margin: 0 0 14px;
	color: var(--accent-2);
	font-size: 0.78rem;
	font-weight: 760;
	text-transform: uppercase;
}

h1,
h2,
p {
	margin: 0;
}

h1 {
	max-width: 10ch;
	font-size: clamp(3.4rem, 8vw, 7.8rem);
	line-height: 0.88;
	font-weight: 850;
}

.lead {
	max-width: 560px;
	margin-top: 28px;
	color: var(--text-soft);
	font-size: clamp(1.02rem, 1.5vw, 1.22rem);
	line-height: 1.65;
}

.signal-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	padding: 0;
	margin: 0;
	color: var(--muted);
	list-style: none;
}

.signal-list li {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 32px;
	font-size: 0.92rem;
}

.signal-list span {
	width: 8px;
	height: 8px;
	flex: 0 0 8px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px rgba(255, 112, 72, 0.12);
}

.login-panel {
	width: 100%;
	border: 1px solid var(--border);
	border-radius: 8px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 36%),
		var(--surface);
	box-shadow: 0 30px 80px var(--shadow);
	backdrop-filter: blur(24px);
	padding: clamp(24px, 3vw, 34px);
	animation: rise 680ms 120ms ease both;
}

.panel-head {
	margin-bottom: 28px;
}

h2 {
	color: var(--text);
	font-size: clamp(1.7rem, 3vw, 2.2rem);
	line-height: 1.04;
	font-weight: 820;
}

.login-form {
	display: grid;
	gap: 18px;
}

.field {
	display: grid;
	gap: 9px;
}

.field > span:first-child {
	color: var(--text-soft);
	font-size: 0.9rem;
	font-weight: 700;
}

input {
	width: 100%;
	min-width: 0;
	min-height: 48px;
	border: 1px solid var(--border);
	border-radius: 8px;
	outline: none;
	color: var(--text);
	background: rgba(8, 10, 15, 0.72);
	padding: 0 14px;
	transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

input:focus {
	border-color: var(--border-strong);
	background: rgba(8, 10, 15, 0.92);
	box-shadow: 0 0 0 4px rgba(255, 112, 72, 0.13);
}

.password-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: rgba(8, 10, 15, 0.72);
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.password-wrap:focus-within {
	border-color: var(--border-strong);
	box-shadow: 0 0 0 4px rgba(255, 112, 72, 0.13);
}

.password-wrap input {
	border: 0;
	background: transparent;
	box-shadow: none;
}

.ghost-button {
	min-height: 36px;
	margin-right: 6px;
	border: 0;
	border-radius: 6px;
	color: var(--accent-2);
	background: transparent;
	padding: 0 10px;
	cursor: pointer;
	transition: color 160ms ease, background 160ms ease;
}

.ghost-button:hover,
.ghost-button:focus-visible {
	color: var(--text);
	background: rgba(255, 255, 255, 0.07);
	outline: none;
}

.form-message {
	border: 1px solid rgba(255, 112, 72, 0.34);
	border-radius: 8px;
	color: #ffd9cc;
	background: rgba(255, 112, 72, 0.11);
	padding: 12px 14px;
	font-size: 0.92rem;
	line-height: 1.4;
}

.form-message[hidden] {
	display: none;
}

.submit-button {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	min-height: 52px;
	width: 100%;
	border: 1px solid rgba(255, 112, 72, 0.6);
	border-radius: 8px;
	color: #170805;
	background: var(--accent);
	padding: 0 18px;
	font-weight: 820;
	cursor: pointer;
	box-shadow: 0 18px 44px rgba(255, 112, 72, 0.2);
	transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
	background: #ff825f;
	box-shadow: 0 22px 54px rgba(255, 112, 72, 0.28);
	transform: translateY(-1px);
	outline: none;
}

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

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}

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

@media (max-width: 860px) {
	.auth-shell {
		grid-template-columns: 1fr;
		align-content: start;
		gap: 22px;
		padding: 24px;
	}

	.intro-pane {
		min-height: auto;
	}

	.intro-copy {
		padding: 36px 0 4px;
	}

	h1 {
		max-width: 10ch;
		font-size: clamp(2.65rem, 13vw, 4rem);
		line-height: 0.94;
	}

	.lead {
		margin-top: 18px;
		font-size: 1rem;
		line-height: 1.55;
	}

	.signal-list {
		display: none;
	}

	.login-panel {
		max-width: 520px;
	}
}

@media (max-width: 420px) {
	.auth-shell {
		padding: 18px;
	}

	.brand strong {
		font-size: 0.9rem;
	}

	.signal-list {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 1ms !important;
		scroll-behavior: auto !important;
		transition-duration: 1ms !important;
	}
}
