/*
 * VapeIran Wholesale – ready-made "preset" skin for the login page.
 * Loaded ON TOP OF vw-forms.css (which does all the structural layout).
 * Used by: the [vapeiran_gate] shortcode, and the built-in standalone
 * template (Settings -> "قالب آماده تیره"). NOT loaded for the Elementor
 * widgets — there, colors/typography come from Elementor's own Style tab
 * so the page stays fully editable there instead of hardcoded here.
 *
 * Palette inspired by the main shop's red + charcoal, deliberately not a
 * pixel copy of it.
 */

:root {
	--vw-accent: #d7263d;
	--vw-bg: #121214;
	--vw-card: #1c1c20;
	--vw-border: rgba(255, 255, 255, .1);
	--vw-text: #ffffff;
	--vw-muted: #b3b1b1;
	--vw-danger: #ff8a8a;
}

/* ---- Standalone page (built-in template only) -------------------------- */

body.vw-gate {
	position: relative;
	margin: 0;
	min-height: 100vh;
	overflow-x: hidden;
	background-color: var(--vw-bg);
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	color: var(--vw-text);
	font-family: "Modam-Vp", Vazirmatn, "IRANSansX", "Segoe UI", Tahoma, system-ui, sans-serif;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

/* Thin accent line on top of the page. */
body.vw-gate::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--vw-accent);
	z-index: 2;
}

.vw-wrap {
	position: relative;
	box-sizing: border-box;
	min-height: 100vh;
	max-width: 520px;
	margin: 0 auto;
	padding: 40px 16px 24px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 24px;
}

.vw-brand { text-align: center; }
.vw-logo { max-height: 64px; max-width: 200px; width: auto; height: auto; margin-bottom: 16px; }
.vw-logo-text { font-size: 1.1rem; font-weight: 700; letter-spacing: .04em; color: var(--vw-accent); margin-bottom: 12px; }
.vw-brand h1 { margin: 0 0 8px; font-size: 1.6rem; font-weight: 700; }
.vw-brand p { margin: 0 auto; max-width: 420px; color: var(--vw-muted); font-size: .95rem; }
.vw-foot { text-align: center; color: var(--vw-muted); font-size: .8rem; }

/* ---- Card + tabs (shortcode and built-in template) ---------------------- */

.vw-card {
	box-sizing: border-box;
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
	padding: 24px;
	background: var(--vw-card);
	border: 1px solid var(--vw-border);
	border-radius: 18px;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	color: var(--vw-text);
	font-family: inherit;
}

.vw-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	padding: 4px;
	margin-bottom: 20px;
	background: rgba(255, 255, 255, .05);
	border-radius: 12px;
}

.vw-tab {
	padding: 9px 12px;
	text-align: center;
	color: var(--vw-muted);
	text-decoration: none;
	border-radius: 9px;
	font-size: .95rem;
	transition: background .15s, color .15s;
}
.vw-tab:hover { color: var(--vw-text); }
.vw-tab.is-active { background: var(--vw-accent); color: #fff; font-weight: 600; }

.vw-panel { display: none; }
.vw-panel.is-active { display: block; }

/* ---- Recolor the shared form parts to the brand skin -------------------- */

.vw-card .vw-field > span { color: var(--vw-muted); }
.vw-card .vw-field b { color: var(--vw-accent); }

.vw-card input[type="text"],
.vw-card input[type="password"],
.vw-card input[type="tel"],
.vw-card input[type="email"],
.vw-card textarea {
	background: rgba(0, 0, 0, .28);
	border-color: var(--vw-border);
	color: var(--vw-text);
}
.vw-card input:focus,
.vw-card textarea:focus {
	border-color: var(--vw-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--vw-accent) 30%, transparent);
}

.vw-card .vw-check-row { color: var(--vw-muted); }
.vw-card .vw-check-row input { accent-color: var(--vw-accent); }

.vw-card .vw-btn { background: var(--vw-accent); }

.vw-card .vw-hint { color: var(--vw-muted); }
.vw-card .vw-hint a, .vw-card .vw-link { color: var(--vw-accent); text-decoration: none; }
.vw-card .vw-hint a:hover, .vw-card .vw-link:hover { text-decoration: underline; }

.vw-card .vw-success h3 { color: var(--vw-text); }
.vw-card .vw-success p { color: var(--vw-muted); }
.vw-card .vw-check { background: var(--vw-accent); }

@media (max-width: 480px) {
	.vw-wrap { padding-top: 24px; }
	.vw-card { padding: 18px; border-radius: 16px; }
}
