/**
 * Public acquisition shell (landing / sign-in / buy) — demo parity.
 */

.cft-portal--auth {
	min-height: 100vh;
	background: var(--surface);
}

.cft-auth-home {
	position: absolute;
	top: 30px;
	left: 30px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: #000;
	text-decoration: none;
}

.cft-auth-home svg {
	display: block;
	width: 32px;
	height: 32px;
}

.cft-auth-home:hover,
.cft-auth-home:focus {
	color: #000;
}

.cft-auth-home:focus-visible {
	outline: 2px solid #000;
	outline-offset: 3px;
}

.cft-portal--auth .cft-portal__top,
.cft-portal--auth .cft-portal__nav,
.cft-portal--auth .cft-portal__body > .cft-portal__nav {
	display: none !important;
}

.cft-auth {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	min-height: 100vh;
}

.cft-auth__hero {
	position: relative;
	background-color: var(--cft-navy-800);
	background-image:
		linear-gradient(160deg, rgba(10, 38, 56, 0.72), rgba(10, 38, 56, 0.88)),
		url("../img/auth-hero.jpg");
	background-size: cover;
	background-position: center;
	padding: 56px 60px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	color: #fff;
	min-height: 560px;
}

.cft-auth__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: #fff;
}

.cft-portal .cft-auth__hero a.cft-auth__brand,
.cft-portal .cft-auth__hero a.cft-auth__brand:hover,
.cft-portal .cft-auth__hero a.cft-auth__brand:focus,
.cft-portal .cft-auth__hero a.cft-auth__brand:visited {
	color: #fff;
	text-decoration: none;
}

.cft-auth__brand img {
	height: 34px;
	width: auto;
	display: block;
}

.cft-auth__brand-name {
	font-weight: 700;
	letter-spacing: 0.16em;
	font-size: 16px;
}

.cft-auth__kicker {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cft-safety-orange);
	margin-bottom: 18px;
}

.cft-auth__hero h1 {
	font-size: clamp(2rem, 3.2vw, 3rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
	font-weight: 600;
	margin: 0 0 18px;
	max-width: 15ch;
	color: #fff;
}

.cft-auth__hero-lead {
	font-size: 18px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.82);
	max-width: 42ch;
	margin: 0;
}

.cft-auth__stats {
	display: flex;
	gap: 28px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
	letter-spacing: 0.04em;
}

.cft-auth__stats strong {
	color: #fff;
	font-size: 22px;
	font-weight: 600;
	display: block;
	font-family: var(--font-primary);
}

.cft-auth__panel {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 40px 40px 56px;
	background: var(--surface);
	overflow: auto;
}

.cft-auth__panel-inner {
	width: 100%;
	max-width: 420px;
}

.cft-auth__view {
	display: none;
}

.cft-auth__view.is-active {
	display: block;
}

.cft-auth__eyebrow {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-subtle);
	margin-bottom: 8px;
}

.cft-auth__title {
	font-size: 26px;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 0 0 6px;
	color: var(--text);
}

.cft-auth__title--sm {
	font-size: 23px;
}

.cft-auth__lead {
	color: var(--text-muted);
	font-size: 14px;
	margin: 0 0 22px;
	line-height: 1.5;
}

.cft-path-cards {
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.cft-path-card {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	width: 100%;
	padding: 16px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-md);
	background: var(--surface);
	cursor: pointer;
	text-align: left;
	font-family: var(--font-primary);
	color: inherit;
	height: auto;
	min-height: 0;
	box-sizing: border-box;
	white-space: normal;
	transition: border-color var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard);
}

.cft-path-card:hover,
.cft-path-card:focus-visible {
	border-color: var(--cft-control-navy);
	background: var(--surface-2);
	outline: none;
}

.cft-path-card__icon {
	display: inline-flex;
	color: var(--cft-control-navy);
	margin-top: 1px;
	flex: none;
}

.cft-path-card__icon svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cft-path-card__body {
	flex: 1 1 auto;
	min-width: 0;
}

.cft-path-card__title,
.cft-path-card__desc {
	white-space: normal;
	overflow-wrap: break-word;
}

.cft-path-card__title {
	display: block;
	font-weight: 600;
	font-size: 14.5px;
	margin-bottom: 3px;
}

.cft-path-card__desc {
	display: block;
	font-size: 12.5px;
	color: var(--text-muted);
	line-height: 1.45;
}

.cft-path-card__chevron {
	display: inline-flex;
	flex: none;
	color: var(--text-subtle);
	margin-top: 2px;
}

.cft-auth__signin-hint {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 20px;
	font-size: 13.5px;
	color: var(--text-muted);
}

.cft-auth__signin-hint a,
.cft-auth__signin-hint a:visited,
.cft-auth__signin-hint button,
.cft-auth__linkish {
	background: none;
	border: 0;
	color: var(--cft-control-navy);
	font-weight: 600;
	font-size: 13.5px;
	cursor: pointer;
	font-family: var(--font-primary);
	text-decoration: underline;
	padding: 0;
}

.cft-auth__demo {
	margin-top: 26px;
	padding-top: 20px;
	border-top: 1px solid var(--cft-grey-100);
}

.cft-auth__demo-label {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--text-subtle);
	margin-bottom: 10px;
}

.cft-auth__demo-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.cft-auth__demo-grid a {
	flex: 1;
	min-width: calc(50% - 4px);
	padding: 8px 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text);
	font-size: 12px;
	font-weight: 600;
	font-family: var(--font-primary);
	text-align: center;
	text-decoration: none;
}

.cft-auth__demo-grid a:hover {
	background: var(--surface-2);
	border-color: var(--border-strong);
}

.cft-auth__back,
a.cft-auth__back,
a.cft-auth__back:visited,
a.cft-auth__back:hover {
	background: transparent;
	border: 0;
	color: var(--text-muted);
	font-size: 12.5px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 14px;
	font-family: var(--font-primary);
	padding: 0;
	text-decoration: none;
}

.cft-auth__notice {
	margin-bottom: 14px;
	padding: 10px 12px;
	border-left: 3px solid var(--cft-signal-red);
	background: rgba(201, 42, 42, 0.07);
	border-radius: var(--radius-sm);
	font-size: 12.5px;
	color: var(--cft-signal-red);
}

.cft-auth__notice--ok {
	border-left-color: #1d6b3a;
	background: #e8f5ec;
	color: #1d6b3a;
}

.cft-auth__catalog-link,
a.cft-auth__catalog-link:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: fit-content;
	margin: 18px auto 0;
	padding: 12px 20px;
	border: 1px solid var(--cft-operational-orange, #ef803f);
	border-radius: var(--radius-md);
	background: var(--cft-operational-orange, #ef803f);
	color: #fff;
	font-family: var(--font-primary);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.cft-auth__catalog-link:hover,
.cft-auth__catalog-link:focus-visible {
	color: #fff;
	filter: brightness(1.08);
	text-decoration: none;
}

.cft-auth__catalog-link svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

/* Catalog selection on the buy step. */
.cft-sel {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface);
}

.cft-sel__line {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	gap: 12px;
	align-items: baseline;
	padding: 10px 12px;
	font-size: 13.5px;
}

.cft-sel__line + .cft-sel__line {
	border-top: 1px solid var(--cft-grey-100);
}

.cft-sel__name {
	font-weight: 600;
	color: var(--text);
}

.cft-sel__qty {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-muted);
	white-space: nowrap;
}

.cft-sel__amount {
	font-weight: 600;
	white-space: nowrap;
}

.cft-sel__edit {
	margin: 0 0 14px;
	font-size: 12.5px;
}

.cft-sel__edit a {
	color: var(--cft-control-navy);
	font-weight: 600;
}

.cft-sel__hint {
	margin: -6px 0 14px;
	font-size: 12.5px;
	color: var(--text-muted);
}

.cft-pay-toggle button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.cft-field-label {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--text-subtle);
	display: block;
	margin-bottom: 5px;
}

.cft-auth .cft-field {
	margin-bottom: 12px;
}

.cft-auth .cft-field input,
.cft-auth .cft-field select {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 13px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	font-family: var(--font-primary);
	font-size: 14px;
	background: var(--surface);
	color: var(--text);
}

.cft-auth .cft-field select {
	appearance: none;
	cursor: pointer;
	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 fill='%2370899b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
}

.cft-price-box {
	margin: 16px 0;
	padding: 14px 16px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	display: flex;
	flex-direction: column;
	gap: 7px;
	font-size: 13px;
}

.cft-price-box__row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.cft-price-box__row--muted {
	color: var(--text-muted);
}

.cft-price-box__rule {
	height: 1px;
	background: var(--cft-grey-100);
	margin: 3px 0;
}

.cft-price-box__total {
	font-weight: 600;
	font-size: 15px;
}

.cft-auth__section-label {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--text-subtle);
	margin: 4px 0 10px;
}

.cft-pay-toggle {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
}

.cft-pay-toggle button {
	flex: 1;
	padding: 10px 12px;
	border-radius: var(--radius-md);
	border: 1px solid var(--border);
	background: var(--surface);
	font-family: var(--font-primary);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	color: var(--text);
}

.cft-pay-toggle button.is-active {
	border-color: var(--cft-control-navy);
	background: var(--cft-control-navy);
	color: #fff;
}

.cft-auth__submit {
	width: 100%;
	margin-top: 8px;
}

.cft-auth__error {
	margin-bottom: 14px;
	padding: 10px 12px;
	border-left: 3px solid var(--cft-signal-red);
	background: rgba(201, 42, 42, 0.07);
	border-radius: var(--radius-sm);
	font-size: 12.5px;
	color: var(--cft-signal-red);
}

.cft-auth__error[hidden] {
	display: none !important;
}

.cft-auth__corporate-only[hidden] {
	display: none !important;
}

.cft-guide-help {
	display: none;
}

.cft-guide-help .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.cft-portal--auth .cft-auth__signin-hint button.cft-guide-help {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin: 0 0 0 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--cft-operational-orange, #ef803f);
	color: #fff;
	font: 700 11px/1 var(--font-primary, sans-serif);
	text-decoration: none;
	box-shadow: none;
	cursor: pointer;
}

.cft-portal--auth .cft-auth__signin-hint button.cft-guide-help:hover,
.cft-portal--auth .cft-auth__signin-hint button.cft-guide-help:focus-visible {
	background: var(--cft-operational-orange, #ef803f);
	color: #fff;
	text-decoration: none;
	filter: brightness(0.94);
}

.cft-guide-help-modal[hidden] {
	display: none !important;
}

.cft-portal--auth[data-auth-view="home"] .cft-guide-help-modal {
	position: fixed;
	z-index: 35;
	top: 0;
	left: 0;
	bottom: 0;
	width: calc(100% * 1.05 / 2);
	min-width: 280px;
	display: flex;
	pointer-events: none;
}

.cft-guide-help-modal__panel {
	pointer-events: auto;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	background: #fff;
	color: #1c2834;
	box-shadow: 12px 0 36px rgba(8, 28, 42, 0.22);
}

.cft-guide-help-modal__bar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex: 0 0 auto;
	padding: 10px 20px;
	background: var(--cft-navy-800, #0d334d);
	color: #fff;
}

.cft-guide-help-modal__en {
	margin: 0;
	padding: 4px 8px;
	border: 0;
	border-radius: 4px;
	background: #fff;
	color: var(--cft-navy-800, #0d334d);
	font: 700 12px/1 var(--font-primary, sans-serif);
	letter-spacing: 0.02em;
	cursor: pointer;
}

.cft-guide-help-modal__en:hover,
.cft-guide-help-modal__en:focus-visible {
	background: #fff;
	color: var(--cft-navy-800, #0d334d);
	filter: brightness(0.96);
}

.cft-guide-help-modal__close {
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.cft-guide-help-modal__close:hover {
	background: rgba(255, 255, 255, 0.12);
}

.cft-guide-help-modal__body {
	flex: 1 1 auto;
	overflow: auto;
	padding: 8px 22px 32px;
}

.cft-guide-help-modal__body::after {
	content: "";
	display: block;
	height: calc(100vh - 72px);
}

.cft-guide-help__lang + .cft-guide-help__lang {
	margin: 28px -22px 0;
	padding: 22px 22px 0;
	border-top: 12px solid #c5ced6;
}

.cft-guide-help-modal .guide-section {
	margin: 0;
}

.cft-guide-help-modal h2 {
	margin: 18px 0 10px;
	color: #c65911;
	font-size: 22px;
	line-height: 1.2;
}

.cft-guide-help-modal p {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.5;
}

.cft-guide-help-modal .step {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 10px 0;
	padding: 12px 14px;
	border: 1px solid #dde3ea;
	background: #fff;
}

.cft-guide-help-modal .step img {
	width: 34px;
	height: 42px;
	flex: 0 0 34px;
}

.cft-guide-help-modal .step p {
	margin: 0;
}

.cft-guide-help-modal figure {
	margin: 14px 0 18px;
	overflow: hidden;
	border: 1px solid #cfcfcf;
	background: #fff;
}

.cft-guide-help-modal figure.sign-in-shot {
	text-align: left;
}

.cft-guide-help-modal figure img {
	/* Guide shots are the full auth screen. Show the white panel, without the empty area under the form. */
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: none;
	margin: 0;
	border: 0;
	background: #fff;
	object-fit: cover;
	object-view-box: inset(0% 0% 42% 52.5%);
}

.cft-guide-help-modal figcaption {
	margin-top: 6px;
	text-align: left;
	font-size: 13px;
	font-style: italic;
	color: #5c6b7a;
}

@media (max-width: 960px) {
	.cft-auth {
		grid-template-columns: 1fr;
	}

	.cft-auth__hero {
		min-height: 280px;
		padding: 32px 28px;
	}

	.cft-auth__panel {
		padding: 28px 22px 48px;
	}

	.cft-portal--auth[data-auth-view="home"] .cft-guide-help-modal {
		width: 50%;
		min-width: 0;
		max-width: none;
	}
}
