/* Dark theme base */
:root {
	--bg: #0f1115;
	--panel: #171a21;
	--muted: #9aa4b2;
	--text: #e6edf3;
	--primary: #6ca9ff;
	--primary-600: #3d8bff;
	--danger: #ff6b6b;
	--radius: 12px;
	--shadow: 0 10px 30px rgba(0,0,0,0.35);
	--nav-h: 48px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
	margin: 0;
	font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	background: radial-gradient(1200px 800px at 80% 0%, rgba(108,169,255,0.08), transparent),
		radial-gradient(900px 600px at 0% 100%, rgba(61,139,255,0.08), transparent),
		var(--bg);
	color: var(--text);
	display: flex; flex-direction: column; min-height: 100vh;
}

main { flex: 1 0 auto; display: block; }

.container { width: min(1100px, 92%); margin: 0 auto; padding: 32px 0; }
.muted { color: var(--muted); }

.nav {
	position: sticky; top: 0; z-index: 50;
	background: rgba(15,17,21,0.7); backdrop-filter: blur(10px);
	border-bottom: 1px solid #22262e;
	display: flex; align-items: center; justify-content: space-between; padding: 0 4%;
	min-height: var(--nav-h);
}
.nav__brand a { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; height: var(--nav-h); }
.nav__brand .logo { width: 24px; height: 24px; display: block; }
.nav__links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav__links a { color: var(--text); text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: 14px; display: inline-flex; align-items: center; }
.nav__links a:hover { background: #1c2029; }
.nav__toggle { display: none; background: #1c2029; color: var(--text); border: 1px solid #242a34; border-radius: 8px; padding: 6px 10px; cursor: pointer; height: 36px; }

.hero { padding: 72px 0; text-align: center; }
.hero h1 { font-size: clamp(28px, 4vw, 48px); margin: 10px 0 8px; }
.hero__logo { width: 88px; height: 88px; opacity: 0.95; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.35)); }
.hero__actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }

.btn { display: inline-block; padding: 10px 14px; border-radius: 10px; background: #1c2029; color: var(--text); text-decoration: none; border: 1px solid #242a34; cursor: pointer; font-size: 14px; }
.btn:hover { background: #222733; }
.btn--primary { background: var(--primary); color: #0b0e14; border: none; }
.btn--primary:hover { background: var(--primary-600); }

.card, .form-card {
	background: linear-gradient(180deg, rgba(23,26,33,1) 0%, rgba(16,19,26,1) 100%);
	border: 1px solid #232730;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 24px;
}

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

.auth { display: grid; gap: 16px; max-width: 340px; margin: 40px auto; }
.form-card { display: grid; gap: 10px; padding: 14px; border-radius: 10px; }
.form-header { text-align: center; margin-bottom: 2px; }
.form-header h2 { margin: 0 0 4px; font-size: 18px; }
.form-header p { margin: 0; color: var(--muted); font-size: 12px; }
.form-card label { display: grid; gap: 4px; }
.form-card label span { color: var(--muted); font-size: 12px; }
.form-card input { width: 100%; padding: 8px 10px; border-radius: 6px; border: 1px solid #242a34; background: #0f131a; color: var(--text); font-size: 13px; }
.form-card input:focus { outline: 2px solid var(--primary); }
.form-actions { display: grid; gap: 8px; }
.form-actions .btn { width: 100%; text-align: center; padding: 9px 12px; font-weight: 600; }
.form-msg { color: var(--muted); min-height: 18px; text-align: center; font-size: 12px; }

.site-footer { border-top: 1px solid #22262e; margin-top: 48px; background: rgba(15,17,21,0.6); }
.site-footer .container { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding-top: 16px; padding-bottom: 24px; text-align: center; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.footer__brand img { width: 22px; height: 22px; }
.footer__copy { color: var(--muted); font-size: 12px; }

@media (max-width: 820px) {
	.nav__toggle { display: inline-block; }
	.nav__links { display: none; }
	.nav__links.is-open { display: flex; position: absolute; right: 4%; top: calc(var(--nav-h) + 6px); flex-direction: column; gap: 4px; background: var(--panel); border: 1px solid #22262e; border-radius: 10px; padding: 8px; box-shadow: var(--shadow); }
	.nav__links.is-open a { padding: 10px 12px; height: auto; }
}
