/* ============================================================
   LuxPrice — استایل صفحه لاگین (شیشه‌ای، لوکس، طلایی)
   ============================================================ */


* { scrollbar-width: thin; scrollbar-color: rgba(255,195,0,.5) transparent; }
*::-webkit-scrollbar { width: 7px; height: 7px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(255,195,0,.65), rgba(240,165,0,.4)); border-radius: 99px; border: 1.5px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-corner { background: transparent; }

:root {
	--gold: #ffc300;
	--gold-deep: #f5a800;
	--gold-soft: #ffe08a;
	--gold-glow: rgba(255, 195, 0, 0.45);
	--gold-glow-soft: rgba(255, 195, 0, 0.16);
	--bg: #0a0a10;
	--bg2: #101018;
	--text: #f4f4f6;
	--muted: #a1a1aa;
	--card-bg: rgba(255, 255, 255, 0.055);
	--card-border: rgba(255, 255, 255, 0.13);
	--input-bg: rgba(255, 255, 255, 0.05);
	--danger: #f87171;
	--danger-bg: rgba(239, 68, 68, 0.12);
	--radius: 22px;
	--font: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
}
[data-theme="light"] {
	--bg: #faf6ee;
	--bg2: #f3ecdd;
	--text: #1c1917;
	--muted: #6b7280;
	--card-bg: rgba(255, 255, 255, 0.62);
	--card-border: rgba(255, 255, 255, 0.85);
	--input-bg: rgba(255, 255, 255, 0.7);
	--danger: #dc2626;
	--danger-bg: rgba(239, 68, 68, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.lp-login-body {
	font-family: var(--font);
	background: var(--bg);
	color: var(--text);
	min-height: 100dvh;
	overflow-x: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	position: relative;
	transition: background 0.5s ease, color 0.5s ease;
	-webkit-font-smoothing: antialiased;
}

/* ---------- پس‌زمینه لوکس ---------- */
.bg-layer { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: orbFloat 18s ease-in-out infinite; }
.orb-1 { width: 520px; height: 520px; top: -160px; right: -120px; background: radial-gradient(circle, rgba(255, 195, 0, 0.5), transparent 65%); }
.orb-2 { width: 460px; height: 460px; bottom: -140px; left: -100px; background: radial-gradient(circle, rgba(255, 160, 0, 0.38), transparent 65%); animation-delay: -6s; }
.orb-3 { width: 340px; height: 340px; top: 42%; left: 58%; background: radial-gradient(circle, rgba(255, 224, 138, 0.22), transparent 65%); animation-delay: -12s; }

[data-theme="light"] .orb-1 { background: radial-gradient(circle, rgba(255, 195, 0, 0.55), transparent 65%); }
[data-theme="light"] .orb-2 { background: radial-gradient(circle, rgba(255, 170, 40, 0.4), transparent 65%); }

@keyframes orbFloat {
	0%, 100% { transform: translate(0, 0) scale(1); }
	33% { transform: translate(40px, -30px) scale(1.08); }
	66% { transform: translate(-30px, 24px) scale(0.95); }
}

.bg-grid {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(255, 195, 0, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 195, 0, 0.05) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.bg-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.55)); }
[data-theme="light"] .bg-vignette { background: radial-gradient(ellipse at center, transparent 50%, rgba(120, 90, 10, 0.12)); }

/* ---------- کارت شیشه‌ای ---------- */
.login-wrap { position: relative; z-index: 1; width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 18px; }

.glass-card {
	background: var(--card-bg);
	backdrop-filter: blur(26px) saturate(1.4);
	-webkit-backdrop-filter: blur(26px) saturate(1.4);
	border: 1px solid var(--card-border);
	border-radius: var(--radius);
	box-shadow:
		0 24px 70px rgba(0, 0, 0, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.12),
		0 0 0 1px rgba(255, 195, 0, 0.06),
		0 0 80px -20px var(--gold-glow-soft);
	padding: 38px 34px 30px;
	animation: cardIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
	position: relative;
	overflow: hidden;
}

.glass-card::before {
	content: '';
	position: absolute; top: 0; right: 0; left: 0; height: 3px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
	animation: goldLine 4s ease-in-out infinite;
}
@keyframes goldLine { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

@keyframes cardIn {
	from { opacity: 0; transform: translateY(28px) scale(0.97); filter: blur(8px); }
	to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ---------- برند ---------- */
.brand { text-align: center; margin-bottom: 26px; }

.brand-logo {
	width: 76px; height: 76px; margin: 0 auto 14px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 22px;
	background: linear-gradient(145deg, #ffd54a, #f0a500);
	color: #231a00;
	box-shadow: 0 10px 34px var(--gold-glow), inset 0 -3px 0 rgba(0, 0, 0, 0.14);
	animation: logoPulse 3.2s ease-in-out infinite;
}
.brand-logo svg { width: 44px; height: 44px; }

@keyframes logoPulse {
	0%, 100% { transform: scale(1); box-shadow: 0 10px 34px var(--gold-glow); }
	50% { transform: scale(1.045); box-shadow: 0 14px 44px var(--gold-glow); }
}

.brand-name {
	font-size: 40px; font-weight: 800; letter-spacing: 12px;
	padding-right: 12px; /* جبران فاصله آخرین حرف */
	background: linear-gradient(135deg, #ffe08a, var(--gold) 45%, var(--gold-deep));
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent;
	filter: drop-shadow(0 3px 18px rgba(255, 195, 0, 0.35));
}
.brand-tag { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* ---------- هشدار خطا ---------- */
.alert {
	display: flex; align-items: flex-start; gap: 10px;
	border-radius: 14px; padding: 12px 14px; font-size: 13.5px; line-height: 1.7;
	margin-bottom: 18px;
}
.alert svg { width: 19px; height: 19px; flex: none; margin-top: 2px; }
.alert-error {
	background: var(--danger-bg);
	border: 1px solid rgba(239, 68, 68, 0.35);
	color: var(--danger);
	animation: shake 0.45s ease;
}
@keyframes shake {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-7px); }
	40% { transform: translateX(7px); }
	60% { transform: translateX(-5px); }
	80% { transform: translateX(5px); }
}

/* ---------- فرم ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--text); }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input-icon {
	position: absolute; right: 14px; color: var(--muted);
	display: flex; pointer-events: none; transition: color 0.25s;
}
.input-icon svg { width: 20px; height: 20px; }

.input-wrap input {
	width: 100%;
	background: var(--input-bg);
	border: 1.5px solid var(--card-border);
	border-radius: 14px;
	padding: 13px 46px 13px 46px;
	font-family: var(--font);
	font-size: 15px;
	color: var(--text);
	outline: none;
	transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
	text-align: right;
}
.input-wrap input::placeholder { color: var(--muted); opacity: 0.75; }
.input-wrap input:focus {
	border-color: var(--gold);
	box-shadow: 0 0 0 4px var(--gold-glow-soft), 0 0 24px -6px var(--gold-glow);
	background: rgba(255, 255, 255, 0.09);
}
[data-theme="light"] .input-wrap input:focus { background: #fff; }
.input-wrap:focus-within .input-icon { color: var(--gold-deep); }

.eye-toggle {
	position: absolute; left: 12px;
	background: none; border: none; cursor: pointer;
	color: var(--muted); display: flex; padding: 6px;
	border-radius: 10px; transition: color 0.2s, transform 0.2s;
}
.eye-toggle:hover { color: var(--gold); }
.eye-toggle svg { width: 20px; height: 20px; }
.eye-toggle .icon-eye-off { display: none; }
.eye-toggle.showing .icon-eye { display: none; }
.eye-toggle.showing .icon-eye-off { display: block; }

.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }

/* ---------- مرا به خاطر بسپار ---------- */
.form-meta { margin: 4px 0 22px; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track {
	width: 46px; height: 26px; flex: none;
	border-radius: 99px; background: rgba(255, 255, 255, 0.14);
	border: 1px solid var(--card-border);
	position: relative; transition: background 0.3s, border-color 0.3s;
}
.switch-thumb {
	position: absolute; top: 2px; right: 2px;
	width: 20px; height: 20px; border-radius: 50%;
	background: #c9c9cf;
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
}
.switch input:checked + .switch-track { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); border-color: var(--gold); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(-20px); background: #231a00; }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 4px var(--gold-glow-soft); }
.switch-label { display: flex; flex-direction: column; line-height: 1.55; font-size: 13.5px; }
.switch-label small { color: var(--muted); font-size: 11.5px; }

/* ---------- دکمه ورود ---------- */
.btn-login {
	width: 100%;
	position: relative;
	display: flex; align-items: center; justify-content: center; gap: 10px;
	background: linear-gradient(135deg, #ffd54a 0%, var(--gold) 40%, var(--gold-deep) 100%);
	color: #231a00;
	font-family: var(--font);
	font-size: 16.5px; font-weight: 800;
	border: none; border-radius: 15px;
	padding: 15px 20px;
	cursor: pointer;
	box-shadow: 0 12px 34px -6px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.55);
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.3s;
}
.btn-login::before {
	content: '';
	position: absolute; top: 0; bottom: 0; width: 60%;
	left: -80%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
	transform: skewX(-20deg);
	animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 0% { left: -80%; } 55%, 100% { left: 130%; } }
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -6px var(--gold-glow); }
.btn-login:active { transform: translateY(0) scale(0.985); }
.btn-login:disabled { opacity: 0.75; cursor: wait; }

.btn-loader {
	display: none;
	width: 20px; height: 20px;
	border: 2.5px solid rgba(35, 26, 0, 0.3);
	border-top-color: #231a00;
	border-radius: 50%;
	animation: spin 0.7s linear infinite;
}
.btn-login.loading .btn-loader { display: block; }
.btn-login.loading .btn-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-arrow { width: 21px; height: 21px; }


/* ---------- ورود به عنوان مهمان ---------- */
.guest-divider {
	display: flex; align-items: center; gap: 12px;
	margin: 16px 0 14px; color: var(--muted); font-size: 11px; font-weight: 700;
}
.guest-divider::before, .guest-divider::after {
	content: ''; flex: 1; height: 1px;
	background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}
.guest-form { margin: 0 0 18px; }
.btn-guest {
	width: 100%;
	display: flex; align-items: center; gap: 12px;
	background: linear-gradient(160deg, rgba(255,195,0,.08), rgba(255,195,0,.02));
	border: 1.5px dashed rgba(255,195,0,.45);
	border-radius: 14px; padding: 11px 14px;
	font-family: var(--font); color: var(--text);
	cursor: pointer; text-align: right;
	transition: all .25s;
}
.btn-guest:hover {
	border-color: var(--gold);
	background: linear-gradient(160deg, rgba(255,195,0,.14), rgba(255,195,0,.04));
	box-shadow: 0 0 22px -8px var(--gold-glow);
	transform: translateY(-1px);
}
.guest-ic {
	width: 38px; height: 38px; flex: none;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255,195,0,.14); border-radius: 11px;
	color: var(--gold-deep);
}
[data-theme="light"] .guest-ic { color: #b45309; }
.guest-ic svg { width: 19px; height: 19px; }
.guest-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.guest-txt b { font-size: 13px; color: var(--gold-deep); }
[data-theme="light"] .guest-txt b { color: #b45309; }
.guest-txt small { font-size: 10.5px; color: var(--muted); }
.guest-arrow { width: 17px; height: 17px; color: var(--gold-deep); transition: transform .25s; }
[data-theme="light"] .guest-arrow { color: #b45309; }
.btn-guest:hover .guest-arrow { transform: translateX(-4px); }

/* ---------- امنیت ---------- */
.security-note {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	margin-top: 22px;
	color: var(--muted); font-size: 12px;
}
.security-note svg { width: 16px; height: 16px; color: var(--gold); }

/* ---------- باکس دمو حذف شد — فوتر ---------- */
.login-footer {
	text-align: center; color: var(--muted); font-size: 12.5px;
	animation: cardIn 0.9s 0.25s both;
}

/* ---------- ریسپانسیو موبایل ---------- */
@media (max-width: 520px) {
	body.lp-login-body { padding: 16px 12px; }
	.glass-card { padding: 30px 20px 24px; border-radius: 18px; }
	.brand-logo { width: 64px; height: 64px; border-radius: 18px; }
	.brand-logo svg { width: 38px; height: 38px; }
	.brand-name { font-size: 32px; letter-spacing: 9px; }
	.btn-login { font-size: 15px; padding: 14px 16px; }
}

/* کاهش حرکت برای کاربرانی که آن را غیرفعال کرده‌اند */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
