:root {
	--wvg-accent: #1f6fb5;
	--wvg-ink: #0f2430;
	--wvg-muted: #5b6b75;
	--wvg-line: #dfe6ea;
	--wvg-field: #f2f5f7;
	--wvg-radius: 18px;
	--wvg-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body.wvg-body {
	margin: 0;
	min-height: 100%;
	background: #0b1a24;
	font-family: var(--wvg-font);
	color: var(--wvg-ink);
	-webkit-font-smoothing: antialiased;
}

[data-wvg] [hidden] { display: none !important; }

.wvg-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	background-size: cover;
	background-position: center;
}
.wvg-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(6, 18, 28, .55), rgba(6, 18, 28, .75));
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.wvg-wrap {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 410px);
	gap: 28px;
	align-content: center; /* centre the row vertically on the page */
	align-items: stretch;  /* both cards share the row's height */
	max-width: 1120px;
	margin: 0 auto;
	padding: 40px 20px;
}

.wvg-card {
	border-radius: var(--wvg-radius);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
	overflow: hidden;
}

/* ---------- Left card: image with logo on top, trust badge at the bottom ---------- */

/* The image is absolutely positioned so it never sets the row height itself. */
.wvg-visual { position: relative; min-height: 520px; background: #0e2632; }
.wvg-visual__bg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }

.wvg-visual__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding: 34px 28px 30px;
	text-align: center;
	/* Darken top and bottom so the white logo and text stay readable. */
	background: linear-gradient(180deg, rgba(5, 20, 38, .55) 0%, rgba(5, 20, 38, 0) 30%, rgba(5, 20, 38, 0) 60%, rgba(5, 20, 38, .7) 100%);
}
.wvg-visual__logo { display: block; width: 62%; max-width: 270px; height: auto; }
/* Trust badge + tagline: on the image on desktop, below it on mobile. */
.wvg-trust { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.wvg-trust__badge { display: block; width: 44%; min-width: 140px; max-width: 200px; height: auto; }
.wvg-trust p {
	margin: 0;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: .01em;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
.wvg-trust--mobile { display: none; }

/* ---------- Right card ---------- */

.wvg-panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: #fff;
	padding: 28px 28px 22px;
}

.wvg-alert {
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #fdecec;
	color: #8a1f1f;
	font-size: 13px;
}

/* Choice view: headline, then Google / Get Free Access / Sign in */
.wvg-intro { margin-bottom: 22px; text-align: center; }
.wvg-intro h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: var(--wvg-ink); }
.wvg-intro p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--wvg-muted); }

.wvg-google {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 16px 14px;
	border: 1px solid #d5dde3;
	border-radius: 14px;
	color: var(--wvg-ink);
	font-weight: 600;
	font-size: 17px;
	text-decoration: none;
	background: #fff;
	transition: background .15s, box-shadow .15s;
}
.wvg-google:hover { background: #f7fafb; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }

.wvg-divider {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 22px 0 16px;
	font-size: 15px;
	color: var(--wvg-muted);
}
.wvg-divider::before, .wvg-divider::after { content: ""; flex: 1; height: 1px; background: var(--wvg-line); }

.wvg-submit {
	display: block;
	width: 100%;
	padding: 15px;
	border: 0;
	border-radius: 10px;
	background: var(--wvg-accent);
	color: #fff;
	font: 600 17px/1.2 var(--wvg-font);
	cursor: pointer;
	transition: filter .15s;
}
.wvg-submit:hover { filter: brightness(1.08); }
.wvg-form .wvg-submit { margin-top: 18px; }

.wvg-switch { margin: 16px 0 0; text-align: center; font-size: 16px; color: var(--wvg-ink); }
.wvg-link {
	padding: 0;
	border: 0;
	background: none;
	font: 700 16px/1.2 var(--wvg-font);
	color: var(--wvg-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.wvg-link:hover { color: var(--wvg-accent); }

/* Form views */
.wvg-form__head { position: relative; margin-bottom: 4px; }
.wvg-back {
	padding: 0;
	border: 0;
	background: none;
	font: 600 14px/1 var(--wvg-font);
	color: var(--wvg-muted);
	cursor: pointer;
}
.wvg-back:hover { color: var(--wvg-ink); }
.wvg-heading { margin: 14px 0 6px; font-size: 22px; line-height: 1.25; }

.wvg-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.wvg-label { display: block; margin: 12px 0 5px; font-size: 13px; font-weight: 700; }

.wvg-input {
	width: 100%;
	padding: 12px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: var(--wvg-field);
	font: 15px/1.3 var(--wvg-font);
	color: var(--wvg-ink);
}
.wvg-input::placeholder { color: #9aa7b0; }
.wvg-input:focus { outline: none; border-color: var(--wvg-accent); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--wvg-accent) 18%, transparent); }

.wvg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.wvg-pw { position: relative; }
.wvg-pw .wvg-input { padding-right: 70px; }
.wvg-show {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	padding: 5px 11px;
	border: 1px solid var(--wvg-line);
	border-radius: 999px;
	background: #fff;
	font: 600 12px/1 var(--wvg-font);
	color: var(--wvg-ink);
	cursor: pointer;
}

.wvg-check {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	margin-top: 14px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--wvg-ink);
	cursor: pointer;
}
.wvg-check + .wvg-check { margin-top: 10px; }
.wvg-check input { margin: 2px 0 0; flex: none; width: 15px; height: 15px; accent-color: var(--wvg-accent); }
.wvg-check a { color: var(--wvg-accent); }
.wvg-check--plain { font-weight: 600; }

.wvg-forgot { display: block; margin-top: 14px; text-align: center; font-size: 14px; font-weight: 600; color: var(--wvg-muted); }

/* Research-use notice (all views) */
.wvg-notice {
	margin-top: 22px;
	padding-top: 14px;
	border-top: 1px solid var(--wvg-line);
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--wvg-muted);
}
.wvg-notice h2 { margin: 0 0 4px; font-size: 13px; color: var(--wvg-ink); }
.wvg-notice p { margin: 0 0 6px; }
.wvg-notice p:last-child { margin-bottom: 0; }

.wvg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 820px) {
	.wvg-wrap { grid-template-columns: 1fr; max-width: 440px; gap: 16px; padding: 16px; align-content: start; }
	.wvg-visual { min-height: 0; height: 210px; }
	.wvg-visual__bg { object-position: center 40%; }
	.wvg-visual__overlay {
		justify-content: flex-start;
		padding: 16px;
		background: linear-gradient(180deg, rgba(5, 20, 38, .6) 0%, rgba(5, 20, 38, 0) 35%);
	}
	.wvg-visual__logo { max-width: 180px; }
	/* Trust block moves out of the image, between it and the white card. */
	.wvg-trust--desktop { display: none; }
	.wvg-trust--mobile { display: flex; gap: 6px; padding: 2px 0; }
	/* White backing so the dark "Trustpilot" wordmark reads on the dark page. */
	.wvg-trust--mobile .wvg-trust__badge { min-width: 0; width: 132px; padding: 6px 12px; background: #fff; border-radius: 10px; box-sizing: content-box; }
	.wvg-trust--mobile p { font-size: 16px; }
	.wvg-panel { padding: 22px 18px 18px; }
	.wvg-intro { margin-bottom: 18px; }
	.wvg-intro h1 { font-size: 24px; }
	.wvg-intro p { font-size: 15px; }
}
@media (max-width: 380px) {
	.wvg-row { grid-template-columns: 1fr; gap: 0; }
	.wvg-google { font-size: 16px; }
}
