/* ── Admin auth pages — Events Fusion ─────────────────────── */

:root {
	--ef-navy: #0f2744;
	--ef-blue: #1a5f9e;
	--ef-cyan: #1ec3ec;
	--ef-orange: #f3835b;
	--ef-orange-dark: #c55933;
	--ef-text: #1e293b;
	--ef-muted: #64748b;
	--login-bg-image: url(/img/login/login-bg-events-fusion.jpg);
}

body.login {
	position: relative;
	min-height: 100vh;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	text-align: center;
	font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
	background: var(--login-bg-image) no-repeat center center fixed;
	background-size: cover;
}

body.login::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 0;
	background:
		linear-gradient(135deg, rgba(8, 22, 40, 0.82) 0%, rgba(15, 39, 68, 0.55) 45%, rgba(26, 95, 158, 0.45) 100%),
		radial-gradient(ellipse at 20% 80%, rgba(30, 195, 236, 0.12) 0%, transparent 55%),
		radial-gradient(ellipse at 80% 20%, rgba(243, 131, 91, 0.08) 0%, transparent 50%);
	pointer-events: none;
}

body.login > * {
	position: relative;
	z-index: 1;
}

/* ── Top-right link ── */
.create-account {
	position: absolute;
	top: 24px;
	right: 28px;
}
.create-account a {
	color: rgba(255, 255, 255, 0.92);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.2s ease;
}
.create-account a:hover {
	color: var(--ef-cyan);
}
.create-account a::after {
	content: '';
	background: linear-gradient(90deg, var(--ef-cyan), var(--ef-blue));
	height: 2px;
	width: 32px;
	display: block;
	position: absolute;
	right: 0;
	bottom: -6px;
	border-radius: 2px;
}

/* ── Logo ── */
.login-logo {
	margin: 40px auto 28px;
	padding: 0 20px;
	line-height: 0;
}
.login-logo img {
	display: inline-block;
	max-height: 72px;
	max-width: min(300px, 88vw);
	width: auto;
	height: auto;
	object-fit: contain;
	vertical-align: middle;
	filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

/* ── Form card ── */
.login-form-wrapper {
	width: 100%;
	max-width: 460px;
	margin: 0 auto 40px;
	padding: 0 16px;
	box-sizing: border-box;
	background: transparent;
}
.login-form-inner {
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-radius: 16px;
	box-shadow:
		0 24px 48px rgba(8, 22, 40, 0.28),
		0 0 0 1px rgba(255, 255, 255, 0.08) inset;
	padding-bottom: 28px;
	box-sizing: border-box;
}
.login-form-inner::after {
	content: '';
	display: block;
	clear: both;
}
.login-form-inner h4 {
	padding: 36px 24px 8px;
	margin: 0;
	font-size: 22px;
	font-weight: 600;
	color: var(--ef-navy);
	letter-spacing: -0.02em;
}

/* ── Flash / error ── */
#infoMessage {
	color: #dc2626;
	font-size: 13px;
	padding: 8px 24px 4px;
	line-height: 1.5;
}

/* ── Inputs ── */
.input-wrapper {
	width: calc(100% - 48px);
	max-width: 380px;
	margin: 0 auto 16px;
	height: 50px;
	background: transparent;
	border-radius: 10px;
	padding: 0;
	position: relative;
	box-sizing: border-box;
}
.input-wrapper input {
	width: 100%;
	height: 100%;
	padding: 0 16px;
	border: 1px solid #d1d9e0;
	border-radius: 10px;
	background: #f8fafc;
	box-sizing: border-box;
	font-size: 14px;
	font-family: inherit;
	color: var(--ef-text);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.input-wrapper input:focus {
	outline: none;
	border-color: var(--ef-blue);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(26, 95, 158, 0.12);
}
.input-wrapper input::placeholder {
	font-size: 13px;
	color: #94a3b8;
}
.input-wrapper .forgot {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 12px;
	text-decoration: none;
	color: var(--ef-blue);
	font-weight: 500;
	white-space: nowrap;
}
.input-wrapper .forgot:hover {
	text-decoration: underline;
}

/* ── Submit ── */
.submit-wrapper {
	background: transparent;
	margin: 24px 0 16px;
}
.submit-wrapper .submit {
	background: linear-gradient(135deg, var(--ef-orange) 0%, #e86a42 100%);
	border: none;
	min-width: 180px;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	height: 48px;
	padding: 0 36px;
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(243, 131, 91, 0.45);
	cursor: pointer;
	font-family: inherit;
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.submit-wrapper .submit:hover {
	filter: brightness(1.05);
	box-shadow: 0 6px 20px rgba(243, 131, 91, 0.55);
	transform: translateY(-1px);
}
.submit-wrapper .submit:active {
	transform: translateY(0);
}

/* ── Remember me ── */
.input-wrapper-bottom {
	width: calc(100% - 48px);
	max-width: 380px;
	margin: 0 auto;
	text-align: left;
}
.input-wrapper-bottom p {
	margin: 0;
	font-size: 13px;
	color: var(--ef-muted);
}
.input-wrapper-bottom input[type="checkbox"] {
	accent-color: var(--ef-blue);
	margin-right: 6px;
}

/* ── Forgot-password description ── */
.login-form-inner p {
	font-size: 13px;
	color: var(--ef-muted);
	margin: 0 auto 20px;
	width: calc(100% - 48px);
	max-width: 380px;
	text-align: left;
	line-height: 1.6;
}

/* ── Back link ── */
.auth-back-link {
	padding: 12px 0 4px;
	text-align: center;
}
.auth-back-link a {
	font-size: 13px;
	color: var(--ef-blue);
	font-weight: 500;
	text-decoration: none;
}
.auth-back-link a:hover {
	text-decoration: underline;
}

/* ═══════════════════════════════
   TABLET  (≤ 600px)
   ═══════════════════════════════ */
@media (max-width: 600px) {
	.create-account {
		position: static;
		text-align: center;
		padding: 16px 16px 0;
	}
	.create-account a::after { display: none; }

	.login-logo { margin: 24px auto 20px; }
	.login-logo img { max-height: 60px; max-width: min(260px, 92vw); }

	.login-form-inner h4 {
		font-size: 20px;
		padding: 28px 20px 6px;
	}

	.input-wrapper {
		width: calc(100% - 40px);
		height: 48px;
	}

	.input-wrapper .forgot {
		font-size: 11px;
		right: 10px;
	}

	.submit-wrapper .submit {
		font-size: 14px;
		height: 46px;
		min-width: 160px;
	}
}

/* ═══════════════════════════════
   MOBILE  (≤ 400px)
   ═══════════════════════════════ */
@media (max-width: 400px) {
	.login-form-inner {
		border-radius: 12px;
	}

	.login-form-inner h4 {
		font-size: 18px;
		padding: 24px 16px 4px;
	}

	.input-wrapper {
		width: calc(100% - 32px);
		height: 46px;
	}

	.input-wrapper input[type="password"] {
		padding-right: 88px;
	}

	.submit-wrapper .submit {
		width: calc(100% - 32px);
		min-width: 0;
		padding: 0;
	}

	.input-wrapper-bottom { width: calc(100% - 32px); }
}
