.apl-login-page {
	--primary: #7c3aed;
	--primary-2: #6d28d9;
	--text-dark: #1e293b;
	--text-muted: #64748b;
	--card-bg: rgba(255, 255, 255, 0.98);
	--card-radius: 28px;
	--card-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
	--field-radius: 12px;
	--field-border: #e2e8f0;
	--bg: #faf5ff;
	--blob-1: #e9d5ff;
	--blob-2: #d8b4fe;
	--blob-3: #c4b5fd;
	--gradient: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: var(--bg);
	overflow: hidden;
	position: relative;
	padding: 0;
	margin: 0;
	font-family: "Vazirmatn", sans-serif;
}

.apl-login-page.apl-theme-admin {
	--primary: #2563eb;
	--primary-2: #1d4ed8;
	--bg: #eff6ff;
	--blob-1: #bfdbfe;
	--blob-2: #93c5fd;
	--blob-3: #60a5fa;
	--gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

* { box-sizing: border-box; }

.bg-blobs {
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: 0;
	filter: blur(100px);
	pointer-events: none;
}

.blob {
	position: absolute;
	border-radius: 50%;
	animation: move 25s infinite alternate ease-in-out;
	opacity: 0.85;
}

.blob-1 { width: 450px; height: 450px; background: var(--blob-1); top: -5%; left: -5%; }
.blob-2 { width: 550px; height: 550px; background: var(--blob-2); bottom: -10%; right: -5%; animation-delay: -5s; }
.blob-3 { width: 320px; height: 320px; background: var(--blob-3); top: 40%; left: 40%; animation-delay: -12s; opacity: 0.55; }

@keyframes move {
	to { transform: translate(80px, 80px) scale(1.05); }
}

.main-wrapper {
	width: 100%;
	max-width: 420px;
	z-index: 10;
	position: relative;
}

.apl-context-banner {
	position: relative;
	z-index: 10;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 16px;
	margin: 0 0 24px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 800;
	color: #fff;
	background: var(--gradient);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.apl-context-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

.login-card {
	background: var(--card-bg);
	border-radius: var(--card-radius);
	box-shadow: var(--card-shadow);
	border: 1px solid rgba(226, 232, 240, 0.8);
	overflow: hidden;
}

.header { padding: 25px 40px 10px; text-align: center; }
.header h2 { font-size: 1.3rem; font-weight: 800; color: var(--text-dark); margin: 0; }

.form-content { padding: 0 40px 20px; }
.field { margin-bottom: 16px; position: relative; }

.field label {
	display: block;
	font-size: 0.75rem;
	font-weight: 800;
	color: var(--text-dark);
	margin-bottom: 5px;
}

.input-item {
	width: 100%;
	padding: 11px 14px;
	min-height: 46px;
	border: 1.5px solid var(--field-border);
	border-radius: var(--field-radius);
	background: #fff;
	color: var(--text-dark);
	font-size: 0.95rem;
	box-shadow: none;
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.input-item:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.input-password { padding-left: 44px; }

.eye-btn {
	position: absolute;
	left: 12px;
	top: 32px;
	cursor: pointer;
	display: flex;
	opacity: 0.9;
	background: transparent;
	border: 0;
	padding: 6px;
	color: var(--text-muted);
	transition: color .2s ease, transform .15s ease;
}

.eye-btn:hover { color: var(--primary); transform: scale(1.05); }
.eye-btn svg { width: 20px; height: 20px; }

.captcha-row { display: flex; gap: 8px; align-items: center; }

.captcha-svg-box {
	flex: 1;
	height: 52px;
	background: #d1d5db;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #94a3b8;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.captcha-input {
	flex: 1;
	text-align: center;
	letter-spacing: 2px;
	text-transform: uppercase;
	font-weight: 700;
	font-size: 0.9rem;
}

.remember-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	margin-bottom: 14px;
}

.remember-row label {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--text-muted);
}

.submit-button {
	width: 100%;
	padding: 18px;
	border: none;
	border-radius: var(--field-radius);
	background: var(--gradient);
	color: #fff;
	font-size: 1rem;
	font-weight: 800;
	cursor: pointer;
	transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
	box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.submit-button:hover {
	transform: translateY(-1px);
	filter: brightness(1.05);
	box-shadow: 0 14px 28px rgba(37, 99, 235, 0.45);
}

.login-error,
.login-success {
	background: #fff;
	border: 1px solid var(--field-border);
	color: var(--text-dark);
	border-radius: var(--field-radius);
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
	padding: 12px 14px;
	font-size: 0.85rem;
	font-weight: 600;
	margin: 0 40px 16px;
}

.login-error { border-right: 4px solid #dc2626; }
.login-success { border-right: 4px solid #10b981; }

.external-footer {
	margin-top: 15px;
	display: flex;
	justify-content: space-between;
	padding: 0 10px;
	font-size: 0.75rem;
}

.external-footer a { color: var(--primary); text-decoration: none; font-weight: 800; }
.external-footer span { color: var(--text-muted); }
