/* Shared admin UI styles
 * Scope everything under .app-shell/.app-surface to avoid colliding with other pages.
 * Colors can be overridden by redefining the CSS variables at runtime (e.g., inline style on :root).
 */

:root {
	--primary: #3e97dd;
	--primary-dark: #0c379e;
	--primary-brand: var(--primary);
	--brand-color: var(--primary);
	--brand-color-dark: var(--primary-dark);
	--brand-color-light: rgba(57, 147, 217, 0.12);
	--ink: #0f172a;
	--slate: #5d5f71;
	--shell: #f4f6fb;
	--card: #ffffff;
	--border: #e6e8f1;
	--success-soft: #e6f8f0;
	--warning-soft: #fff7e6;
	--surface: #0f172a;
	--muted: #6b7280;
}

/* Canvas */
body.app-theme {
	background:
		radial-gradient(circle at 12% 10%, rgba(57, 147, 217, 0.18), transparent 28%),
		radial-gradient(circle at 85% 8%, rgba(16, 185, 129, 0.12), transparent 30%),
		linear-gradient(135deg, #f9fbff 0%, #eef2ff 40%, #e8f1ff 100%);
	font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	position: relative;
}

body.app-theme::before {
	content: "";
	position: fixed;
	inset: 0;
	background:
		radial-gradient(circle at 20% 20%, rgba(57, 147, 217, 0.14), transparent 45%),
		radial-gradient(circle at 80% 0%, rgba(36, 105, 168, 0.18), transparent 40%),
		repeating-linear-gradient(135deg, rgba(57, 147, 217, 0.05) 0 18px, transparent 18px 36px);
	opacity: 0.75;
	pointer-events: none;
}

body.app-theme::after {
	content: "";
	position: fixed;
	inset: 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.82) 60%, rgba(255, 255, 255, 0.75) 100%);
	pointer-events: none;
}

.app-shell {
	min-height: 100vh;
	padding: clamp(1rem, 3vw, 2rem);
	position: relative;
	z-index: 1;
}

.sidebar-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.38);
	backdrop-filter: blur(2px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.18s ease;
	z-index: 40;
}

body[data-sidebar-open="1"] .sidebar-overlay {
	opacity: 1;
	pointer-events: auto;
}

.app-topbar {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 0.9rem;
	padding: 0.95rem 1.1rem;
	border-bottom: 1px solid rgba(230, 232, 241, 0.9);
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(14px);
	position: sticky;
	top: 0;
	z-index: 45; /* keep toggle usable even when sidebar overlay is active */
}

.icon-btn {
	width: 42px;
	height: 42px;
	border-radius: 14px;
	border: 1px solid rgba(57, 147, 217, 0.18);
	background: rgba(57, 147, 217, 0.10);
	color: var(--primary-dark);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.icon-btn:focus {
	outline: none;
	box-shadow: 0 0 0 0.2rem rgba(57, 147, 217, 0.22);
}

.icon-btn svg {
	width: 20px;
	height: 20px;
}

.topbar-title {
	flex: 1 1 auto;
	min-width: 0;
}

.topbar-kicker {
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--slate);
	font-weight: 800;
}

.topbar-page {
	font-size: 1.05rem;
	font-weight: 750;
	letter-spacing: -0.01em;
	color: var(--ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.avatar-xs {
	width: 38px;
	height: 38px;
	font-size: 0.95rem;
}

.app-surface {
	background: var(--card);
	border-radius: 28px;
	box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
	border: 1px solid rgba(57, 147, 217, 0.12);
	max-width: 960px;
	margin: 0 auto;
	overflow: hidden;
}

/* Brand helpers */
.btn-primary,
.bg-primary {
	background-color: var(--brand-color) !important;
	border-color: var(--brand-color) !important;
}

.btn-primary:hover,
.bg-primary:hover {
	background-color: var(--brand-color-dark) !important;
	border-color: var(--brand-color-dark) !important;
}

.text-primary,
a {
	color: var(--brand-color);
}

/* Header + hero */
.app-surface .page-header {
	padding: 1.75rem 1.75rem 0.5rem;
}

.app-surface .page-header h1 {
	margin: 0 0 0.3rem;
	font-size: 1.9rem;
	letter-spacing: -0.01em;
}

.app-surface .page-header p {
	color: var(--slate);
	margin: 0;
}

.app-surface .chip-row {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.app-surface .chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.75rem;
	border-radius: 999px;
	background: rgba(57, 147, 217, 0.12);
	color: var(--primary-dark);
	font-weight: 600;
	font-size: 0.9rem;
}

/* Panels / cards */
.form-panel {
	padding: 1.75rem;
	border-top: 1px solid var(--border);
	background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.section-subtitle {
	color: var(--slate);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.8rem;
}

.app-surface .badge-soft {
	border-radius: 999px;
	padding: 0.35rem 0.95rem;
	min-width: 72px;
	text-align: center;
	font-size: 0.78rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	justify-content: center;
	border: 0;
	line-height: 1.1;
	box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15);
}

.badge-role-admin {
	background: linear-gradient(135deg, var(--primary-dark), var(--primary));
	color: #fff;
	border-radius: 24px;
	padding: 2px 6px 2px 8px;
}

.badge-role-user {
	background: #0f172a;
	color: #fff;
	border-radius: 24px;
	padding: 2px 6px 2px 8px;
}

.badge-status {
	text-transform: uppercase;
	letter-spacing: 0.07em;
}

.status-active {
	background: #1b9d60;
	color: #fff;
	border-radius: 24px;
	padding: 2px 6px 2px 8px;
}

.status-disabled {
	background: #f59e0b;
	color: #1f2937;
}

.avatar {
	border-radius: 50%;
	overflow: hidden;
	background: linear-gradient(135deg, rgba(57, 147, 217, 0.18), rgba(16, 185, 129, 0.14));
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #0f172a;
	font-weight: 700;
	text-transform: uppercase;
	box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.avatar-sm {
	width: 50px;
	height: 50px;
}

.avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.avatar-fallback {
	background: #0f172a;
	color: #fff;
}

/* Form controls */
.app-surface .form-label {
	font-weight: 600;
	color: var(--ink);
}

.app-surface .form-control,
.app-surface .form-select {
	border-radius: 12px;
	border-color: #e2e8f0;
	padding: 0.8rem 0.95rem;
}

.app-surface .form-control:focus,
.app-surface .form-select:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 0.2rem rgba(57, 147, 217, 0.2);
}

.app-surface .btn-ghost {
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 0.45rem 1.4rem;
	text-decoration: none;
	font-weight: 600;
	color: var(--ink);
	background: #fff;
}

.app-surface .btn-ghost:focus {
	box-shadow: 0 0 0 0.2rem rgba(57, 147, 217, 0.22);
	outline: none;
}

/* Layout */
.app-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 1.5rem;
}

.app-sidebar {
	background: var(--card);
	border-radius: 28px;
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
	padding: 2rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(57, 147, 217, 0.12);
}

.app-sidebar::after {
	content: "";
	position: absolute;
	inset: 40% -30% -20% -30%;
	background: linear-gradient(120deg, rgba(57, 147, 217, 0.12), rgba(255, 255, 255, 0));
	filter: blur(20px);
	pointer-events: none;
}

.sidebar-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--ink);
}

.sidebar-brand span {
	width: 46px;
	height: 46px;
	border-radius: 16px;
	background: rgba(57, 147, 217, 0.14);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	color: var(--primary);
}

.sidebar-nav {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	z-index: 1;
}

.sidebar-nav a {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.8rem 1rem;
	border-radius: 18px;
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
	border: 1px solid transparent;
}

.sidebar-nav a svg {
	width: 18px;
	height: 18px;
	color: var(--slate);
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
	background: rgba(57, 147, 217, 0.12);
	border-color: rgba(57, 147, 217, 0.2);
	color: var(--primary-dark);
}

.sidebar-card {
	margin-top: auto;
	background: linear-gradient(135deg, rgba(57, 147, 217, 0.12), rgba(37, 114, 176, 0.16));
	border-radius: 20px;
	padding: 1.2rem;
	z-index: 1;
	border: 1px solid rgba(57, 147, 217, 0.14);
}

.sidebar-card small {
	color: var(--slate);
}

.app-main {
	background: var(--card);
	border-radius: 32px;
	box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(57, 147, 217, 0.12);
}

.app-header {
	padding: 1.75rem 2rem 0;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.header-info h1 {
	font-size: 2rem;
	margin-bottom: 0.2rem;
	letter-spacing: -0.01em;
}

.header-info p {
	color: var(--slate);
	margin: 0;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.header-pill {
	border-radius: 999px;
	padding: 0.6rem 1.4rem;
	background: rgba(57, 147, 217, 0.12);
	font-weight: 600;
	color: var(--primary-dark);
}

.app-content {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

/* KPIs */
.kpi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1rem;
}

.kpi-card {
	border: 1px solid var(--border);
	border-radius: 24px;
	padding: 1.2rem;
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.kpi-card.highlight {
	background: linear-gradient(135deg, rgba(57, 147, 217, 0.12), rgba(16, 185, 129, 0.15));
	border-color: transparent;
}

.kpi-icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(57, 147, 217, 0.12);
	color: var(--primary-dark);
	margin-bottom: 0.5rem;
}

.kpi-card h3 {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--slate);
	margin-bottom: 0.35rem;
}

.kpi-value {
	font-size: 1.9rem;
	font-weight: 700;
}

.kpi-trend {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--primary-dark);
}

/* Tables */
.board-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.card {
	border-radius: 26px;
	border: 1px solid var(--border);
	background: #fff;
}


.card-header h2 {
	font-size: 1.15rem;
	font-weight: 700;
	margin-bottom: 0.2rem;
}

.card-header p {
	color: var(--slate);
	margin-bottom: 1rem;
}

.card-body {
	padding: 1.75rem 1.75rem 1.75rem;
}

.table-scroll {
	overflow-x: auto;
}

.member-cards {
	display: grid;
	gap: 1rem;
}

.member-ident {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.member-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: flex-end;
}

.member-card {
	border: 1px solid rgba(230, 232, 241, 0.9);
	border-radius: 22px;
	background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
	box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
	overflow: hidden;
}

.member-card-top {
	padding: 1rem 1rem 0.85rem;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
}

.min-w-0 {
	min-width: 0 !important;
}

.member-card-actions {
	padding: 0 1rem 1rem;
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.member-card-edit {
	margin: 0 1rem 1rem;
	padding: 1rem;
	border-radius: 18px;
	border: 1px solid rgba(230, 232, 241, 0.9);
	background: rgba(244, 246, 251, 0.8);
}

.members-pager {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1rem;
	flex-wrap: wrap;
}

.members-toolbar {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	margin-bottom: 0.85rem;
}

.members-search {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: nowrap;
	width: auto;
	max-width: 100%;
}

.members-search-inline {
	position: relative;
	width: min(320px, 100%);
	min-width: 210px;
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid #d6dbe4;
	border-radius: 8px;
	padding: 0;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.members-search-inline:focus-within {
	border-color: var(--primary);
	box-shadow: 0 0 0 0.15rem rgba(57, 147, 217, 0.12);
}

.members-search-inline svg {
	position: absolute;
	left: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	width: 14px;
	height: 14px;
	stroke: #6b7280;
	fill: none;
	stroke-width: 2;
	pointer-events: none;
}

.members-search-input {
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	padding: 0.58rem 0.72rem 0.58rem 2.2rem !important;
	min-height: 38px;
	font-size: 0.9rem;
}

.members-clear-link {
	display: inline-flex;
	align-items: center;
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--muted);
	text-decoration: none;
	padding: 0.2rem 0.1rem;
}

.members-clear-link:hover {
	color: var(--primary-dark);
	text-decoration: underline;
}

[data-members-list].is-loading {
	opacity: 0.65;
	pointer-events: none;
}

.input-hint {
	margin-top: 0.35rem;
	font-size: 0.85rem;
	color: var(--muted);
}

.table-modern {
	width: 100%;
	min-width: 680px;
	border-collapse: separate;
	border-spacing: 0;
}

.table-modern thead th {
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	color: var(--slate);
	padding: 0.8rem 0.5rem;
	border-bottom: 1px solid rgba(230, 232, 241, 0.8);
}

.table-modern tbody td {
	padding: 1rem 0.5rem;
	border-bottom: 1px solid rgba(230, 232, 241, 0.6);
	vertical-align: middle;
}

.badge-admin {
	background: rgba(57, 147, 217, 0.18);
	color: var(--primary-dark);
}

.badge-user {
	background: rgba(93, 95, 113, 0.12);
	color: #1f2937;
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
	.app-layout {
		grid-template-columns: 220px 1fr;
	}

	.form-panel {
		padding: 1.5rem;
	}
}

@media (max-width: 767.98px) {
	body[data-sidebar-open="1"] {
		overflow: hidden;
	}

	.app-layout {
		grid-template-columns: 1fr;
	}

	.app-topbar {
		display: flex;
	}

	.header-info h1 {
		font-size: 1.65rem;
	}

	.header-info p {
		font-size: 0.95rem;
	}

	.header-actions {
		flex-direction: row;
		gap: 0.6rem;
	}

	.header-pill {
		padding: 0.5rem 1rem;
		font-size: 0.92rem;
	}

	.kpi-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.kpi-card {
		padding: 1rem;
		border-radius: 20px;
	}

	.kpi-value {
		font-size: 1.65rem;
	}

	.kpi-icon {
		width: 36px;
		height: 36px;
		border-radius: 12px;
	}

	.app-sidebar {
		position: fixed;
		top: 0.85rem;
		left: 0.85rem;
		bottom: 0.85rem;
		width: min(320px, calc(100vw - 1.7rem));
		transform: translateX(calc(-100% - 1.2rem));
		transition: transform 0.22s ease;
		z-index: 50;
	}

	body[data-sidebar-open="1"] .app-sidebar {
		transform: translateX(0);
	}

	.sidebar-nav a {
		padding: 0.85rem 0.95rem;
	}

	.app-header {
		flex-direction: column;
		align-items: flex-start;
		padding: 1.25rem 1.25rem 0;
	}

	.header-actions {
		flex-direction: column;
		align-items: flex-start;
	}

	.app-content {
		padding: 1.5rem;
	}

	.card-header {
		padding: 1.25rem 1.25rem 0;
	}

	.card-body {
		padding: 1.25rem 1.25rem 1.25rem;
	}

	.member-card-top {
		flex-direction: column;
		align-items: stretch;
	}

	.member-meta {
		justify-content: flex-start;
	}

	.badge-soft {
		min-width: 0;
		white-space: nowrap;
		font-size: 0.74rem;
		padding: 0.32rem 0.7rem;
		box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
	}

	.member-card-actions .btn {
		flex: 1 1 0;
	}

	.members-search {
		width: 100%;
		flex-wrap: wrap;
	}

	.members-search-inline {
		flex: 1 1 100%;
		width: 100%;
		min-width: 0;
	}

	.members-clear-link {
		padding-inline: 0;
	}

	.form-panel {
		padding: 1.25rem;
		border-top: none;
	}

	.table-modern {
		min-width: 520px;
	}
}

/* Auth page */
body.auth-theme {
	min-height: 100vh;
	background: radial-gradient(circle at 10% 20%, rgba(57, 147, 217, 0.15), transparent 26%),
		radial-gradient(circle at 90% 0%, rgba(36, 105, 168, 0.16), transparent 30%),
		linear-gradient(135deg, #f9fbff 0%, #eef2ff 35%, #dee7ff 100%);
	font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	color: var(--surface);
	position: relative;
	overflow-x: hidden;
}

body.auth-theme::before,
body.auth-theme::after {
	content: "";
	position: fixed;
	filter: blur(80px);
	opacity: 0.35;
	z-index: 0;
}

body.auth-theme::before {
	inset: -10% 50% 40% -10%;
	background: radial-gradient(circle at 40% 40%, rgba(57, 147, 217, 0.32), transparent 40%),
		radial-gradient(circle at 70% 60%, rgba(12, 74, 110, 0.28), transparent 55%);
}

body.auth-theme::after {
	inset: 30% -20% -20% 40%;
	background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.15), transparent 40%),
		radial-gradient(circle at 0% 20%, rgba(57, 147, 217, 0.3), transparent 45%);
}

.auth-shell {
	min-height: calc(100vh - 80px);
	display: flex;
	align-items: center;
	padding: clamp(1.5rem, 3vw, 3rem) 0;
	position: relative;
	z-index: 1;
}

.auth-surface {
	border-radius: 24px;
	backdrop-filter: blur(14px);
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 30px 90px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(57, 147, 217, 0.12);
	border: 1px solid rgba(57, 147, 217, 0.12);
	overflow: hidden;
	position: relative;
}

.auth-surface::after {
	content: "";
	position: absolute;
	inset: 8px;
	border-radius: 20px;
	border: 1px solid rgba(57, 147, 217, 0.08);
	pointer-events: none;
}

.visual-pane {
	position: relative;
	background: linear-gradient(135deg, #0f172a 0%, #0b1b33 50%, #0f172a 100%);
	color: #e5e7eb;
	padding: clamp(2rem, 3vw, 3rem);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.visual-pane::before {
	content: "";
	position: absolute;
	inset: -20% -30% 10% 0;
	background:
		radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 40%),
		radial-gradient(circle at 80% 30%, rgba(57, 147, 217, 0.5), transparent 35%),
		radial-gradient(circle at 40% 70%, rgba(57, 147, 217, 0.35), transparent 45%);
	filter: blur(18px);
	opacity: 0.8;
}

.visual-pane::after {
	content: "";
	position: absolute;
	inset: 5%;
	border-radius: 24px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 50%);
}

.visual-content {
	position: relative;
	z-index: 1;
	text-align: left;
	width: 100%;
	max-width: 420px;
}

.brand-mark {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.08);
	margin-bottom: 1.25rem;
	color: #e5e7eb;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.brand-mark img {
	height: auto;
	width: 100%;
}

.hero-title {
	font-size: clamp(1.8rem, 2.3vw, 2.4rem);
	font-weight: 700;
	margin-bottom: 0.6rem;
	letter-spacing: -0.01em;
}

.hero-subtitle {
	color: #cbd5e1;
	max-width: 28rem;
	margin-bottom: 1.4rem;
}

.glow-dots {
	display: flex;
	gap: 0.35rem;
}

.glow-dots span {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.65);
	box-shadow: 0 0 18px rgba(255, 255, 255, 0.75);
}

.stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 0.75rem;
}

.stat-card {
	background: rgba(255, 255, 255, 0.06);
	border-radius: 14px;
	padding: 0.8rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: #e5e7eb;
	position: relative;
	overflow: hidden;
}

.stat-card h4 {
	font-size: 0.9rem;
	margin: 0;
	color: rgba(229, 231, 235, 0.8);
}

.stat-card strong {
	font-size: 1.4rem;
}

.form-pane {
	padding: clamp(1.5rem, 3vw, 3rem);
	color: var(--surface);
	position: relative;
}

.form-header {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.form-title {
	font-size: 1.5rem;
	margin: 0;
	font-weight: 700;
}

.form-sub {
	color: var(--muted);
	margin: 0;
}

.alert-soft {
	background: rgba(57, 147, 217, 0.08);
	border: 1px solid rgba(57, 147, 217, 0.12);
	border-radius: 12px;
	color: var(--surface);
	padding: 0.75rem 1rem;
}

.form-card {
	background: #fff;
	border-radius: 16px;
	padding: 1.25rem;
	border: 1px solid rgba(57, 147, 217, 0.12);
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
	position: relative;
	z-index: 1;
}

.form-label {
	font-weight: 600;
	color: var(--surface);
}

.form-control {
	border-radius: 12px;
	border-color: #e2e8f0;
}

.form-control:focus {
	border-color: var(--primary-brand);
	box-shadow: 0 0 0 0.2rem rgba(57, 147, 217, 0.2);
}

.notice-editor-wrap {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.notice-editor-wrap:focus-within {
	border-color: var(--primary-brand);
	box-shadow: 0 0 0 0.2rem rgba(57, 147, 217, 0.2);
}

.notice-editor-wrap .ql-toolbar.ql-snow {
	border: 0;
	border-bottom: 1px solid #edf2f7;
	background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
	padding: 0.5rem 0.65rem;
}

.notice-editor-wrap .ql-container.ql-snow {
	border: 0;
}

.notice-editor-wrap .ql-editor {
	min-height: 250px;
	padding: 0.9rem 1rem;
	font-size: 0.95rem;
	line-height: 1.65;
	color: #0f172a;
}

.notice-editor-wrap .ql-editor.ql-blank::before {
	left: 1rem;
	right: 1rem;
	font-style: normal;
	color: #94a3b8;
}

.notice-editor-wrap .ql-picker-label,
.notice-editor-wrap .ql-stroke {
	color: #334155;
	stroke: #334155;
}

.password-field {
	position: relative;
}

.password-field .form-control {
	padding-right: 3rem;
}

.password-toggle-btn {
	position: absolute;
	top: 50%;
	right: 0.85rem;
	transform: translateY(-50%);
	border: none;
	background: transparent;
	color: var(--primary-brand);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	width: 2.25rem;
	height: 2.25rem;
}

.password-toggle-btn svg {
	width: 1.35rem;
	height: 1.35rem;
	fill: currentColor;
	pointer-events: none;
}

.btn-brand {
	background: linear-gradient(120deg, var(--primary-brand), var(--primary-dark));
	border: none;
	color: #fff;
	border-radius: 14px;
	padding: 0.9rem 1.1rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	box-shadow: 0 15px 35px rgba(57, 147, 217, 0.35);
	transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-brand:hover {
	transform: translateY(-1px);
	box-shadow: 0 18px 40px rgba(57, 147, 217, 0.45);
}

.helper-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 1rem;
	color: var(--muted);
	font-size: 0.95rem;
}

.helper-row a {
	color: var(--primary-dark);
	text-decoration: none;
	font-weight: 700;
	border-bottom: 1px solid transparent;
}

.helper-row a:hover {
	border-color: currentColor;
}

@media (max-width: 991.98px) {
	.auth-shell {
		padding: 1rem 0;
	}
}

@media (max-width: 767.98px) {
	body.auth-theme {
		padding: 0 0.75rem;
	}

	.visual-pane {
		min-height: 320px;
	}

	.helper-row {
		flex-direction: column;
		gap: 0.4rem;
		align-items: flex-start;
	}
}
