/* ─── Auth page — standalone login / register ──────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.auth-page {
	min-height: 100vh;
	background: #0a0a0a;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem 1.25rem;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* ─── Back link ──────────────────────────────────────────────────────────────── */

.auth-back {
	position: fixed;
	top: 1.25rem;
	left: 1.5rem;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8125rem;
	color: #52525b;
	text-decoration: none;
	transition: color 0.15s;
}
.auth-back:hover { color: #a1a1aa; }
.auth-back svg { flex-shrink: 0; }

/* ─── Card ───────────────────────────────────────────────────────────────────── */

.auth-card {
	width: 100%;
	max-width: 420px;
	background: #0f0f0f;
	border: 1px solid #1e1e1e;
	border-radius: 20px;
	padding: 2.5rem 2.25rem;
}

/* ─── Brand ──────────────────────────────────────────────────────────────────── */

.auth-brand img {
	display: block;
	max-height: 32px;
	max-width: 140px;
	width: auto;
	object-fit: contain;
}

.auth-brand {
	display: inline-block;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-transform: lowercase;
	color: #fafafa;
	text-decoration: none;
	margin-bottom: 2rem;
}

.auth-heading {
	font-size: 1.625rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: #fafafa;
	line-height: 1.15;
	margin-bottom: 0.4rem;
}

.auth-subheading {
	font-size: 0.9rem;
	color: #52525b;
	line-height: 1.5;
	margin-bottom: 2rem;
}
.auth-subheading a {
	color: #a1a1aa;
	text-decoration: none;
	transition: color 0.15s;
}
.auth-subheading a:hover { color: #fafafa; }

/* ─── Notice ──────────────────────────────────────────────────────────────────── */

.auth-notice {
	display: none;
	padding: 0.75rem 1rem;
	border-radius: 10px;
	font-size: 0.875rem;
	line-height: 1.5;
	margin-bottom: 1.25rem;
	border: 1px solid transparent;
}
.auth-notice.is-visible { display: block; }
.auth-notice--error   { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.2); color: #f87171; }
.auth-notice--success { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.2); color: #4ade80; }

/* ─── Form ───────────────────────────────────────────────────────────────────── */

.auth-form { display: flex; flex-direction: column; gap: 1.125rem; }

.auth-field { display: flex; flex-direction: column; gap: 0.375rem; }

.auth-label {
	font-size: 0.8rem;
	font-weight: 500;
	color: #71717a;
	letter-spacing: 0.01em;
}

.auth-input-wrap { position: relative; }

.auth-input {
	width: 100%;
	background: #18181b;
	border: 1px solid #27272a;
	border-radius: 10px;
	color: #e4e4e7;
	font-size: 0.9375rem;
	padding: 0.75rem 2.75rem 0.75rem 0.9375rem;
	outline: none;
	transition: border-color 0.15s;
	font-family: inherit;
}
.auth-input:focus       { border-color: #ef4444; }
.auth-input::placeholder { color: #3f3f46; }
.auth-input.is-invalid  { border-color: rgba(239,68,68,0.6); }

.auth-toggle-pw {
	position: absolute;
	right: 0.625rem;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #52525b;
	cursor: pointer;
	padding: 0.25rem;
	line-height: 0;
	transition: color 0.15s;
}
.auth-toggle-pw:hover { color: #a1a1aa; }

.auth-field-footer {
	display: flex;
	justify-content: flex-end;
	margin-top: -0.5rem;
}
.auth-field-footer a {
	font-size: 0.8rem;
	color: #52525b;
	text-decoration: none;
	transition: color 0.15s;
}
.auth-field-footer a:hover { color: #a1a1aa; }

/* ─── Submit button ──────────────────────────────────────────────────────────── */

.auth-submit {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.8125rem 1.5rem;
	background: #ef4444;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
	font-family: inherit;
	margin-top: 0.375rem;
}
.auth-submit:hover:not(:disabled) { background: #dc2626; }
.auth-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.auth-spinner {
	width: 15px;
	height: 15px;
	border: 2px solid rgba(255,255,255,0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: auth-spin 0.6s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

/* ─── Footer links ───────────────────────────────────────────────────────────── */

.auth-alt {
	text-align: center;
	font-size: 0.875rem;
	color: #52525b;
	margin-top: 1.75rem;
	padding-top: 1.75rem;
	border-top: 1px solid #18181b;
}
.auth-alt a {
	color: #a1a1aa;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.15s;
}
.auth-alt a:hover { color: #fafafa; }

/* ─── Responsive ──────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
	.auth-card { padding: 2rem 1.5rem; border-radius: 16px; }
	.auth-heading { font-size: 1.375rem; }
}

