/**
 * Helix Site Access Gate — gate screen.
 *
 * Self-contained: no theme or framework styles are loaded alongside this file,
 * so everything the gate needs is declared here.
 */

/* -------------------------------------------------------------------------
 * Tokens and reset
 * ---------------------------------------------------------------------- */

:root {
	--hsag-ink: #12333a;
	--hsag-muted: #62727a;
	--hsag-border: #cdd9df;
	--hsag-surface: #ffffff;
	--hsag-promo-surface: #eef3f7;
	--hsag-offer-bg: #f1f7f5;
	--hsag-offer-border: #cadfd7;
	--hsag-error: #a02322;
	--hsag-error-bg: #fdf1f1;
	--hsag-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;

	/* Overridden by the Appearance settings. */
	--hsag-primary: #25474b;
	--hsag-primary-dark: #133339;
	--hsag-primary-soft: rgba(37, 71, 75, 0.08);
	--hsag-secondary: #417573;
	--hsag-button: #25474b;
	--hsag-button-hover: #133339;
	--hsag-focus-ring: rgba(65, 117, 115, 0.35);
	--hsag-radius-card: 24px;
	--hsag-radius-control: 12px;
	--hsag-radius-pill: 48px;
}

/* .hsag-body itself is listed here, not just its descendants: the universal
   selector never matches the element it is scoped to, which left the body on
   content-box sizing, so its min-height: 100vh sat on top of its own padding
   and the page overflowed by exactly that padding on every screen. */
.hsag-body,
.hsag-body *,
.hsag-body *::before,
.hsag-body *::after {
	box-sizing: border-box;
}

.hsag-body {
	margin: 0;
	padding: clamp(16px, 4vw, 48px);
	/* min-height, not height: the card sits inside a full screen when it fits,
	   and the page simply grows and scrolls when it does not. */
	min-height: 100vh;
	display: flex;
	background-color: var(--hsag-primary);
	color: var(--hsag-ink);
	font-family: var(--hsag-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

.hsag-body img {
	max-width: 100%;
	height: auto;
	display: block;
}

.hsag-body p,
.hsag-body h1,
.hsag-body h2,
.hsag-body ul {
	margin: 0;
}

.hsag-body ul {
	padding: 0;
	list-style: none;
}

.hsag-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* -------------------------------------------------------------------------
 * Shell and card
 * ---------------------------------------------------------------------- */

.hsag-shell {
	width: 100%;
	max-width: 1240px;
	/* Auto margins centre the card while there is room to spare and collapse to
	   zero once it is taller than the viewport. align-items: center would
	   instead overflow in both directions, putting the top of the card above
	   the scroll origin where it can never be reached. */
	margin: auto;
}

.hsag-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	max-width: 1300px;
	margin-inline: auto;
	background: var(--hsag-surface);
	border-radius: var(--hsag-radius-card);
	overflow: hidden;
	box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
}

.hsag-panel {
	padding: 40px clamp(28px, 3.4vw, 56px);
	min-width: 0;
}

/* -------------------------------------------------------------------------
 * Promotional panel
 * ---------------------------------------------------------------------- */

.hsag-panel--promo {
	display: flex;
	flex-direction: column;
	background-color: var(--hsag-promo-surface);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-right: 1px solid rgba(18, 51, 58, 0.08);
}

.hsag-logo {
	width: clamp(180px, 17vw, 232px);
	margin-bottom: 30px;
}

.hsag-eyebrow {
	margin-bottom: 24px;
	color: var(--hsag-ink);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.09em;
	line-height: 1.45;
	text-transform: uppercase;
}

.hsag-panel--promo .hsag-eyebrow {
	max-width: 265px;
}

.hsag-eyebrow--muted {
	margin-bottom: 0;
	color: var(--hsag-primary);
	font-size: 16px;
	letter-spacing: 0.13em;
}

.hsag-eyebrow--spaced {
	margin-bottom: 10px;
	color: var(--hsag-primary);
	font-size: 15px;
	letter-spacing: 0.3em;
	text-align: center;
}

.hsag-promo-heading {
	margin-bottom: 26px;
	font-size: 50px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.02;
	color: var(--hsag-ink);
	padding-top:10px;
}

.hsag-highlight {
	color: var(--hsag-secondary);
}

.hsag-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	align-self: flex-start;
	margin-top: 10px;
	margin-bottom: 10px;
	padding: 11px 26px;
	border-radius: var(--hsag-radius-pill);
	background: var(--hsag-primary);
	color: #fff;
	font-size: clamp(13px, 1.15vw, 16px);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hsag-badge__icon {
	width: 22px;
	height: 22px;
	flex: none;
}

.hsag-product {
	margin-bottom: 22px;
	padding-top: 26px;
	max-width:444px;
}

.hsag-product img {
	width: 100%;
}

.hsag-features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: auto;
	
}

.hsag-feature {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 0 10px;
	text-align: center;
	padding-bottom:10px;
}

.hsag-feature + .hsag-feature {
	border-left: 1px solid rgba(18, 51, 58, 0.14);
}

.hsag-feature__icon {
	width: 46px;
	height: 46px;
	margin-bottom: 8px;
}

.hsag-feature__title {
	color: var(--hsag-ink);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hsag-feature__text {
	color: var(--hsag-ink);
	font-size: 14px;
	line-height: 1.35;
}

.hsag-footnote {
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid rgba(18, 51, 58, 0.14);
	color: var(--hsag-ink);
	font-size: 15px;
	text-align: center;
}

/* -------------------------------------------------------------------------
 * Authentication panel
 * ---------------------------------------------------------------------- */

.hsag-panel--auth {
	display: flex;
	flex-direction: column;
	background: var(--hsag-surface);
}

.hsag-logo--auth {
	width: clamp(170px, 16vw, 218px);
	margin: 0 auto 24px;
}

.hsag-auth-heading {
	margin-bottom: 24px;
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -0.015em;
	line-height: 1.08;
	text-align: center;
	color: var(--hsag-ink);
	padding-top:10px;
}

.hsag-offer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-bottom: 20px;
	padding: 11px 20px;
	border: 1px solid var(--hsag-offer-border);
	border-radius: var(--hsag-radius-control);
	background: var(--hsag-offer-bg);
	margin: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 420px !important;
    width: 100%;
}

.hsag-offer__icon {
	width: 34px;
	height: 34px;
	flex: none;
	color: var(--hsag-primary);
}

.hsag-offer__body {
	min-width: 0;
}

.hsag-offer__title {
	color: var(--hsag-primary);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hsag-offer__text {
	color: var(--hsag-ink);
	font-size: 15px;
}

.hsag-auth-intro {
	max-width: 430px;
	margin: 0 auto 26px;
	color: var(--hsag-ink);
	font-size: 15px;
	line-height: 1.55;
	text-align: center;
	padding-bottom:20px;
}

/* -------------------------------------------------------------------------
 * Messages
 * ---------------------------------------------------------------------- */

.hsag-message {
	margin-bottom: 18px;
	padding: 13px 16px;
	border-radius: var(--hsag-radius-control);
	font-size: 14.5px;
	line-height: 1.45;
}

.hsag-message ul {
	margin: 0;
	padding-left: 18px;
	list-style: disc;
}

.hsag-message li + li {
	margin-top: 4px;
}

.hsag-message p + p {
	margin-top: 6px;
}

#hsag-errors:focus,
#hsag-errors:focus-visible {
	outline: none;
}

.hsag-message--error {
	border: 1px solid rgba(160, 35, 34, 0.35);
	background: var(--hsag-error-bg);
	color: var(--hsag-error);
}

.hsag-message--info {
	border: 1px solid var(--hsag-offer-border);
	background: var(--hsag-offer-bg);
	color: var(--hsag-ink);
}

.hsag-message a {
	color: inherit;
	font-weight: 600;
}

/* -------------------------------------------------------------------------
 * Tabs
 * ---------------------------------------------------------------------- */

.hsag-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-bottom: 26px;
	border: 1px solid var(--hsag-border);
	border-radius: var(--hsag-radius-control);
	overflow: hidden;
}

.hsag-tab {
	padding: 14px 12px;
	background: #fff;
	color: var(--hsag-ink);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.hsag-tab + .hsag-tab {
	border-left: 1px solid var(--hsag-border);
}

.hsag-tab:hover {
	background: var(--hsag-primary-soft);
}

.hsag-tab.is-active {
	background: var(--hsag-primary);
	color: #fff;
}

.hsag-tabpanel {
	display: none;
}

.hsag-tabpanel.is-active {
	display: block;
}

/* -------------------------------------------------------------------------
 * Form controls
 * ---------------------------------------------------------------------- */

.hsag-field {
	margin-bottom: 20px;
}

.hsag-label {
	display: block;
	margin-bottom: 9px;
	color: var(--hsag-ink);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.hsag-input-wrap {
	position: relative;
}

.hsag-input {
	width: 100%;
	height: 50px;
	padding: 0 16px;
	border: 1px solid var(--hsag-border);
	border-radius: var(--hsag-radius-control);
	background: #fff;
	color: var(--hsag-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.hsag-input--password {
	padding-right: 52px;
}

.hsag-select {
	padding-right: 46px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5 7 7.5l6-6' fill='none' stroke='%236b7a82' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 18px center;
	cursor: pointer;
}

/* Nothing chosen yet: read as a placeholder, like the text inputs above. */
.hsag-select:invalid {
	color: #8f979d;
}

.hsag-select option {
	color: var(--hsag-ink);
}

.hsag-input::placeholder {
	color: #8f979d;
	opacity: 1;
}

.hsag-input:hover {
	border-color: #a9b9c2;
}

.hsag-input:focus {
	outline: none;
	border-color: var(--hsag-secondary);
	box-shadow: 0 0 0 2px var(--hsag-focus-ring);
}

.hsag-input[aria-invalid="true"] {
	border-color: var(--hsag-error);
}

.hsag-hint {
	margin-top: 6px;
	color: var(--hsag-muted);
	font-size: 13px;
}

.hsag-reveal {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--hsag-muted);
	cursor: pointer;
}

.hsag-reveal svg {
	width: 22px;
	height: 22px;
}

.hsag-reveal:hover {
	color: var(--hsag-primary);
	background: var(--hsag-primary-soft);
}

.hsag-reveal[aria-pressed="true"] {
	color: var(--hsag-primary);
}

.hsag-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.hsag-link {
	color: var(--hsag-secondary);
	font-size: 14.5px;
	text-decoration: none;
}

.hsag-link:hover {
	color: var(--hsag-secondary);
	text-decoration: underline;
}

/* Checkboxes */

.hsag-consent {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 24px;
}

.hsag-check {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: start;
	gap: 10px;
}

.hsag-check--inline {
	align-items: center;
	margin: 0;
}

.hsag-check input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 3px 0 0;
	flex: none;
	accent-color: var(--hsag-primary);
	cursor: pointer;
}

.hsag-check--inline input[type="checkbox"] {
	margin-top: 0;
}

.hsag-check label {
	color: var(--hsag-ink);
	font-size: 14.5px;
	line-height: 1.5;
	cursor: pointer;
}

.hsag-required {
	color: var(--hsag-error);
}

/* Submit */

.hsag-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	padding: 14px 20px;
	border: 0;
	border-radius: var(--hsag-radius-control);
	background: var(--hsag-button);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.1s ease;
}

.hsag-submit svg {
	width: 20px;
	height: 20px;
	flex: none;
}

.hsag-submit:hover {
	background: var(--hsag-button-hover);
}

.hsag-submit:active {
	transform: translateY(1px);
}

.hsag-submit[aria-disabled="true"] {
	opacity: 0.65;
	cursor: progress;
}

.hsag-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 18px;
	color: var(--hsag-ink);
	font-size: 14px;
}

.hsag-secure svg {
	width: 16px;
	height: 16px;
	flex: none;
}

/* -------------------------------------------------------------------------
 * Focus visibility
 * ---------------------------------------------------------------------- */

.hsag-body a:focus-visible,
.hsag-body button:focus-visible,
.hsag-body input:focus-visible,
.hsag-body [tabindex]:focus-visible {
	outline: 1px solid var(--hsag-secondary);
	outline-offset: 0px;
	border-radius: 4px;
}

.hsag-input:focus-visible {
	outline-width: 2px;
	outline-offset: 0;
}

/* -------------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------------- */

@media (max-width: 1100px) {
	.hsag-panel {
		padding: clamp(24px, 3.6vw, 40px);
	}

	.hsag-product {
		margin-bottom: 18px;
		padding-top: 20px;
	}
}

@media (max-width: 880px) {
	.hsag-card {
		grid-template-columns: 1fr;
	}

	.hsag-panel--promo {
		border-right: 0;
		border-bottom: 1px solid rgba(18, 51, 58, 0.1);
	}

	.hsag-promo-heading {
		font-size: clamp(30px, 6.4vw, 50px);
	}

	.hsag-auth-heading {
		font-size: clamp(26px, 5.4vw, 36px);
	}

	.hsag-product {
		max-width: 520px;
		margin-inline: auto;
	}
}

@media (max-width: 600px) {
	.hsag-body {
		padding: 12px;
	}

	.hsag-panel {
		padding: 26px 20px 30px;
	}

	.hsag-badge {
		align-self: stretch;
		justify-content: center;
		padding: 12px 18px;
		font-size: 13px;
	}

	.hsag-features {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.hsag-feature + .hsag-feature {
		padding-top: 18px;
		border-left: 0;
		border-top: 1px solid rgba(18, 51, 58, 0.14);
	}

	.hsag-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.hsag-tab {
		padding: 14px 8px;
		font-size: 13px;
		letter-spacing: 0.05em;
	}

	.hsag-submit {
		letter-spacing: 0.05em;
	}
}

/* -------------------------------------------------------------------------
 * Preferences
 * ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.hsag-body * {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

@media (prefers-contrast: more) {
	.hsag-input,
	.hsag-tabs,
	.hsag-offer {
		border-color: var(--hsag-ink);
	}

	.hsag-auth-intro,
	.hsag-feature__text,
	.hsag-secure,
	.hsag-hint {
		color: var(--hsag-ink);
	}
}


.hsag-badge {
    margin-top: 22px !important;
    margin-bottom: 16px !important;
} 

.hsag-logo--auth {
    margin-bottom: 11px;
}


.hsag-body img {
    margin-bottom: 10px;
}

.hsag-secure {
    padding-top: 15px;
}

span.hsag-feature__text {
    max-width: 100px;
}