/* ===== CSL Auth / Login ===== */

:root {
	--csl-auth-bg-image: none;

	--csl-auth-text: #f3f7ff;
	--csl-auth-text-soft: rgba(219, 228, 245, 0.72);
	--csl-auth-label: rgba(214, 223, 238, 0.78);

	--csl-auth-card-bg: rgba(63, 71, 85, 0.88);
	--csl-auth-card-border: rgba(255, 255, 255, 0.08);
	--csl-auth-card-shadow:
		0 24px 80px rgba(18, 26, 40, 0.28),
		0 10px 26px rgba(18, 26, 40, 0.20);

	--csl-auth-input-bg: rgba(255, 255, 255, 0.04);
	--csl-auth-input-border: rgba(255, 255, 255, 0.12);
	--csl-auth-input-border-focus: rgba(118, 138, 255, 0.58);

	--csl-auth-primary-1: #4c84f7;
	--csl-auth-primary-2: #7e56f3;
	--csl-auth-primary-shadow: 0 16px 28px rgba(92, 105, 255, 0.28);

	--csl-auth-radius-xl: 34px;
	--csl-auth-radius-lg: 20px;
	--csl-auth-radius-md: 16px;
	--csl-auth-radius-sm: 14px;
}

html,
body {
	min-height: 100%;
	background-color: #dbe7ef !important;
	background-image: var(--csl-auth-bg-image) !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	background-size: cover !important;
	color: var(--csl-auth-text);
}

body,
#page,
.site,
.site-content,
.content-area,
.site-main,
main,
article,
.page,
.post,
.entry,
.hentry,
.entry-content,
.entry-content-wrap,
.page-content,
.wp-site-blocks,
.is-layout-constrained,
.is-layout-flow,
.wp-block-post-content {
	background: transparent !important;
}

.content-area,
.site-main,
.entry-content,
.page-content,
.wp-site-blocks,
.is-layout-constrained,
.wp-block-post-content,
article,
.page,
.post,
.entry,
.hentry {
	border: 0 !important;
	box-shadow: none !important;
}

.site-main,
.entry-content,
.page-content,
.wp-block-post-content {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.csl-auth {
	position: relative;
	min-height: 100vh;
	padding: 16px;
	overflow: hidden;
	font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	background: transparent;
}

.csl-auth::before {
	content: "";
	position: absolute;
	inset: 0;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	pointer-events: none;
}

.csl-auth__wrap {
	position: relative;
	z-index: 1;
	max-width: 1400px;
	min-height: calc(100vh - 32px);
	margin: 0 auto;
	padding: 0;
}

.csl-auth__grid {
	display: grid;
	place-items: center;
	min-height: calc(100vh - 32px);
}

.csl-auth__card {
	position: relative;
	width: 100%;
	max-width: 500px;
	min-height: 700px;
	padding: 44px 48px 36px;
	border-radius: var(--csl-auth-radius-xl);
	border: 1px solid var(--csl-auth-card-border);
	background: #00000095;
	box-shadow: var(--csl-auth-card-shadow);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	display: flex;
	flex-direction: column;
}

.csl-auth__card::before {
	content: "";
	position: absolute;
	top: 18px;
	left: 22px;
	right: 22px;
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--csl-auth-primary-1) 0%, var(--csl-auth-primary-2) 100%);
	opacity: 0.95;
}

.csl-auth__card form {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.csl-auth__brand {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	margin-bottom: 28px;
	padding-top: 14px;
}

.csl-auth__logo {
	display: grid;
	place-items: center;
	width: 74px;
	height: 74px;
	border-radius: 22px;
	background: linear-gradient(180deg, var(--csl-auth-primary-1) 0%, var(--csl-auth-primary-2) 100%);
	color: #ffffff;
	font-size: 30px;
	font-weight: 900;
	letter-spacing: -0.03em;
	box-shadow: 0 18px 30px rgba(99, 109, 255, 0.28);
	flex: 0 0 auto;
}

.csl-auth__brand-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	padding-top: 4px;
	min-width: 0;
}

.csl-auth__eyebrow {
	margin: 0;
	color: rgba(231, 238, 249, 0.82);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 1;
}

.csl-auth__title {
	margin: 0;
	color: var(--csl-auth-text);
	font-size: 42px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.04em;
	text-transform: uppercase;
}

.csl-auth__headline {
	margin: 0 0 8px;
	color: var(--csl-auth-text);
	font-size: 31px;
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.035em;
}

.csl-auth__subtitle {
	margin: 0 0 42px;
	color: var(--csl-auth-text-soft);
	font-size: 15px;
	line-height: 1.55;
}

.csl-auth__alert {
	margin: 0 0 18px;
	padding: 14px 16px;
	border-radius: 14px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	border: 1px solid transparent;
}

.csl-auth__alert--error {
	color: #ffd0d6;
	background: rgba(139, 38, 54, 0.26);
	border-color: rgba(255, 129, 152, 0.25);
}

.csl-auth__field {
	margin-bottom: 26px;
}

.csl-auth__field label {
	display: block;
	margin-bottom: 11px;
	color: var(--csl-auth-label);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.csl-auth__field input[type="text"],
.csl-auth__field input[type="password"],
.csl-auth__field input[type="number"] {
	width: 100%;
	height: 64px;
	padding: 0 22px;
	border-radius: 18px;
	border: 1px solid var(--csl-auth-input-border);
	background: var(--csl-auth-input-bg);
	color: var(--csl-auth-text);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
	box-sizing: border-box;
	outline: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
	transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.csl-auth__field input::placeholder {
	color: rgba(235, 240, 248, 0.44);
}

.csl-auth__field input:focus {
	border-color: var(--csl-auth-input-border-focus);
	background: rgba(255, 255, 255, 0.06);
	box-shadow: 0 0 0 4px rgba(103, 122, 255, 0.14);
}

.csl-auth__actions {
	margin-top: auto;
	padding-top: 26px;
}

.csl-auth__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 66px;
	padding: 0 28px;
	border: 0;
	border-radius: 18px;
	background: linear-gradient(90deg, var(--csl-auth-primary-1) 0%, var(--csl-auth-primary-2) 100%);
	color: #ffffff;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
	cursor: pointer;
	box-shadow: var(--csl-auth-primary-shadow);
	transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.csl-auth__btn:hover {
	filter: brightness(1.03);
	box-shadow: 0 18px 32px rgba(92, 105, 255, 0.34);
}

.csl-auth__btn:active {
	transform: translateY(1px);
}

.csl-auth__btn:focus-visible {
	outline: none;
	box-shadow:
		0 0 0 4px rgba(103, 122, 255, 0.14),
		0 18px 32px rgba(92, 105, 255, 0.34);
}

.csl-auth__footer {
	margin-top: 42px;
	color: rgba(220, 228, 241, 0.58);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
}

.csl-auth__field input[type="number"]::-webkit-outer-spin-button,
.csl-auth__field input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.csl-auth__field input[type="number"] {
	appearance: textfield;
	-moz-appearance: textfield;
}

@media (max-width: 767px) {
	.csl-auth {
		padding: 14px;
	}

	.csl-auth__wrap,
	.csl-auth__grid {
		min-height: calc(100vh - 28px);
	}

	.csl-auth__card {
		max-width: 100%;
		min-height: auto;
		padding: 34px 22px 26px;
		border-radius: 26px;
	}

	.csl-auth__card::before {
		top: 14px;
		left: 16px;
		right: 16px;
	}

	.csl-auth__brand {
		margin-bottom: 26px;
		gap: 12px;
	}

	.csl-auth__logo {
		width: 50px;
		height: 50px;
		border-radius: 16px;
		font-size: 19px;
	}

	.csl-auth__headline {
		font-size: 28px;
	}

	.csl-auth__subtitle {
		margin-bottom: 28px;
		font-size: 14px;
	}

	.csl-auth__field {
		margin-bottom: 20px;
	}

	.csl-auth__field input[type="text"],
	.csl-auth__field input[type="password"],
	.csl-auth__field input[type="number"] {
		height: 56px;
		padding: 0 18px;
		font-size: 16px;
		border-radius: 16px;
	}

	.csl-auth__btn {
		min-height: 58px;
		font-size: 18px;
		border-radius: 16px;
	}

	.csl-auth__footer {
		margin-top: 28px;
		font-size: 13px;
	}
}

/* =========================================================
   MOBILE PATCH — AUTH / LOGIN
   Paste at the very end of assets/css/csl-auth.css
   ========================================================= */

@media (max-width: 920px) {
	.csl-auth {
		padding: 12px;
		min-height: 100vh;
		display: flex;
		align-items: center;
	}

	.csl-auth__wrap,
	.csl-auth__grid {
		width: 100%;
		min-height: calc(100vh - 24px);
	}

	.csl-auth__grid {
		place-items: center;
	}

	.csl-auth__card {
		max-width: 560px;
		min-height: auto;
		padding: 32px 24px 24px;
		border-radius: 24px;
	}

	.csl-auth__card::before {
		top: 14px;
		left: 16px;
		right: 16px;
		height: 3px;
	}

	.csl-auth__brand {
		margin-bottom: 24px;
		gap: 12px;
		align-items: center;
	}

	.csl-auth__logo {
		width: 48px;
		height: 48px;
		border-radius: 14px;
		font-size: 18px;
	}

	.csl-auth__eyebrow {
		font-size: 12px;
	}

	.csl-auth__title {
		font-size: 18px;
		line-height: 1.2;
	}

	.csl-auth__headline {
		margin-bottom: 6px;
		font-size: 24px;
		line-height: 1.14;
	}

	.csl-auth__subtitle {
		margin-bottom: 24px;
		font-size: 13px;
		line-height: 1.5;
	}

	.csl-auth__alert {
		margin-bottom: 14px;
		padding: 12px 14px;
		border-radius: 12px;
		font-size: 13px;
	}

	.csl-auth__field {
		margin-bottom: 16px;
	}

	.csl-auth__field label {
		margin-bottom: 7px;
		font-size: 11px;
		letter-spacing: 0.05em;
	}

	.csl-auth__field input[type="text"],
	.csl-auth__field input[type="password"],
	.csl-auth__field input[type="number"] {
		height: 48px;
		padding: 0 14px;
		border-radius: 12px;
		font-size: 15px;
	}

	.csl-auth__actions {
		padding-top: 18px;
	}

	.csl-auth__btn {
		min-height: 50px;
		width: 100%;
		border-radius: 14px;
		font-size: 16px;
	}

	.csl-auth__footer {
		margin-top: 20px;
		font-size: 12px;
		line-height: 1.45;
	}
}

@media (max-width: 640px) {
	.csl-auth {
		padding: 10px;
		align-items: stretch;
	}

	.csl-auth__wrap,
	.csl-auth__grid {
		min-height: calc(100vh - 20px);
	}

	.csl-auth__grid {
		place-items: center;
	}

	.csl-auth__card {
		max-width: 100%;
		padding: 26px 16px 18px;
		border-radius: 20px;
		box-shadow:
			0 16px 44px rgba(18, 26, 40, 0.24),
			0 8px 18px rgba(18, 26, 40, 0.16);
	}

	.csl-auth__card::before {
		top: 12px;
		left: 14px;
		right: 14px;
	}

	.csl-auth__brand {
		margin-bottom: 18px;
		gap: 10px;
	}

	.csl-auth__logo {
		width: 42px;
		height: 42px;
		border-radius: 12px;
		font-size: 16px;
	}

	.csl-auth__headline {
		font-size: 21px;
	}

	.csl-auth__subtitle {
		margin-bottom: 18px;
		font-size: 12px;
	}

	.csl-auth__field {
		margin-bottom: 14px;
	}

	.csl-auth__field input[type="text"],
	.csl-auth__field input[type="password"],
	.csl-auth__field input[type="number"] {
		height: 44px;
		padding: 0 12px;
		font-size: 14px;
		border-radius: 11px;
	}

	.csl-auth__btn {
		min-height: 46px;
		font-size: 15px;
		border-radius: 12px;
		box-shadow: 0 12px 22px rgba(92, 105, 255, 0.24);
	}

	.csl-auth__footer {
		margin-top: 16px;
		font-size: 11px;
	}
}

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

	.csl-auth__wrap,
	.csl-auth__grid {
		min-height: calc(100vh - 16px);
	}

	.csl-auth__card {
		padding: 22px 14px 16px;
		border-radius: 18px;
	}

	.csl-auth__brand {
		margin-bottom: 16px;
	}

	.csl-auth__headline {
		font-size: 19px;
	}

	.csl-auth__title {
		font-size: 16px;
	}

	.csl-auth__field label {
		font-size: 10px;
	}

	.csl-auth__field input[type="text"],
	.csl-auth__field input[type="password"],
	.csl-auth__field input[type="number"] {
		height: 42px;
		font-size: 14px;
	}

	.csl-auth__btn {
		min-height: 44px;
		font-size: 14px;
	}

	.csl-auth__footer {
		font-size: 10px;
	}
}