:root {
	--wz-bg: #0a0a12;
	--wz-bg-soft: #12121c;
	--wz-card: rgba(22, 22, 36, 0.72);
	--wz-border: rgba(255, 255, 255, 0.08);
	--wz-text: #f4f4f8;
	--wz-muted: #9aa0b4;
	--wz-cyan: #22d3ee;
	--wz-magenta: #ff2d95;
	--wz-purple: #a855f7;
	--wz-gradient: linear-gradient(90deg, #ff2d95 0%, #a855f7 50%, #3b82f6 100%);
	--wz-radius: 16px;
	--wz-font: "Outfit", system-ui, sans-serif;
}

[data-theme="light"] {
	--wz-bg: #f3f4f8;
	--wz-bg-soft: #ffffff;
	--wz-card: rgba(255, 255, 255, 0.88);
	--wz-border: rgba(15, 15, 30, 0.08);
	--wz-text: #161622;
	--wz-muted: #5c6478;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	min-height: 100%;
	font-family: var(--wz-font);
	color: var(--wz-text);
	background: var(--wz-bg);
}

.wz-login {
	position: relative;
	min-height: 100vh;
	overflow-x: hidden;
}

.wz-login-bg {
	position: fixed;
	inset: 0;
	background:
		radial-gradient(ellipse 80% 60% at 15% 20%, rgba(168, 85, 247, 0.35), transparent 55%),
		radial-gradient(ellipse 60% 50% at 80% 80%, rgba(255, 45, 149, 0.2), transparent 50%),
		radial-gradient(ellipse 50% 40% at 60% 10%, rgba(34, 211, 238, 0.12), transparent 45%),
		url("../images/login/bg.jpg") center/cover no-repeat;
	filter: blur(0);
	z-index: 0;
}

.wz-login-overlay {
	position: fixed;
	inset: 0;
	background: linear-gradient(135deg, rgba(8, 8, 16, 0.92) 0%, rgba(12, 10, 24, 0.85) 45%, rgba(10, 12, 28, 0.9) 100%);
	z-index: 1;
}

[data-theme="light"] .wz-login-overlay {
	background: linear-gradient(135deg, rgba(243, 244, 248, 0.88) 0%, rgba(255, 255, 255, 0.75) 100%);
}

.wz-login-topbar {
	position: relative;
	z-index: 10;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 12px;
	padding: 20px 28px;
}

.wz-lang-btn {
	background: rgba(255,255,255,0.06);
	border: 1px solid var(--wz-border);
	color: var(--wz-text);
	border-radius: 999px;
	padding: 8px 14px;
	font: 500 13px/1 var(--wz-font);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.wz-theme-toggle {
	position: relative;
	width: 64px;
	height: 32px;
	border-radius: 999px;
	border: 1px solid var(--wz-border);
	background: rgba(255,255,255,0.06);
	cursor: pointer;
	padding: 0;
}

.wz-theme-icons {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 10px;
	height: 100%;
	color: var(--wz-muted);
	font-size: 12px;
}

.wz-theme-thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--wz-gradient);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 11px;
	transition: transform 0.25s ease;
}

[data-theme="light"] .wz-theme-thumb {
	transform: translateX(32px);
}

.wz-login-main {
	position: relative;
	z-index: 5;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 40px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 12px 28px 48px;
	align-items: center;
	min-height: calc(100vh - 80px);
}

.wz-brand-logo {
	display: flex;
	align-items: flex-start;
	margin-bottom: 28px;
	animation: wzFadeUp 0.7s ease both;
}

.wz-brand-logo-img {
	display: block;
	width: min(280px, 70vw);
	height: auto;
	max-height: 72px;
	object-fit: contain;
	object-position: left center;
}

.wz-brand-slogan {
	color: var(--wz-cyan);
	font-weight: 600;
	letter-spacing: 0.12em;
	font-size: 0.85rem;
	margin: 0 0 14px;
	animation: wzFadeUp 0.7s ease 0.1s both;
}

.wz-brand-text {
	color: var(--wz-muted);
	font-size: 1rem;
	line-height: 1.55;
	max-width: 460px;
	margin: 0 0 28px;
	animation: wzFadeUp 0.7s ease 0.15s both;
}

.wz-feature-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 24px;
	animation: wzFadeUp 0.7s ease 0.2s both;
}

.wz-feature-card {
	background: rgba(255,255,255,0.04);
	border: 1px solid var(--wz-border);
	border-radius: var(--wz-radius);
	padding: 18px 16px;
	backdrop-filter: blur(12px);
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.wz-feature-card:hover {
	border-color: rgba(168, 85, 247, 0.45);
	transform: translateY(-2px);
}

.wz-feature-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 45, 149, 0.12);
	color: var(--wz-magenta);
	margin-bottom: 10px;
	box-shadow: 0 0 18px rgba(255, 45, 149, 0.15);
}

.wz-feature-card:nth-child(2) .wz-feature-icon { color: var(--wz-cyan); background: rgba(34, 211, 238, 0.12); box-shadow: 0 0 18px rgba(34, 211, 238, 0.15); }
.wz-feature-card:nth-child(3) .wz-feature-icon { color: var(--wz-purple); background: rgba(168, 85, 247, 0.12); }
.wz-feature-card:nth-child(4) .wz-feature-icon { color: #fbbf24; background: rgba(251, 191, 36, 0.12); }

.wz-feature-card h3 {
	margin: 0 0 6px;
	font-size: 0.95rem;
	font-weight: 600;
}

.wz-feature-card p {
	margin: 0;
	font-size: 0.8rem;
	color: var(--wz-muted);
	line-height: 1.4;
}

.wz-trust-badge {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid var(--wz-border);
	background: rgba(255,255,255,0.03);
	color: var(--wz-muted);
	font-size: 0.82rem;
	animation: wzFadeUp 0.7s ease 0.28s both;
}

.wz-trust-badge i {
	color: #34d399;
	font-size: 1.1rem;
}

.wz-login-card {
	background: var(--wz-card);
	border: 1px solid var(--wz-border);
	border-radius: 24px;
	padding: 36px 32px;
	backdrop-filter: blur(20px);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
	animation: wzFadeIn 0.8s ease 0.15s both;
}

.wz-login-title {
	margin: 0 0 8px;
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.wz-login-subtitle {
	margin: 0 0 28px;
	color: var(--wz-muted);
	font-size: 0.95rem;
}

.wz-label {
	display: block;
	font-size: 0.85rem;
	font-weight: 500;
	margin-bottom: 8px;
}

.wz-input-wrap {
	position: relative;
	margin-bottom: 18px;
}

.wz-input-wrap > i {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--wz-muted);
	font-size: 0.9rem;
}

.wz-input-wrap input {
	width: 100%;
	height: 48px;
	padding: 0 44px 0 42px;
	border-radius: 12px;
	border: 1px solid var(--wz-border);
	background: rgba(0,0,0,0.25);
	color: var(--wz-text);
	font: 400 0.95rem/1 var(--wz-font);
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="light"] .wz-input-wrap input {
	background: rgba(255,255,255,0.9);
}

.wz-input-wrap input:focus {
	border-color: rgba(168, 85, 247, 0.7);
	box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.18);
}

.wz-toggle-pass {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: 0;
	color: var(--wz-muted);
	cursor: pointer;
	padding: 8px;
}

.wz-form-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 4px 0 22px;
	font-size: 0.85rem;
}

.wz-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--wz-muted);
	cursor: pointer;
}

.wz-forgot {
	color: var(--wz-cyan);
	text-decoration: none;
	font-weight: 500;
}

.wz-forgot:hover { text-decoration: underline; }

.wz-btn-primary {
	width: 100%;
	height: 50px;
	border: 0;
	border-radius: 12px;
	background: var(--wz-gradient);
	color: #fff;
	font: 600 1rem/1 var(--wz-font);
	cursor: pointer;
	box-shadow: 0 10px 30px rgba(255, 45, 149, 0.28);
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.wz-btn-primary:hover {
	transform: translateY(-1px);
	filter: brightness(1.05);
	box-shadow: 0 14px 36px rgba(168, 85, 247, 0.35);
}

.wz-btn-loading {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	opacity: 0.85;
	cursor: wait;
}

.wz-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255,255,255,0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: wzSpin 0.7s linear infinite;
}

.wz-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 24px 0 18px;
	color: var(--wz-muted);
	font-size: 0.8rem;
}

.wz-divider::before,
.wz-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--wz-border);
}

.wz-social-btns {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.wz-social-btn {
	height: 44px;
	border-radius: 12px;
	border: 1px solid var(--wz-border);
	background: rgba(255,255,255,0.04);
	color: var(--wz-text);
	font: 500 0.82rem/1 var(--wz-font);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: not-allowed;
	opacity: 0.55;
}

.wz-login-footer {
	text-align: center;
	margin: 24px 0 0;
	color: var(--wz-muted);
	font-size: 0.9rem;
}

.wz-login-footer a {
	color: var(--wz-magenta);
	font-weight: 600;
	text-decoration: none;
}

.wz-link-disabled {
	opacity: 0.7;
	cursor: default;
	pointer-events: none;
}

@keyframes wzFadeUp {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes wzFadeIn {
	from { opacity: 0; transform: translateY(8px) scale(0.98); }
	to { opacity: 1; transform: none; }
}

@keyframes wzSpin {
	to { transform: rotate(360deg); }
}

@media (max-width: 960px) {
	.wz-login-main {
		grid-template-columns: 1fr;
		padding: 8px 20px 40px;
		gap: 28px;
	}

	.wz-login-brand {
		order: 1;
	}

	.wz-login-form-wrap {
		order: 0;
	}

	.wz-brand-text { max-width: none; }
}

@media (max-width: 560px) {
	.wz-feature-grid { grid-template-columns: 1fr; }
	.wz-social-btns { grid-template-columns: 1fr; }
	.wz-login-card { padding: 28px 20px; }
	.wz-login-title { font-size: 1.45rem; }
	.wz-form-options { flex-direction: column; align-items: flex-start; gap: 10px; }
}
