/**
 * GFCH auth forms — aligned with customer dashboard (gpv-*) UI.
 * Used by login, register, and forgot-password shortcodes.
 */

.gfch-auth {
	--gfch-sl-50: #f8fafc;
	--gfch-sl-100: #f1f5f9;
	--gfch-sl-200: #e2e8f0;
	--gfch-sl-400: #94a3b8;
	--gfch-sl-500: #64748b;
	--gfch-sl-600: #475569;
	--gfch-sl-700: #334155;
	--gfch-sl-800: #1e293b;
	--gfch-sl-900: #0f172a;
	/* Standalone tokens — not tied to Elementor global styles */
	--gfch-ui-primary: #006719;
	--gfch-ui-on-primary: #ffffff;
	--gfch-r-xl: 18px;
	--gfch-r-lg: 12px;
	--gfch-r-md: 10px;
	--gfch-r-field: 24px;
	--gfch-r-btn: 9999px;
	--gfch-r-full: 9999px;
	--gfch-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
	--gfch-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
	--gfch-font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	--gfch-font-heading: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	--gfch-fs-eyebrow: 12px;
	--gfch-fs-heading: 28px;
	--gfch-fs-subtitle: 15px;
	--gfch-fs-label: 12px;
	--gfch-fs-input: 15px;
	--gfch-fs-btn: 15px;
	--gfch-fs-footer: 14px;
	--gfch-shell-max: 640px;
	--gfch-shell-narrow-max: 440px;
	--gfch-card-pad-y: 24px;
	--gfch-card-pad-x: 24px;
	--gfch-tile-gap: 12px;

	box-sizing: border-box;
	width: 100%;
	max-width: var(--gfch-shell-max);
	margin: 0 auto;
	padding: 0;
	font-family: var(--gfch-font) !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	color: var(--gfch-sl-700) !important;
	background: transparent;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: visible;
}

.gfch-auth *,
.gfch-auth *::before,
.gfch-auth *::after {
	box-sizing: border-box;
}

/* Outer content shell — centered card, not full-bleed */
.gfch-auth__shell {
	width: 100%;
	max-width: var(--gfch-shell-max);
	margin: 0 auto;
	padding-left: 0;
	padding-right: 0;
}

.gfch-auth__shell--narrow {
	width: 100%;
	max-width: var(--gfch-shell-narrow-max);
	margin-left: auto;
	margin-right: auto;
}

/* Login / reset sit inside the narrower shell */
.gfch-auth:has(.gfch-auth__shell--narrow) {
	max-width: var(--gfch-shell-narrow-max);
}

.gfch-auth__header {
	margin: 0 0 16px;
	padding: 0;
}

.gfch-auth__eyebrow {
	margin: 0 0 8px !important;
	font-family: var(--gfch-font) !important;
	font-size: var(--gfch-fs-eyebrow) !important;
	font-weight: 700 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	color: var(--gfch-ui-primary) !important;
}

/*
 * Auth page title — independent of Elementor heading styles.
 */
.gfch-auth h1.gfch-auth__heading,
.gfch-auth .gfch-auth__heading,
.gfch-auth h1.gfch-auth__title,
.gfch-auth .gfch-auth__title {
	all: unset;
	display: block !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	padding: 0 !important;
	font-family: var(--gfch-font-heading) !important;
	font-size: var(--gfch-fs-heading) !important;
	font-weight: 800 !important;
	font-style: normal !important;
	line-height: 1.2 !important;
	letter-spacing: -0.02em !important;
	text-transform: none !important;
	text-decoration: none !important;
	color: var(--gfch-sl-900) !important;
	background: none !important;
	border: 0 !important;
	max-width: none !important;
}

.gfch-auth h1.gfch-auth__heading.gfch-auth__title--nowrap,
.gfch-auth .gfch-auth__heading.gfch-auth__title--nowrap,
.gfch-auth h1.gfch-auth__title.gfch-auth__title--nowrap {
	white-space: nowrap !important;
}

.gfch-auth__subtitle {
	margin: 10px 0 0 !important;
	font-family: var(--gfch-font) !important;
	font-size: var(--gfch-fs-subtitle) !important;
	font-weight: 500 !important;
	line-height: 1.55 !important;
	color: var(--gfch-sl-600) !important;
	max-width: none;
}

/* Inner form card — full width of the shell */
.gfch-auth__card {
	width: 100%;
	max-width: 100%;
	background: #fff;
	border: 1px solid var(--gfch-sl-200);
	border-radius: var(--gfch-r-xl);
	box-shadow: var(--gfch-shadow-sm);
	padding: var(--gfch-card-pad-y) var(--gfch-card-pad-x);
	box-sizing: border-box;
}

.gfch-auth__card + .gfch-auth__card {
	margin-top: var(--gfch-tile-gap);
}

.gfch-auth__form.ulm-signup-form,
.gfch-auth .ulm-signup-form {
	display: flex;
	flex-direction: column;
	gap: var(--gfch-tile-gap);
	width: 100%;
}

.gfch-auth__form.ulm-signup-form > .gfch-auth__card + .gfch-auth__card,
.gfch-auth .ulm-signup-form > .gfch-auth__card + .gfch-auth__card {
	margin-top: 0;
}

.gfch-auth__card-title,
.gfch-auth h4.gfch-auth__card-title,
.gfch-auth h4.ulm-signup-form__title,
.gfch-auth .ulm-signup-form__title,
.gfch-auth .gfch-auth__card-title {
	all: unset;
	display: block !important;
	box-sizing: border-box !important;
	margin: 0 0 14px !important;
	padding: 0 0 10px !important;
	font-family: var(--gfch-font-heading) !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	font-style: normal !important;
	line-height: 1.3 !important;
	letter-spacing: -0.01em !important;
	text-transform: none !important;
	text-decoration: none !important;
	color: var(--gfch-sl-900) !important;
	background: none !important;
	border: 0 !important;
	border-bottom: 1px solid var(--gfch-sl-100) !important;
	max-width: none !important;
}

/* Register + login field labels share the same standalone type scale */
.gfch-auth__field label,
.gfch-auth .gpv-address__field label,
.gfch-auth .ulm-signup-form label,
.gfch-auth .ulm-signin-form label {
	margin: 0 !important;
	font-family: var(--gfch-font) !important;
	font-size: var(--gfch-fs-label) !important;
	font-weight: 700 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	color: var(--gfch-sl-600) !important;
	background: none !important;
	border: 0 !important;
}

.gfch-auth__field label .ulm-req,
.gfch-auth .ulm-req,
.gfch-auth .gpv-address__field label .ulm-req {
	color: #b91c1c !important;
	font-weight: 700 !important;
	margin-left: 2px !important;
}

.gfch-auth__field label .ulm-opt,
.gfch-auth .ulm-opt,
.gfch-auth .gpv-address__field label .ulm-opt {
	color: var(--gfch-sl-500) !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	font-size: 12px !important;
	margin-left: 4px !important;
}

.gfch-auth__form-grid,
.gfch-auth .gpv-address__form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 14px;
	overflow: visible;
}

.gfch-auth__shell--narrow .gfch-auth__form-grid {
	grid-template-columns: 1fr;
}

.gfch-auth__field,
.gfch-auth .gpv-address__field {
	display: grid;
	gap: 5px;
	align-content: start;
}

.gfch-auth__field--full,
.gfch-auth .gpv-address__field--full {
	grid-column: 1 / -1;
}

.gfch-auth__field input,
.gfch-auth__field select,
.gfch-auth__field textarea,
.gfch-auth__field .gfch-password-field,
.gfch-auth .gpv-address__field input,
.gfch-auth .gpv-address__field select,
.gfch-auth .gpv-address__field textarea,
.gfch-auth .gpv-address__field .gfch-password-field,
.gfch-auth input[type="text"],
.gfch-auth input[type="email"],
.gfch-auth input[type="password"],
.gfch-auth input[type="tel"],
.gfch-auth input[type="file"],
.gfch-auth select {
	width: 100% !important;
	min-height: 44px !important;
	margin: 0 !important;
	padding: 10px 16px !important;
	border: 1px solid var(--gfch-sl-200) !important;
	border-radius: var(--gfch-r-field) !important;
	background: #fff !important;
	color: var(--gfch-sl-800) !important;
	font-size: var(--gfch-fs-input) !important;
	font-family: var(--gfch-font) !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
}

.gfch-auth__field input:focus,
.gfch-auth__field select:focus,
.gfch-auth__field textarea:focus,
.gfch-auth__field .gfch-password-field:focus,
.gfch-auth .gpv-address__field input:focus,
.gfch-auth .gpv-address__field select:focus,
.gfch-auth input:focus,
.gfch-auth select:focus {
	outline: none !important;
	border-color: var(--gfch-ui-primary) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--gfch-ui-primary) 15%, transparent) !important;
}

.gfch-auth__field select,
.gfch-auth .gpv-address__field select,
.gfch-auth select {
	height: 44px !important;
	max-height: 44px !important;
	padding-right: 40px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	background-size: 16px !important;
	cursor: pointer;
}

.gfch-auth__field input:disabled,
.gfch-auth__field select:disabled,
.gfch-auth input:disabled,
.gfch-auth select:disabled {
	background-color: color-mix(in srgb, var(--gfch-sl-100) 85%, transparent) !important;
	color: var(--gfch-sl-600) !important;
	cursor: not-allowed !important;
}

/* Custom select — replaces native OS listbox */
.gfch-auth__select {
	position: relative;
	width: 100%;
}

.gfch-auth__select-native {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	min-height: 0 !important;
	max-height: none !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
	background: none !important;
	box-shadow: none !important;
}

.gfch-auth button.gfch-auth__select-trigger,
.gfch-auth .gfch-auth__select-trigger {
	display: flex !important;
	align-items: center !important;
	width: 100% !important;
	min-height: 44px !important;
	height: 44px !important;
	margin: 0 !important;
	padding: 10px 40px 10px 16px !important;
	border: 1px solid var(--gfch-sl-200) !important;
	border-radius: var(--gfch-r-field) !important;
	background-color: #fff !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	background-size: 16px !important;
	color: var(--gfch-sl-800) !important;
	font: 500 var(--gfch-fs-input)/1.4 var(--gfch-font) !important;
	font-size: var(--gfch-fs-input) !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-align: left !important;
	box-shadow: none !important;
	cursor: pointer !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

.gfch-auth__select-trigger.is-placeholder {
	color: var(--gfch-sl-500) !important;
}

.gfch-auth__select-trigger:focus {
	outline: none !important;
	border-color: var(--gfch-ui-primary) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--gfch-ui-primary) 15%, transparent) !important;
}

.gfch-auth__select.is-open .gfch-auth__select-trigger {
	border-color: var(--gfch-ui-primary) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--gfch-ui-primary) 15%, transparent) !important;
}

.gfch-auth__select.is-disabled .gfch-auth__select-trigger,
.gfch-auth__select-trigger:disabled {
	background-color: color-mix(in srgb, var(--gfch-sl-100) 85%, transparent) !important;
	color: var(--gfch-sl-600) !important;
	cursor: not-allowed !important;
}

.gfch-auth__select-menu {
	position: absolute;
	z-index: 40;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	margin: 0;
	padding: 6px;
	list-style: none;
	max-height: 240px;
	overflow-y: auto;
	overflow-x: hidden;
	background: #fff;
	border: 1px solid var(--gfch-sl-200);
	border-radius: 14px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
	font: 500 var(--gfch-fs-input)/1.4 var(--gfch-font) !important;
	font-size: var(--gfch-fs-input) !important;
}

.gfch-auth .gfch-auth__select-option,
.gfch-auth__select-option {
	display: block !important;
	padding: 8px 12px !important;
	border-radius: 10px !important;
	color: var(--gfch-sl-800) !important;
	font: 500 var(--gfch-fs-input)/1.4 var(--gfch-font) !important;
	font-size: var(--gfch-fs-input) !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	cursor: pointer;
}

.gfch-auth__select-option:hover,
.gfch-auth__select-option:focus {
	background: var(--gfch-sl-100);
	outline: none;
}

.gfch-auth__select-option.is-selected {
	background: color-mix(in srgb, var(--gfch-ui-primary) 10%, #fff);
	color: var(--gfch-ui-primary) !important;
	font-weight: 500 !important;
}

.gfch-auth__select-option.is-placeholder {
	color: var(--gfch-sl-500) !important;
}

.gfch-auth__select-option.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.gfch-auth__card,
.gfch-auth__field,
.gfch-auth .gpv-address__field {
	overflow: visible;
}

.gfch-auth .gfch-password-field-wrap {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	overflow: visible !important;
}

/* Keep text clear of eye + password-manager icons */
.gfch-auth .gfch-password-field-wrap > .gfch-password-field,
.gfch-auth .gfch-password-field-wrap > input.gfch-password-field,
.gfch-auth .gfch-password-field-wrap > input[type="password"],
.gfch-auth .gfch-password-field-wrap > input[type="text"] {
	padding-right: 4.5rem !important;
}

/* Pin eye to the input (not the wrap height if other nodes are nearby) */
.gfch-auth .gfch-password-field-wrap > .gfch-password-toggle,
.gfch-auth .gfch-password-field-wrap > button.gfch-password-toggle {
	position: absolute !important;
	top: 22px !important; /* ~half of 44px input */
	right: 12px !important;
	left: auto !important;
	bottom: auto !important;
	transform: translateY(-50%) !important;
	z-index: 5 !important;
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	min-height: 28px !important;
	padding: 0 !important;
	margin: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #0f172a !important;
	opacity: 1 !important;
	outline: none !important;
	box-shadow: none !important;
	filter: none !important;
	background: transparent !important;
	border: 0 !important;
	line-height: 0 !important;
}

.gfch-auth .gfch-password-toggle svg,
.gfch-auth button.gfch-password-toggle svg {
	stroke: #0f172a !important;
	color: #0f172a !important;
	width: 18px !important;
	height: 18px !important;
}

.gfch-auth .gfch-password-toggle:hover,
.gfch-auth button.gfch-password-toggle:hover {
	color: #000 !important;
	opacity: 1 !important;
	filter: none !important;
}

.gfch-auth .gfch-password-toggle:hover svg,
.gfch-auth button.gfch-password-toggle:hover svg {
	stroke: #000 !important;
}

.gfch-auth .gfch-password-toggle:focus,
.gfch-auth .gfch-password-toggle:focus-visible,
.gfch-auth button.gfch-password-toggle:focus,
.gfch-auth button.gfch-password-toggle:focus-visible {
	outline: 2px solid #0f172a !important;
	outline-offset: 1px !important;
	color: #0f172a !important;
	box-shadow: none !important;
}

/* Strength meter lives under the field, not inside the eye wrap */
.gfch-auth .gfch-reset-password-strength-wrap,
.gfch-auth .gfch-reset-password-strength {
	width: 100%;
	margin-top: 8px;
}

.gfch-auth .ulm-live-validation {
	margin-top: 6px;
}

.gfch-auth__actions {
	display: grid;
	gap: 10px;
	justify-items: stretch;
	margin-top: 18px;
}

.gfch-auth__btn,
.gfch-auth button.gfch-auth__btn,
.gfch-auth #btn-signin-submit,
.gfch-auth #btn-signup-submit,
.gfch-auth button.btn-sign-in,
.gfch-auth .btn.btn-sign-in {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	width: 100% !important;
	min-height: 48px !important;
	padding: 12px 22px !important;
	border-radius: var(--gfch-r-btn) !important;
	border: 1px solid var(--gfch-ui-primary) !important;
	background: var(--gfch-ui-primary) !important;
	background-image: none !important;
	color: var(--gfch-ui-on-primary) !important;
	font-family: var(--gfch-font) !important;
	font-size: var(--gfch-fs-btn) !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: 0.01em !important;
	text-transform: none !important;
	text-decoration: none !important;
	box-shadow: none !important;
	cursor: pointer !important;
}

.gfch-auth__btn:hover,
.gfch-auth button.gfch-auth__btn:hover,
.gfch-auth #btn-signin-submit:hover,
.gfch-auth #btn-signup-submit:hover,
.gfch-auth button.btn-sign-in:hover {
	filter: brightness(0.94);
	color: var(--gfch-ui-on-primary) !important;
	background: var(--gfch-ui-primary) !important;
}

.gfch-auth__btn:disabled,
.gfch-auth #btn-signin-submit:disabled,
.gfch-auth #btn-signup-submit:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	filter: none;
}

.gfch-auth__btn--ghost {
	background: #fff !important;
	border-color: var(--gfch-sl-200) !important;
	color: var(--gfch-ui-primary) !important;
}

.gfch-auth__btn--ghost:hover {
	border-color: var(--gfch-ui-primary) !important;
	color: var(--gfch-ui-primary) !important;
	filter: none;
}

.gfch-auth__btn .spinner,
.gfch-auth #btn-signin-submit .spinner,
.gfch-auth #btn-signup-submit .spinner {
	margin-left: 0;
	border-color: rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
}

.gfch-auth__link-row {
	display: flex;
	justify-content: flex-end;
	margin-top: 6px;
}

.gfch-auth__link-row a,
.gfch-auth__footer a {
	font-family: var(--gfch-font) !important;
	font-size: var(--gfch-fs-footer) !important;
	font-weight: 700 !important;
	color: var(--gfch-ui-primary) !important;
	text-decoration: none !important;
}

.gfch-auth__link-row a:hover,
.gfch-auth__footer a:hover {
	text-decoration: underline !important;
}

.gfch-auth__footer {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--gfch-sl-100);
	text-align: center;
	font-family: var(--gfch-font) !important;
	font-size: var(--gfch-fs-footer) !important;
	font-weight: 500 !important;
	color: var(--gfch-sl-600) !important;
}

.gfch-auth__footer span {
	margin-right: 4px;
	color: var(--gfch-sl-600) !important;
}

.gfch-auth__msg {
	font-size: 13px;
	line-height: 1.4;
	min-height: 0;
}

.gfch-auth__msg:empty {
	display: none;
}

.gfch-auth__msg--error {
	color: #b91c1c;
}

.gfch-auth__msg--ok {
	color: #16a34a;
}

.gfch-auth__notice {
	margin: 8px 0 0;
	padding: 12px 14px;
	border-radius: var(--gfch-r-lg);
	font-size: 13px;
	line-height: 1.45;
}

.gfch-auth__notice--warn {
	background: #fef3c7;
	border: 1px solid #fde68a;
	color: #92400e;
}

.gfch-auth__notice--error {
	background: #fff1f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
}

.gfch-auth__notice--ok {
	background: #dcfce7;
	border: 1px solid #bbf7d0;
	color: #15803d;
}

.gfch-auth .ulm-live-validation {
	min-height: 1.25em;
	margin-top: 2px;
	font-size: 12px;
	line-height: 1.3;
	color: var(--gfch-sl-500);
}

.gfch-auth .ulm-live-validation.ulm-ok {
	color: #16a34a;
	font-weight: 600;
}

.gfch-auth .ulm-live-validation.ulm-bad {
	color: #b91c1c;
	font-weight: 600;
}

.gfch-auth .ulm-live-validation.ulm-muted {
	color: var(--gfch-sl-500);
}

.gfch-auth .ulm-email-taken-banner {
	margin-top: 8px;
	padding: 12px 14px;
	border: 1px solid #fde68a;
	border-radius: var(--gfch-r-lg);
	background: #fef3c7;
	font-size: 13px;
	line-height: 1.45;
	color: #92400e;
}

.gfch-auth .ulm-email-taken-banner__text {
	margin: 0 0 8px;
}

.gfch-auth .ulm-email-taken-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	align-items: center;
}

.gfch-auth .ulm-email-taken-banner__link {
	display: inline-flex;
	align-items: center;
	padding: 7px 12px;
	border-radius: var(--gfch-r-full);
	background: var(--gfch-ui-primary);
	border: 1px solid var(--gfch-ui-primary);
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none !important;
}

.gfch-auth .ulm-email-taken-banner__dismiss {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	background: var(--gfch-ui-primary);
	border: 1px solid var(--gfch-ui-primary);
	border-radius: var(--gfch-r-full);
	padding: 7px 12px;
	font-size: 12px;
	font-weight: 700;
	color: #fff !important;
	width: auto;
}

.gfch-auth .ulm-email-taken-banner__dismiss:hover {
	filter: brightness(0.95);
	color: #fff !important;
}

/* File upload — match dashboard soft inputs */
.gfch-auth #file-new-license {
	display: block;
	width: 100%;
	position: relative;
	min-height: 48px !important;
	padding: 12px 110px 12px 16px !important;
	border: 1px solid var(--gfch-sl-200) !important;
	border-radius: var(--gfch-r-field) !important;
	background: #fff !important;
	color: var(--gfch-sl-800);
	cursor: pointer;
	font-size: 14px;
}

.gfch-auth #file-new-license::-webkit-file-upload-button {
	visibility: hidden;
	width: 0;
}

.gfch-auth #file-new-license::before {
	content: "Select file";
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	background: var(--gfch-sl-100);
	border: 1px solid var(--gfch-sl-200);
	padding: 6px 10px;
	line-height: 1.2;
	color: var(--gfch-sl-600);
	border-radius: 8px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.gfch-auth #file-new-license:hover::before {
	border-color: var(--gfch-ui-primary);
	color: var(--gfch-ui-primary);
}

.gfch-auth #file-new-license:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}

.gfch-auth #file-uploader-image-preview {
	display: none;
	margin-top: 0.75rem;
	max-width: 100%;
	border-radius: var(--gfch-r-field);
	border: 1px solid var(--gfch-sl-200);
}

.gfch-auth__actions > div:has(iframe),
.gfch-auth__actions .g-recaptcha {
	margin: 0 !important;
	transform-origin: left top;
	max-width: 100%;
	overflow: hidden;
}

/* ---------- Tablet ---------- */
@media screen and (max-width: 1024px) {
	.gfch-auth {
		--gfch-fs-heading: 26px;
		--gfch-fs-subtitle: 14px;
		--gfch-card-pad-y: 20px;
		--gfch-card-pad-x: 20px;
		--gfch-tile-gap: 10px;
		padding: 0;
	}

	.gfch-auth__shell,
	.gfch-auth__shell--narrow {
		width: 100%;
		max-width: 100%;
	}
}

/* ---------- Small tablet / large phone ---------- */
@media screen and (max-width: 820px) {
	.gfch-auth {
		--gfch-fs-heading: 24px;
		--gfch-fs-subtitle: 14px;
		--gfch-fs-input: 15px;
		--gfch-fs-btn: 15px;
		--gfch-card-pad-y: 20px;
		--gfch-card-pad-x: 18px;
	}

	.gfch-auth__form-grid,
	.gfch-auth .gpv-address__form-grid {
		grid-template-columns: 1fr !important;
		gap: 12px;
	}

	.gfch-auth__field--full,
	.gfch-auth .gpv-address__field--full {
		grid-column: 1 / -1;
	}

	.gfch-auth__card {
		border-radius: 14px;
	}

	.gfch-auth h1.gfch-auth__heading.gfch-auth__title--nowrap,
	.gfch-auth .gfch-auth__heading.gfch-auth__title--nowrap,
	.gfch-auth h1.gfch-auth__title.gfch-auth__title--nowrap {
		white-space: normal !important;
	}

	.gfch-auth .ulm-email-taken-banner__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.gfch-auth .ulm-email-taken-banner__link,
	.gfch-auth .ulm-email-taken-banner__dismiss {
		justify-content: center;
		text-align: center;
		width: 100%;
	}
}

/* ---------- Mobile ---------- */
@media screen and (max-width: 640px) {
	.gfch-auth {
		--gfch-fs-eyebrow: 11px;
		--gfch-fs-heading: 22px;
		--gfch-fs-subtitle: 13px;
		--gfch-fs-label: 11px;
		--gfch-fs-input: 16px; /* iOS: avoid zoom on focus */
		--gfch-fs-btn: 15px;
		--gfch-fs-footer: 13px;
		--gfch-r-field: 18px;
		--gfch-card-pad-y: 16px;
		--gfch-card-pad-x: 14px;
		--gfch-tile-gap: 10px;
		padding: 0;
	}

	.gfch-auth__shell,
	.gfch-auth__shell--narrow {
		width: 100%;
		max-width: 100%;
		padding-left: 0;
		padding-right: 0;
	}

	.gfch-auth__header {
		margin: 0 0 12px;
		padding: 0;
	}

	.gfch-auth__subtitle {
		max-width: none;
	}

	.gfch-auth__card {
		border-radius: 12px;
	}

	.gfch-auth__card-title,
	.gfch-auth h4.gfch-auth__card-title,
	.gfch-auth h4.ulm-signup-form__title,
	.gfch-auth .ulm-signup-form__title,
	.gfch-auth .gfch-auth__card-title {
		font-size: 15px !important;
		margin-bottom: 12px !important;
	}

	.gfch-auth__field input,
	.gfch-auth__field select,
	.gfch-auth__field textarea,
	.gfch-auth__field .gfch-password-field,
	.gfch-auth .gpv-address__field input,
	.gfch-auth .gpv-address__field select,
	.gfch-auth input[type="text"],
	.gfch-auth input[type="email"],
	.gfch-auth input[type="password"],
	.gfch-auth input[type="tel"],
	.gfch-auth select {
		min-height: 46px !important;
		font-size: 16px !important;
		padding: 11px 14px !important;
	}

	.gfch-auth .gfch-password-field-wrap > .gfch-password-field,
	.gfch-auth .gfch-password-field-wrap > input.gfch-password-field,
	.gfch-auth .gfch-password-field-wrap > input[type="password"],
	.gfch-auth .gfch-password-field-wrap > input[type="text"] {
		padding-right: 4.5rem !important;
	}

	.gfch-auth .gfch-password-field-wrap > .gfch-password-toggle,
	.gfch-auth .gfch-password-field-wrap > button.gfch-password-toggle {
		top: 23px !important;
	}

	.gfch-auth__btn,
	.gfch-auth button.gfch-auth__btn,
	.gfch-auth #btn-signin-submit,
	.gfch-auth #btn-signup-submit,
	.gfch-auth button.btn-sign-in,
	.gfch-auth .btn.btn-sign-in {
		min-height: 48px !important;
		width: 100% !important;
		font-size: 15px !important;
	}

	.gfch-auth__footer {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 4px 6px;
		line-height: 1.4;
	}

	.gfch-auth__link-row {
		justify-content: flex-start;
	}

	.gfch-auth #file-new-license {
		min-height: 52px !important;
		padding: 14px 108px 14px 14px !important;
		font-size: 14px !important;
	}

	.gfch-auth #file-new-license::before {
		right: 6px;
		padding: 6px 8px;
		font-size: 10px;
	}

	.gfch-auth__actions > div:has(iframe),
	.gfch-auth__actions .g-recaptcha {
		transform: scale(0.92);
		transform-origin: left top;
	}
}

/* ---------- Small phones ---------- */
@media screen and (max-width: 380px) {
	.gfch-auth {
		--gfch-fs-heading: 20px;
		--gfch-card-pad-y: 14px;
		--gfch-card-pad-x: 12px;
	}

	.gfch-auth__shell,
	.gfch-auth__shell--narrow {
		padding-left: 0;
		padding-right: 0;
	}

	.gfch-auth #file-new-license {
		padding-right: 96px !important;
	}
}
