/* LP Compliance — researcher access card (split: text left, form right).
 * Standalone page; no theme CSS. */

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

html, body { margin: 0; min-height: 100%; }

.lpc-gate-body {
	--lpc-ink: #1d1d1f;
	--lpc-muted: #5f6368;
	--lpc-line: #e3e3e6;
	--lpc-card: #ffffff;
	--lpc-panel-line: #efe4dc;
	--lpc-error: #b3261e;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--lpc-ink);
	background: #2b2b2b;
	-webkit-text-size-adjust: 100%;
}

/* ------------------------------------------------------------------ */
/* Blurred, content-free backdrop                                     */
/* ------------------------------------------------------------------ */
.lpc-bg {
	position: fixed;
	inset: -40px;
	z-index: 0;
	background:
		radial-gradient(60% 50% at 20% 25%, color-mix(in srgb, var(--lpc-accent) 70%, transparent), transparent 70%),
		radial-gradient(50% 60% at 85% 75%, color-mix(in srgb, var(--lpc-accent) 45%, #000 10%), transparent 70%),
		linear-gradient(135deg, #3a3a3a, #8a8178);
	background-size: cover;
	background-position: center;
	filter: blur(18px) saturate(110%);
	transform: scale(1.05);
}
.lpc-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 20, .25);
}

/* Uploaded background images (Settings → Site gate — background images). */
.lpc-bg--image { filter: blur(var(--lpc-bg-blur, 0px)); }
.lpc-bg--image::after { background: rgba(20, 20, 20, var(--lpc-bg-dim, .2)); }
.lpc-bg--sharp { inset: 0; transform: none; filter: none; } /* Pre-blurred image: show as is, no edge crop. */

/* ------------------------------------------------------------------ */
/* Split card                                                         */
/* ------------------------------------------------------------------ */
.lpc-split {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 900px;
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	background: var(--lpc-card);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
}
.lpc-split--wide {
	max-width: 1080px;
	grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}

/* Left: text panel */
.lpc-split__info {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: 40px 40px 32px;
	background:
		radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--lpc-accent) 16%, #fff) 0%, transparent 60%),
		linear-gradient(180deg, #fbf6f2, #f4ece6);
	border-right: 1px solid var(--lpc-panel-line);
	overflow-y: auto;
}
.lpc-split__text { display: grid; gap: 12px; }
.lpc-split__foot {
	margin-top: auto;
	display: grid;
	gap: 6px;
	font-size: 12px;
	color: var(--lpc-muted);
}

/* Right: form panel (scrolls on its own if the screen is short) */
.lpc-split__form {
	display: grid;
	gap: 14px;
	align-content: start;
	padding: 32px 36px 28px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.lpc-only-mobile { display: none; }

/* Sign-in / complete: short form — stack fields, give the card some height, centre the form. */
@media (min-width: 900px) {
	.lpc-split:not(.lpc-split--wide) .lpc-split__info { gap: 18px; padding: 36px 40px 30px; }
	.lpc-split:not(.lpc-split--wide) .lpc-split__form { align-content: center; padding: 36px 40px; }
	.lpc-split:not(.lpc-split--wide) .lpc-row { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ */
/* Text                                                               */
/* ------------------------------------------------------------------ */
.lpc-brand img { height: var(--lpc-logo-h, 48px); max-height: none; width: auto; max-width: 100%; display: block; }
.lpc-brand a { display: inline-block; }
.lpc-sitename { font-weight: 700; font-size: 20px; }

.lpc-eyebrow {
	margin: 0;
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--lpc-muted);
}

.lpc-title {
	margin: 0;
	font-size: 34px;
	line-height: 1.1;
	letter-spacing: -.02em;
	font-weight: 600;
}

.lpc-rule {
	display: block;
	width: 44px;
	height: 3px;
	border-radius: 3px;
	background: var(--lpc-accent);
}

.lpc-intro { margin: 0; font-size: 14px; line-height: 1.6; color: #4a4a4f; }
.lpc-intro strong { color: var(--lpc-ink); }

.lpc-note,
.lpc-links { margin: 0; font-size: 12px; color: var(--lpc-muted); }
.lpc-links a { color: var(--lpc-ink); }
.lpc-links a:hover { color: var(--lpc-accent); }

/* ------------------------------------------------------------------ */
/* Errors                                                             */
/* ------------------------------------------------------------------ */
.lpc-errors {
	padding: 10px 14px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--lpc-error) 8%, #fff);
	border: 1px solid color-mix(in srgb, var(--lpc-error) 35%, #fff);
	color: var(--lpc-error);
	font-size: 13px;
}
.lpc-errors[hidden] { display: none; }
.lpc-notice {
	padding: 10px 14px;
	border-radius: 10px;
	background: #edf7ef;
	border: 1px solid #b7dfc0;
	color: #1e5a2c;
	font-size: 13px;
}
.lpc-notice p { margin: 0; }
.lpc-errors:focus { outline: none; }
.lpc-errors p { margin: 0; }
.lpc-errors p + p { margin-top: 4px; }

/* ------------------------------------------------------------------ */
/* Form                                                               */
/* ------------------------------------------------------------------ */
.lpc-form { display: grid; gap: 14px; min-width: 0; }
.lpc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.lpc-field { display: grid; gap: 4px; min-width: 0; }
.lpc-field > span { font-size: 12px; font-weight: 500; }
.lpc-req { color: var(--lpc-error); }
.lpc-field input,
.lpc-field select {
	width: 100%;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--lpc-line);
	border-radius: 10px;
	background: #fff;
	color: var(--lpc-ink);
	font: inherit;
	appearance: none;
}
.lpc-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d1d1f' stroke-width='1.8'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
}
.lpc-field input:focus,
.lpc-field select:focus,
.lpc-check input:focus-visible,
.lpc-button:focus-visible {
	outline: 2px solid var(--lpc-accent);
	outline-offset: 2px;
	border-color: var(--lpc-accent);
}

.lpc-checks { display: grid; gap: 10px; }
.lpc-check {
	display: grid;
	grid-template-columns: 20px 1fr;
	gap: 10px;
	align-items: start;
	font-size: 12px;
	line-height: 1.45;
	color: var(--lpc-muted);
	cursor: pointer;
}
.lpc-check input {
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--lpc-accent);
}
.lpc-check a,
.lpc-intro a {
	color: var(--lpc-ink);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}
.lpc-check a:hover,
.lpc-intro a:hover,
.lpc-check a:focus-visible,
.lpc-intro a:focus-visible { color: var(--lpc-accent); }

.lpc-button {
	height: 46px;
	border: 0;
	border-radius: 999px;
	background: var(--lpc-ink);
	color: #fff;
	font: inherit;
	font-weight: 600;
	letter-spacing: .02em;
	cursor: pointer;
	transition: background .15s ease;
}
.lpc-button:hover { background: var(--lpc-accent); }
.lpc-button[disabled] { opacity: .7; cursor: progress; }

/* ------------------------------------------------------------------ */
/* Fields from the theme / other plugins (woocommerce_register_form)  */
/* ------------------------------------------------------------------ */
.lpc-extra { display: grid; gap: 10px; min-width: 0; }
.lpc-extra fieldset {
	margin: 0;
	padding: 12px 0 0;
	border: 0;
	border-top: 1px solid var(--lpc-line);
	border-radius: 0;
	display: grid;
	gap: 12px;
	min-width: 0;
}
.lpc-extra legend { display: none; } /* The text panel already explains the section. */
.lpc-extra p,
.lpc-extra .form-row { margin: 0; padding: 0; }
.lpc-extra label,
.lpc-extra .profidev-reg-group-label { display: block; margin: 0 0 4px; font-size: 12px; font-weight: 500; color: var(--lpc-ink); }
.lpc-extra .required { color: var(--lpc-error); text-decoration: none; border: 0; }
.lpc-extra input[type="text"],
.lpc-extra input[type="email"],
.lpc-extra input[type="tel"],
.lpc-extra input[type="url"],
.lpc-extra input[type="number"],
.lpc-extra select {
	width: 100%;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--lpc-line);
	border-radius: 10px;
	background: #fff;
	color: var(--lpc-ink);
	font: inherit;
	font-size: 13px;
}
.lpc-extra input:focus,
.lpc-extra select:focus { outline: 2px solid var(--lpc-accent); outline-offset: 1px; border-color: var(--lpc-accent); }
.lpc-extra input[type="radio"],
.lpc-extra input[type="checkbox"] { width: 15px; height: 15px; margin: 0; accent-color: var(--lpc-accent); flex: none; }

/* Radio / checkbox groups as compact two-column grids. */
.lpc-extra .profidev-reg-radio-group,
.lpc-extra .profidev-reg-checkbox-group { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.lpc-extra .profidev-reg-group-label { grid-column: 1 / -1; }
.lpc-extra .profidev-reg-option { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; font-weight: 400; color: var(--lpc-muted); cursor: pointer; }
.lpc-extra .profidev-reg-hint { display: block; margin-top: 3px; font-size: 11px; color: var(--lpc-muted); }
.lpc-extra [hidden] { display: none !important; }
.lpc-extra .profidev-reg-conditional-wrap { display: grid; gap: 10px; }

/* ------------------------------------------------------------------ */
/* Short laptop screens: tighten so the card stays above the fold     */
/* ------------------------------------------------------------------ */
@media (min-width: 900px) and (max-height: 760px) {
	.lpc-split__info { padding: 30px 32px 24px; gap: 16px; }
	.lpc-split__form { padding: 24px 30px 22px; gap: 12px; }
	.lpc-title { font-size: 30px; }
	.lpc-form { gap: 12px; }
	.lpc-field input, .lpc-field select { height: 38px; }
	.lpc-button { height: 42px; }
}

/* ------------------------------------------------------------------ */
/* Tablet portrait & phones: stack text above form                    */
/* ------------------------------------------------------------------ */
@media (max-width: 899px) {
	.lpc-gate-body { align-items: flex-start; padding: 16px; }
	.lpc-split,
	.lpc-split--wide {
		grid-template-columns: 1fr;
		max-width: 600px;
		max-height: none;
		margin: auto 0;
	}
	.lpc-split__info {
		padding: 24px 24px 20px;
		gap: 14px;
		border-right: 0;
		border-bottom: 1px solid var(--lpc-panel-line);
		overflow: visible;
	}
	.lpc-split__text { gap: 8px; }
	.lpc-title { font-size: 26px; }
	.lpc-intro { font-size: 13px; }
	.lpc-split__form { padding: 22px 24px 24px; overflow: visible; }
	.lpc-only-desktop { display: none; }
	.lpc-only-mobile { display: grid; text-align: center; margin-top: 2px; }
}

@media (max-width: 560px) {
	.lpc-gate-body { padding: 12px; }
	.lpc-split { border-radius: 16px; }
	.lpc-split__info { padding: 20px 18px 16px; }
	.lpc-split__form { padding: 18px 18px 20px; }
	.lpc-title { font-size: 24px; }
	.lpc-row { grid-template-columns: 1fr; }
	.lpc-extra .profidev-reg-radio-group,
	.lpc-extra .profidev-reg-checkbox-group { grid-template-columns: 1fr; }
	/* 16px stops iOS Safari zooming into fields on focus. */
	.lpc-field input,
	.lpc-field select,
	.lpc-extra input[type="text"],
	.lpc-extra input[type="email"],
	.lpc-extra input[type="tel"],
	.lpc-extra input[type="url"],
	.lpc-extra input[type="number"],
	.lpc-extra select { font-size: 16px; }
}
