/**
 * Register page only — loaded after auth-pages.css.
 * Mobile: single scrolling form card (no left hero, no overlap).
 */

/* Kill nested gray panel look on desktop right column */
.osinv-auth-page--register .osinv-auth__panel {
	background: var(--auth-surface, #fff);
}

@media (max-width: 900px) {
	html:has(body.osinv-auth-page--register) {
		height: auto !important;
		overflow: auto !important;
	}

	body.osinv-auth-page--register {
		display: block !important;
		height: auto !important;
		min-height: 100dvh !important;
		min-height: 100svh !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		background: var(--auth-bg, #f5f6f8) !important;
		padding:
			env(safe-area-inset-top, 0px)
			env(safe-area-inset-right, 0px)
			env(safe-area-inset-bottom, 0px)
			env(safe-area-inset-left, 0px) !important;
	}

	body.osinv-auth-page--register .osinv-auth-main {
		display: block !important;
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		padding: 0.75rem !important;
		overflow: visible !important;
		flex: none !important;
	}

	body.osinv-auth-page--register .osinv-auth--register {
		display: flex !important;
		flex-direction: column !important;
		width: 100% !important;
		max-width: 28rem !important;
		height: auto !important;
		min-height: 0 !important;
		margin: 0 auto !important;
		border: 1px solid var(--auth-border, #e8ecef) !important;
		border-radius: 12px !important;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 28px rgba(0, 0, 0, 0.05) !important;
		background: var(--auth-surface, #fff) !important;
		overflow: visible !important;
	}

	body.osinv-auth-page--register .osinv-auth__head {
		display: flex !important;
		align-items: center !important;
		justify-content: space-between !important;
		flex: 0 0 auto !important;
		padding: 0.85rem 1rem !important;
		border-bottom: 1px solid var(--auth-border, #e8ecef) !important;
	}

	/* Critical: hide marketing column so it cannot overlay the form */
	body.osinv-auth-page--register .osinv-auth__split-main {
		display: none !important;
		visibility: hidden !important;
		height: 0 !important;
		width: 0 !important;
		overflow: hidden !important;
		padding: 0 !important;
		margin: 0 !important;
		border: 0 !important;
		position: absolute !important;
		left: -9999px !important;
	}

	body.osinv-auth-page--register .osinv-auth__body {
		display: block !important;
		grid-template-columns: none !important;
		grid-template-rows: none !important;
		gap: 0 !important;
		padding: 0 !important;
		height: auto !important;
		min-height: 0 !important;
		overflow: visible !important;
		flex: none !important;
		align-items: stretch !important;
	}

	body.osinv-auth-page--register .osinv-auth__panel {
		display: block !important;
		position: static !important;
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		padding: 1.15rem 1.1rem 1.25rem !important;
		margin: 0 !important;
		overflow: visible !important;
		background: var(--auth-surface, #fff) !important;
		border: none !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		justify-content: flex-start !important;
	}

	body.osinv-auth-page--register .osinv-auth__panel-head {
		margin: 0 0 0.85rem !important;
	}

	body.osinv-auth-page--register .osinv-auth__panel-head h2 {
		margin: 0 0 0.3rem !important;
		font-size: 1.35rem !important;
		line-height: 1.2 !important;
	}

	body.osinv-auth-page--register .osinv-auth__panel-head p {
		margin: 0 !important;
	}

	body.osinv-auth-page--register .osinv-auth__steps {
		display: flex !important;
		align-items: stretch !important;
		gap: 0.4rem !important;
		margin: 0 0 1rem !important;
		padding: 0 !important;
		list-style: none !important;
	}

	body.osinv-auth-page--register .osinv-auth__steps li {
		flex: 1 1 0 !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 0 !important;
		min-height: 2.25rem !important;
		padding: 0 !important;
		font-size: 0 !important;
		letter-spacing: 0 !important;
		line-height: 1 !important;
	}

	body.osinv-auth-page--register .osinv-auth__steps li span {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 1.5rem !important;
		height: 1.5rem !important;
		font-size: 0.6875rem !important;
		line-height: 1 !important;
		letter-spacing: 0 !important;
	}

	body.osinv-auth-page--register .osinv-auth__form {
		display: block !important;
		height: auto !important;
		min-height: 0 !important;
		flex: none !important;
	}

	body.osinv-auth-page--register .osinv-auth__step {
		display: block !important;
		height: auto !important;
		min-height: 0 !important;
		flex: none !important;
	}

	body.osinv-auth-page--register .osinv-auth__step[hidden] {
		display: none !important;
	}

	body.osinv-auth-page--register .osinv-auth__grid {
		display: grid !important;
		grid-template-columns: 1fr !important;
		gap: 0.85rem !important;
	}

	body.osinv-auth-page--register .osinv-auth__field {
		margin: 0 !important;
		gap: 0.35rem !important;
	}

	body.osinv-auth-page--register .osinv-auth__field input,
	body.osinv-auth-page--register .osinv-auth__field textarea {
		font-size: 1rem !important;
		min-height: 2.875rem !important;
		width: 100% !important;
	}

	body.osinv-auth-page--register .osinv-auth__phone {
		min-height: 2.875rem !important;
		width: 100% !important;
	}

	body.osinv-auth-page--register .osinv-auth__field .osinv-auth__phone input {
		font-size: 1rem !important;
		min-height: 2.875rem !important;
	}

	body.osinv-auth-page--register .osinv-auth__step-nav {
		display: flex !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: 0.65rem !important;
		width: 100% !important;
		margin: 1.15rem 0 0 !important;
		padding: 1rem 0 0 !important;
		border-top: 1px solid var(--auth-border, #e8ecef) !important;
	}

	body.osinv-auth-page--register .osinv-auth__step-nav-start,
	body.osinv-auth-page--register .osinv-auth__step-nav-end {
		flex: 1 1 0 !important;
		display: flex !important;
		min-width: 0 !important;
		width: auto !important;
		margin: 0 !important;
	}

	body.osinv-auth-page--register .osinv-auth__step-nav-start {
		justify-content: flex-start !important;
	}

	body.osinv-auth-page--register .osinv-auth__step-nav-start:has(> [hidden]) {
		display: none !important;
		flex: 0 0 0 !important;
		width: 0 !important;
		min-width: 0 !important;
		overflow: hidden !important;
	}

	body.osinv-auth-page--register .osinv-auth__step-nav-end {
		justify-content: flex-end !important;
		margin-left: 0 !important;
	}

	body.osinv-auth-page--register .osinv-auth__step-nav:not(:has(.osinv-auth__step-nav-start > :not([hidden]))) .osinv-auth__step-nav-end {
		flex: 1 1 auto !important;
	}

	body.osinv-auth-page--register .osinv-auth__step-nav .osinv-auth__btn {
		width: 100% !important;
		min-width: 0 !important;
		min-height: 2.875rem !important;
		margin: 0 !important;
	}

	body.osinv-auth-page--register .osinv-auth__panel-foot {
		position: static !important;
		margin: 1.1rem 0 0 !important;
		padding: 0 !important;
		text-align: left !important;
	}
}

@media (max-width: 360px) {
	body.osinv-auth-page--register .osinv-auth__step-nav {
		flex-direction: column-reverse !important;
		align-items: stretch !important;
	}

	body.osinv-auth-page--register .osinv-auth__step-nav-start,
	body.osinv-auth-page--register .osinv-auth__step-nav-end {
		flex: 1 1 auto !important;
		width: 100% !important;
	}
}
