/* ==========================================================================
   Log in / Register / Forgot password — full-screen page over a blurred photo
   template-parts/auth-shell.php, woocommerce/myaccount/form-login.php
   Smallest text 16px.
   ========================================================================== */

.va-page {
	--va-line: #e4ddd6;
	--va-field: #faf7f4;
	--va-error: #d33a22;
	margin: 0; min-height: 100vh; background: #1a1210;
	font-family: var(--vd-font-sans); font-size: 1.125rem; line-height: 1.5; color: var(--vd-ink);
}
.va-page .vd-contact-badge { display: none; }

/* ---- Page + blurred backdrop (same look as the search overlay) ---- */
.va {
	position: relative; min-height: 100vh; overflow: hidden;
	display: flex; flex-direction: column; align-items: center;
	padding: 120px 16px 64px;
}
.va::before {
	content: ""; position: fixed; inset: -40px; z-index: 0;
	background: #1a1210 var(--va-bg) center / cover no-repeat;
	filter: blur(18px) saturate(120%); transform: scale(1.05);
}
.va::after { content: ""; position: fixed; inset: 0; z-index: 0; background: rgba(30, 8, 20, .55); }
.va > * { position: relative; z-index: 1; }

.va__logo { position: absolute; top: 24px; left: 40px; }
.va__logo img { height: 48px; width: auto; display: block; }
.va__logotext { color: #fff; text-decoration: none; font-family: var(--vd-font-serif); font-size: 1.75rem; letter-spacing: 4px; text-transform: uppercase; }
.va__back {
	position: absolute; top: 24px; right: 40px;
	display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px;
	border-radius: 999px; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12);
	color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em;
	transition: background .15s ease;
}
.va__back:hover { background: rgba(255, 255, 255, .25); color: #fff; }

.va__title {
	margin: 0 0 10px; color: #fff; text-align: center;
	font-family: var(--vd-font-serif); font-style: italic; font-weight: 300;
	font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 1.05;
}
.va__sub { margin: 0 0 32px; color: rgba(255, 255, 255, .85); text-align: center; font-size: 1.1875rem; }

/* WooCommerce sits in a .woocommerce box: let it lay out like the page. */
.va > .woocommerce { width: 100%; display: flex; flex-direction: column; align-items: center; }

/* ---- Card ---- */
.va-card {
	width: 100%; max-width: 520px; margin: 0;
	background: #fff; border-radius: 24px; padding: 36px 36px 32px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.va-card.register { max-width: 560px; }
.va-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.va-field { margin-bottom: 20px; }
.va-label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 1.0625rem; }
.va-label b { color: var(--vd-coral); font-weight: 700; }
.va-input-wrap { position: relative; }
.va-input,
.va-card--wc input.input-text {
	width: 100%; height: 56px; padding: 0 18px; margin: 0;
	border: 1.5px solid var(--va-line); border-radius: 14px; background: var(--va-field);
	font-family: inherit; font-size: 1.125rem; font-weight: 500; color: var(--vd-ink);
	outline: 0; box-shadow: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.va-input::placeholder { color: #a49c97; }
.va-input:focus,
.va-card--wc input.input-text:focus { border-color: var(--vd-wine); background: #fff; box-shadow: 0 0 0 4px rgba(79, 10, 43, .1); }
.va-input--pw { padding-right: 56px; }

.va-eye {
	position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
	width: 42px; height: 42px; padding: 0; border: 0; border-radius: 10px; background: none;
	display: grid; place-items: center; cursor: pointer; color: var(--vd-muted);
}
.va-eye:hover { background: var(--va-field); color: var(--vd-ink); }
.va-eye .is-hide { display: none; }
.va-eye[aria-pressed="true"] .is-show { display: none; }
.va-eye[aria-pressed="true"] .is-hide { display: block; }

.va-err { display: none; margin: 6px 0 0; color: var(--va-error); font-size: 1rem; font-weight: 600; }
.va-field.has-error .va-input,
.va-field.has-error .va-phone { border-color: var(--va-error); background: #fff; }
.va-field.has-error .va-err { display: block; }

/* ---- Phone with country picker ---- */
.va-phone {
	position: relative; display: flex; align-items: center; height: 56px;
	border: 1.5px solid var(--va-line); border-radius: 14px; background: var(--va-field);
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.va-phone:focus-within { border-color: var(--vd-wine); background: #fff; box-shadow: 0 0 0 4px rgba(79, 10, 43, .1); }
.va-cc {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 100%;
	padding: 0 12px 0 16px; border: 0; border-right: 1.5px solid var(--va-line); border-radius: 14px 0 0 14px;
	background: none; color: var(--vd-ink); cursor: pointer; font-family: inherit; font-weight: 700; font-size: 1.0625rem;
}
.va-cc svg { color: var(--vd-muted); transition: transform .15s; }
.va-cc[aria-expanded="true"] svg { transform: rotate(180deg); }
.va-cc__flag { font-size: 1.375rem; line-height: 1; }
.va-phone .va-input { height: 100%; border: 0; background: none; box-shadow: none; padding-left: 14px; }
.va-phone .va-input:focus { box-shadow: none; }

.va-cclist {
	position: absolute; top: calc(100% + 8px); left: 0; z-index: 5;
	width: 300px; max-width: calc(100vw - 72px); max-height: 280px; overflow-y: auto;
	margin: 0; padding: 8px; list-style: none;
	background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
}
.va-cclist[hidden] { display: none; }
.va-cclist button {
	width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px;
	border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left;
	font-family: inherit; font-size: 1.0625rem; font-weight: 600; color: var(--vd-ink);
}
.va-cclist button:hover,
.va-cclist button:focus-visible { background: var(--va-field); outline: 0; }
.va-cclist button[aria-selected="true"] { background: #f7f9c8; }
.va-cclist__name { flex: 1; }
.va-cclist small { color: var(--vd-muted); font-size: 1rem; font-weight: 600; }

/* ---- Info line, privacy text ---- */
.va-info {
	display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 16px; padding: 14px 16px;
	background: var(--va-field); border-radius: 14px; font-size: 1.0625rem; font-weight: 600;
}
.va-info svg { flex: 0 0 auto; margin-top: 2px; color: var(--vd-wine); }
.va-card .woocommerce-privacy-policy-text,
.va-card .woocommerce-privacy-policy-text p { margin: 0 0 24px; color: var(--vd-muted); font-size: 1rem; line-height: 1.55; text-align: left; }
.va-card .woocommerce-privacy-policy-text a,
.va-link {
	color: var(--vd-wine); font-weight: 700;
	text-decoration: underline; text-decoration-color: var(--vd-coral); text-underline-offset: 4px;
}
.va-link:hover,
.va-card .woocommerce-privacy-policy-text a:hover { color: var(--vd-coral); }

/* ---- Remember me + forgot ---- */
.va-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 4px 0 24px; }
.va-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 1.0625rem; }
.va-check input {
	appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0;
	display: grid; place-items: center; cursor: pointer;
	border: 1.5px solid var(--va-line); border-radius: 6px; background: var(--va-field);
}
.va-check input:checked { background: var(--vd-wine); border-color: var(--vd-wine); }
.va-check input:checked::after {
	content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0;
	transform: rotate(45deg) translate(-1px, -1px);
}
.va-check input:focus-visible { box-shadow: 0 0 0 4px rgba(79, 10, 43, .15); }

/* ---- Button ---- */
.va-btn,
.va-card--wc button.button {
	width: 100%; height: 58px; margin: 0; padding: 0 24px;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	border: 0; border-radius: 999px; background: var(--vd-accent); color: var(--vd-ink);
	font-family: inherit; font-weight: 700; font-size: 1.125rem; text-transform: uppercase; letter-spacing: .06em;
	text-decoration: none; cursor: pointer; transition: transform .15s, background .15s;
}
.va-btn:hover,
.va-card--wc button.button:hover { background: #ecf86a; color: var(--vd-ink); }
.va-btn:active { transform: scale(.99); }
.va-btn svg { transition: transform .15s; }
.va-btn:hover svg { transform: translateX(3px); }

.va-switch {
	margin: 24px 0 0; padding-top: 22px; border-top: 1px solid var(--va-line);
	text-align: center; color: var(--vd-muted); font-size: 1.125rem;
}

/* ---- Messages: our "please fill in" box + WooCommerce's (wrong password…) ---- */
.va-note {
	display: none; align-items: center; gap: 10px; margin-bottom: 20px; padding: 12px 16px;
	background: #fbeae6; color: var(--va-error); border-radius: 12px; font-weight: 600; font-size: 1rem;
}
.va-note.is-on { display: flex; }
.va .woocommerce-notices-wrapper { width: 100%; max-width: 560px; }
.va .woocommerce-error,
.va .woocommerce-message,
.va .woocommerce-info {
	margin: 0 0 20px; padding: 14px 18px !important; list-style: none;
	border: 0 !important; border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
	font-size: 1.0625rem; font-weight: 600; line-height: 1.45;
}
.va .woocommerce-error { background: #fbeae6 !important; color: var(--va-error) !important; }
.va .woocommerce-message,
.va .woocommerce-info { background: #fff !important; color: var(--vd-ink) !important; }
.va .woocommerce-error::before,
.va .woocommerce-message::before,
.va .woocommerce-info::before { display: none !important; }
.va .woocommerce-error li { margin: 0; }
.va .woocommerce-error a,
.va .woocommerce-message a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---- "Check your inbox" ---- */
.va-done { text-align: center; padding-top: 40px; }
.va-done__icon {
	width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
	background: var(--vd-accent); display: grid; place-items: center; color: var(--vd-ink);
}
.va-done h2 { margin: 0 0 10px; font-family: var(--vd-font-serif); font-style: italic; font-weight: 400; font-size: 2.2rem; line-height: 1.1; }
.va-done p { margin: 0 0 24px; color: var(--vd-muted); }
.va-done strong { color: var(--vd-ink); }

/* ---- Forgot / reset password (WooCommerce's own form inside our card) ---- */
.va-card--wc form { margin: 0; padding: 0; border: 0; }
.va-card--wc form > p:first-child { margin: 0 0 20px; color: var(--vd-muted); }
.va-card--wc .form-row { float: none !important; width: 100% !important; margin: 0 0 20px; padding: 0; }
.va-card--wc .form-row label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 1.0625rem; }
.va-card--wc .form-row .required { color: var(--vd-coral); text-decoration: none; border: 0; }
.va-card--wc .clear { display: none; }
.va-card--wc .password-input { display: block; position: relative; }
.va-card--wc .show-password-input { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.va-card--wc .woocommerce-message { box-shadow: none; background: var(--va-field) !important; }

/* ---- Phones ---- */
@media (max-width: 620px) {
	.va { padding-top: 100px; }
	.va__logo { top: 20px; left: 16px; }
	.va__logo img { height: 36px; }
	.va__back { top: 16px; right: 16px; height: 42px; padding: 0 14px; }
	.va__back span { display: none; }
	.va-card { padding: 28px 20px 24px; border-radius: 20px; }
	.va-grid2 { grid-template-columns: 1fr; }
}