/* ------------------------------------------------------------------
   Auth pages redesign (middeleeuwse hero + branding)
------------------------------------------------------------------ */
body.auth-page {
	--auth-parchment: #f3e7cb;
	--auth-ink: #2b2016;
	--auth-accent: #d2a24a;
	--auth-accent-dark: #936b27;
	--auth-panel: rgba(14, 20, 30, 0.9);
	--auth-panel-edge: rgba(219, 180, 102, 0.34);
	background: var(--sky-bg-gradient);
	overflow-x: hidden;
}

body.auth-page.auth-page--login,
body.auth-page.auth-page--register {
	background: #0c141f;
}

body.auth-page .auth-shell {
	max-width: 1080px;
	margin: 0 auto;
	padding: 22px 18px 30px;
	animation: auth-fade-in 420ms ease-out;
}

body.auth-page .auth-hero {
	position: relative;
	padding: 16px;
	border-radius: 18px;
	border: 1px solid rgba(194, 152, 70, 0.32);
	background: linear-gradient(145deg, rgba(10,15,23,0.94), rgba(17,25,37,0.88));
	box-shadow: 0 18px 30px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.05);
	overflow: hidden;
	margin-bottom: 20px;
}

body.auth-page .auth-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(246, 218, 148, 0.16), rgba(246,218,148,0) 40%);
	mix-blend-mode: screen;
}

body.auth-page .auth-brand {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 6px 4px 12px;
}

body.auth-page .auth-brand-logo {
	width: clamp(180px, 34vw, 300px);
	height: auto;
	filter: drop-shadow(0 10px 16px rgba(0,0,0,0.45));
	flex: 0 0 auto;
}

body.auth-page .auth-brand-copy {
	min-width: 0;
}

body.auth-page .auth-overline {
	margin: 0;
	font-family: 'Cinzel', serif;
	font-size: clamp(1rem, 2.3vw, 1.45rem);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #f2d79a;
	text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

body.auth-page .auth-subline {
	margin: 6px 0 0;
	font-size: clamp(1rem, 1.85vw, 1.18rem);
	line-height: 1.3;
	color: #d5dfef;
	max-width: 52ch;
}

body.auth-page .auth-hero-art {
	display: block;
	width: 100%;
	height: clamp(116px, 22vw, 190px);
	object-fit: cover;
	border-radius: 12px;
	border: 1px solid rgba(214, 178, 103, 0.24);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
	opacity: 0.86;
	position: relative;
	z-index: 1;
}

body.auth-page .container.auth-card {
	max-width: 560px;
	margin: 0 auto;
	padding: 26px;
	background:
		linear-gradient(178deg, rgba(13,20,31,0.95), rgba(10,16,25,0.96)),
		linear-gradient(135deg, rgba(209,163,73,0.08), rgba(0,0,0,0));
	border: 1px solid var(--auth-panel-edge);
	border-radius: 16px;
	box-shadow: 0 24px 44px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
	position: relative;
}

body.auth-page .container.auth-card::before {
	content: "";
	position: absolute;
	inset: 10px;
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,0.06);
	pointer-events: none;
}

body.auth-page h1 {
	margin: 0 0 14px;
	font-size: clamp(1.65rem, 4vw, 2.05rem);
	letter-spacing: 0.04em;
	color: var(--auth-parchment);
	text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

body.auth-page label {
	margin: 12px 0 10px;
	font-size: 1.05rem;
	font-weight: 600;
	color: #d8dff0;
}

body.auth-page input[type="text"],
body.auth-page input[type="email"],
body.auth-page input[type="password"] {
	padding: 12px 13px;
	background: linear-gradient(180deg, #0f1624, #0d1421);
	border: 1px solid rgba(135, 154, 182, 0.34);
	border-radius: 10px;
	color: #ecf2ff;
	box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

body.auth-page input[type="text"]:focus,
body.auth-page input[type="email"]:focus,
body.auth-page input[type="password"]:focus {
	border-color: rgba(235, 190, 96, 0.92);
	box-shadow: 0 0 0 3px rgba(235, 190, 96, 0.16), inset 0 1px 2px rgba(0,0,0,0.65);
}

body.auth-page button {
	margin-top: 8px;
	background: linear-gradient(180deg, #d7ae58, #b38332);
	border: 1px solid rgba(255,231,180,0.42);
	color: var(--auth-ink);
	font-weight: 700;
	letter-spacing: 0.06em;
	box-shadow: 0 12px 20px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.35);
}

body.auth-page button:hover {
	filter: brightness(1.04);
	box-shadow: 0 14px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.45);
}

body.auth-page .error {
	margin-bottom: 12px;
	background: rgba(139, 26, 26, 0.48);
	border-color: rgba(245, 148, 148, 0.34);
	color: #ffd4d4;
}

body.auth-page .auth-switch {
	margin-top: 14px;
	font-size: 1.05rem;
	text-align: center;
	color: #cfdaef;
}

body.auth-page .auth-switch .btn-ghost {
	border-color: rgba(222, 188, 111, 0.3);
	color: #f2d79c;
	background: rgba(213, 165, 67, 0.08);
}

body.auth-page .auth-switch .btn-ghost:hover {
	background: rgba(213, 165, 67, 0.14);
	text-decoration: none;
}

/* Login/Register: merge hero + form into one visual panel */
body.auth-page--login .auth-shell,
body.auth-page--register .auth-shell {
	max-width: 620px;
}

body.auth-page--login .auth-panel,
body.auth-page--register .auth-panel {
	position: relative;
	border: 1px solid rgba(194, 152, 70, 0.32);
	border-radius: 16px;
	background:
		linear-gradient(178deg, rgba(13,20,31,0.95), rgba(10,16,25,0.96)),
		linear-gradient(135deg, rgba(209,163,73,0.08), rgba(0,0,0,0));
	box-shadow: 0 24px 44px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
	overflow: hidden;
}

body.auth-page--login .auth-panel::after,
body.auth-page--register .auth-panel::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(246, 218, 148, 0.16), rgba(246,218,148,0) 40%);
	mix-blend-mode: screen;
	z-index: 0;
}

body.auth-page--login .auth-panel::before,
body.auth-page--register .auth-panel::before {
	display: none;
}

body.auth-page--login .auth-hero,
body.auth-page--register .auth-hero {
	margin-bottom: 0;
	border-radius: 0;
	border: none;
	box-shadow: none;
	background: transparent;
	z-index: 1;
}

body.auth-page--login .auth-hero::after,
body.auth-page--register .auth-hero::after {
	display: none;
}

body.auth-page--login .auth-hero-art,
body.auth-page--register .auth-hero-art {
	border-radius: 12px;
}

body.auth-page--login .container.auth-card,
body.auth-page--register .container.auth-card {
	max-width: 100%;
	margin: 0;
	border-radius: 0;
	border: none;
	background: transparent;
	box-shadow: none;
	z-index: 1;
}

body.auth-page--login h1,
body.auth-page--register h1 {
	font-family: 'Cinzel', serif;
	color: #f2d79a;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

body.auth-page--login .container.auth-card::before,
body.auth-page--register .container.auth-card::before {
	display: none;
}

body.auth-page--login input[type="text"],
body.auth-page--login input[type="email"],
body.auth-page--login input[type="password"],
body.auth-page--register input[type="text"],
body.auth-page--register input[type="email"],
body.auth-page--register input[type="password"] {
	background: transparent;
	border-color: rgba(133, 154, 185, 0.42);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

body.auth-page--login input[type="text"]::placeholder,
body.auth-page--login input[type="email"]::placeholder,
body.auth-page--login input[type="password"]::placeholder,
body.auth-page--register input[type="text"]::placeholder,
body.auth-page--register input[type="email"]::placeholder,
body.auth-page--register input[type="password"]::placeholder {
	color: rgba(213, 224, 244, 0.58);
}

body.auth-page--login input[type="text"]:focus,
body.auth-page--login input[type="email"]:focus,
body.auth-page--login input[type="password"]:focus,
body.auth-page--register input[type="text"]:focus,
body.auth-page--register input[type="email"]:focus,
body.auth-page--register input[type="password"]:focus {
	background: transparent;
	border-color: rgba(235, 190, 96, 0.92);
	box-shadow: 0 0 0 3px rgba(235, 190, 96, 0.14), inset 0 1px 0 rgba(255,255,255,0.06);
}

@keyframes auth-fade-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 760px) {
	body.auth-page .auth-shell {
		padding: 14px 12px 20px;
	}

	body.auth-page .auth-hero {
		padding: 12px;
		margin-bottom: 14px;
	}

	body.auth-page .auth-brand {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	body.auth-page .auth-brand-logo {
		width: min(250px, 74vw);
	}

	body.auth-page .auth-subline {
		max-width: none;
	}

	body.auth-page .container.auth-card {
		max-width: 100%;
		padding: 18px 16px;
		border-radius: 12px;
	}

	body.auth-page .container.auth-card::before {
		inset: 8px;
	}

	body.auth-page--login .auth-shell,
	body.auth-page--register .auth-shell {
		max-width: 100%;
	}

	body.auth-page--login .auth-panel,
	body.auth-page--register .auth-panel {
		border-radius: 12px;
	}

	body.auth-page--login .auth-panel::before,
	body.auth-page--register .auth-panel::before {
		inset: 8px;
		border-radius: 8px;
	}

	body.auth-page--login .auth-hero,
	body.auth-page--register .auth-hero {
		margin-bottom: 0;
	}

	body.auth-page--login .container.auth-card,
	body.auth-page--register .container.auth-card {
		border-radius: 12px;
	}
}

/* ------------------------------------------------------------------
   Login/Register visual refresh (new background + centered logo)
------------------------------------------------------------------ */
body.auth-page.auth-page--login,
body.auth-page.auth-page--register {
	background:
		url('../assets/background_wide.png') center top / cover no-repeat;
	background-attachment: fixed;
	min-height: 100vh;
}

body.auth-page--login .auth-shell,
body.auth-page--register .auth-shell {
	max-width: 100%;
	min-height: 100vh;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(18px, 4vw, 34px) 16px 16px;
}

.auth-footer-bar {
	position: static;
	padding: 8px 2px calc(8px + env(safe-area-inset-bottom));
	text-align: center;
	backdrop-filter: none;
}

.auth-footer-bar p {
	margin: 0;
	font-family: 'Cinzel', serif;
	font-size: 0.82rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}


body.auth-page--login .auth-panel,
body.auth-page--register .auth-panel {
	width: min(100%, 580px);
	border: none;
	background: transparent;
	box-shadow: none;
	overflow: visible;
}

body.auth-page--login .auth-panel,
body.auth-page--login .auth-panel *,
body.auth-page--register .auth-panel,
body.auth-page--register .auth-panel * {
	font-family: 'Cinzel', serif;
}

body.auth-page--login .auth-panel::before,
body.auth-page--login .auth-panel::after,
body.auth-page--register .auth-panel::before,
body.auth-page--register .auth-panel::after {
	display: none;
}

body.auth-page--login .auth-hero,
body.auth-page--register .auth-hero {
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	box-shadow: none;
}

body.auth-page--login .auth-brand,
body.auth-page--register .auth-brand {
	justify-content: center;
	padding: 0;
}

body.auth-page--login .auth-brand-link,
body.auth-page--register .auth-brand-link {
	display: inline-flex;
	justify-content: center;
	align-items: center;
}

body.auth-page--login .auth-brand-logo,
body.auth-page--register .auth-brand-logo {
	width: clamp(300px, 50vw, 480px);
	height: auto;
	filter: none;
}

body.auth-page--login .auth-brand-copy,
body.auth-page--register .auth-brand-copy,
body.auth-page--login .auth-hero-art,
body.auth-page--register .auth-hero-art {
	display: none;
}

body.auth-page--login .container.auth-card,
body.auth-page--register .container.auth-card {
	max-width: 100%;
	margin: clamp(14px, 2.2vw, 22px) 0 0;
	padding: 22px;
	border-radius: 16px;
	border: 1px solid rgba(216, 176, 97, 0.36);
	background:
		linear-gradient(180deg, rgba(8, 16, 26, 0.68), rgba(10, 17, 27, 0.74)),
		linear-gradient(120deg, rgba(214, 171, 89, 0.13), rgba(0, 0, 0, 0));
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

body.auth-page--login .container.auth-card::before,
body.auth-page--register .container.auth-card::before {
	display: none;
}

body.auth-page--login .auth-overline,
body.auth-page--register .auth-overline {
	text-align: center;
	font-size: clamp(1.2rem, 2.3vw, 1.45rem);
	margin-bottom: 12px;
}

@media (max-width: 760px) {
	body.auth-page.auth-page--login,
	body.auth-page.auth-page--register {
		background: url('../assets/background_small.png') center top / cover no-repeat;
		background-attachment: fixed;
	}

	body.auth-page--login .auth-shell,
	body.auth-page--register .auth-shell {
		padding: 12px 12px 74px;
	}

	body.auth-page--login .auth-brand,
	body.auth-page--register .auth-brand {
		width: 100%;
		justify-content: center;
		align-items: center;
	}

	body.auth-page--login .auth-brand-link,
	body.auth-page--register .auth-brand-link {
		width: 100%;
		justify-content: center;
	}

	body.auth-page--login .auth-brand-logo,
	body.auth-page--register .auth-brand-logo {
		width: min(92vw, 420px);
	}

	body.auth-page--login .container.auth-card,
	body.auth-page--register .container.auth-card {
		padding: 18px 16px;
		border-radius: 12px;
	}
}
