/**
 * Auth pages — login, register, forgot password.
 */


/**
 * Login page — full-viewport split-panel, paired with register.
 */
html:has(.osinv-login-page) {
	height: 100%;
}

.osinv-login-page {
	--osinv-login-surface: var(--surface);
	--osinv-login-ink: var(--text-dark, var(--text-dark));
	--osinv-login-muted: var(--text-muted, var(--text-muted));
	--osinv-login-brand: var(--primary-mid, var(--primary-mid));
	--osinv-login-accent: var(--accent, var(--accent));
	position: relative;
	height: 100vh;
	height: 100dvh;
	background: var(--osinv-login-surface);
	overflow: hidden;
}

.osinv-login-main {
	height: 100%;
	display: flex;
	min-height: 0;
}

.osinv-login-shell {
	flex: 1;
	width: 100%;
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	min-height: 0;
	animation: osinv-login-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes osinv-login-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.osinv-login-visual {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: clamp(3.25rem, 5vh, 4rem) clamp(1.5rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 3rem);
	background: linear-gradient(155deg, var(--primary, var(--primary)) 0%, var(--primary-mid, var(--primary-mid)) 52%, var(--primary-light, var(--primary-light)) 100%);
	color: var(--surface);
	min-height: 0;
	overflow: hidden;
}

.osinv-login-visual::before {
	content: "";
	position: absolute;
	inset: auto -3rem -3rem auto;
	width: clamp(8rem, 18vw, 14rem);
	height: clamp(8rem, 18vw, 14rem);
	border-radius: 50%;
	background: rgba(0, 200, 150, 0.16);
}

.osinv-login-visual::after {
	content: "";
	position: absolute;
	top: -4rem;
	left: -3rem;
	width: clamp(6rem, 12vw, 10rem);
	height: clamp(6rem, 12vw, 10rem);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
}

.osinv-login-brand {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 10;
	padding: clamp(1rem, 2vw, 1.35rem) clamp(1.25rem, 2.5vw, 1.75rem);
	pointer-events: none;
}

.osinv-login-visual .osinv-login-brand {
	width: 100%;
}

.osinv-login-brand a {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	text-decoration: none;
	color: var(--surface);
	font-weight: 600;
	font-size: 0.9375rem;
	pointer-events: auto;
	transition: opacity 0.15s ease;
}

.osinv-login-brand a:hover {
	color: var(--surface);
	opacity: 0.88;
}

.osinv-login-brand img {
	width: 1.85rem;
	height: 1.85rem;
	object-fit: contain;
}

.osinv-login-visual-inner {
	position: relative;
	z-index: 1;
	flex: 0 1 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	max-width: 26rem;
}

.osinv-login-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 1rem;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: rgba(0, 200, 150, 0.22);
	border: 1px solid rgba(0, 200, 150, 0.35);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.osinv-login-badge i {
	color: var(--osinv-login-accent);
}

.osinv-login-visual-title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--surface);
}

.osinv-login-visual-lead {
	margin: 0 0 1.25rem;
	font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.82);
	max-width: 24rem;
}

.osinv-login-trust-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	width: 100%;
}

.osinv-login-trust-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	font-size: clamp(0.8125rem, 1vw, 0.875rem);
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.92);
}

.osinv-login-trust-list i {
	margin-top: 0.1rem;
	flex-shrink: 0;
	width: 1rem;
	text-align: center;
	color: var(--osinv-login-accent);
}

.osinv-login-panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: clamp(1.25rem, 3vw, 3rem) clamp(1.5rem, 4vw, 3.5rem);
	min-height: 0;
	overflow-y: auto;
	background:
		linear-gradient(rgba(33, 92, 92, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(33, 92, 92, 0.025) 1px, transparent 1px),
		var(--osinv-login-surface);
	background-size: 28px 28px, 28px 28px, auto;
}

.osinv-login-panel-head,
.osinv-login-notice,
.osinv-login-form,
.osinv-login-panel-foot {
	width: 100%;
	max-width: 24rem;
}

.osinv-login-panel-head {
	margin-bottom: clamp(0.85rem, 1.5vh, 1.15rem);
	flex-shrink: 0;
}

.osinv-login-panel-head h1 {
	margin: 0 0 0.25rem;
	font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
	font-weight: 700;
	color: var(--osinv-login-ink);
	letter-spacing: -0.02em;
}

.osinv-login-panel-head p {
	margin: 0;
	font-size: clamp(0.75rem, 1vw, 0.8125rem);
	line-height: 1.45;
	color: var(--osinv-login-muted);
}

.osinv-login-notice {
	flex-shrink: 0;
	margin-bottom: 0.75rem;
	padding: 0.6rem 0.75rem;
	border-radius: var(--radius-sm, 8px);
	font-size: 0.8125rem;
	line-height: 1.45;
}

.osinv-login-notice--success {
	background: var(--success-soft, var(--success-soft));
	border: 1px solid rgba(16, 185, 129, 0.22);
	color: var(--success, var(--success));
}

.osinv-login-notice--error {
	background: var(--danger-soft, var(--danger-soft));
	border: 1px solid rgba(229, 62, 62, 0.18);
	color: var(--danger, var(--danger));
}

.osinv-login-form {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
}

.osinv-login-field {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	margin-bottom: clamp(0.65rem, 1.2vh, 0.85rem);
}

.osinv-login-field label {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--text-mid, var(--text-mid));
}

.osinv-login-field input {
	width: 100%;
	min-height: var(--field-min-height);
	padding: var(--field-padding-y) var(--field-padding-x);
	font-size: var(--field-font-size);
	line-height: var(--field-line-height);
	color: var(--osinv-login-ink);
	background: var(--osinv-login-surface);
	border: var(--field-border-width) solid var(--field-border-color);
	border-radius: var(--field-border-radius);
	box-shadow: none;
	transition: var(--field-transition);
}

.osinv-login-field input::placeholder {
	color: var(--osinv-login-muted);
	opacity: 0.85;
}

.osinv-login-field input:focus {
	outline: none;
	border-color: var(--field-focus-border-color);
	box-shadow: none;
}

.osinv-login-password-wrap {
	position: relative;
	display: flex;
	align-items: stretch;
}

.osinv-login-password-wrap input {
	padding-right: 2.75rem;
}

.osinv-login-password-toggle {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--osinv-login-muted);
	cursor: pointer;
	border-radius: 0 var(--radius-xs, 6px) var(--radius-xs, 6px) 0;
	transition: color 0.15s ease;
}

.osinv-login-password-toggle:hover {
	color: var(--osinv-login-brand);
}

.osinv-login-password-toggle:focus-visible {
	outline: none;
	box-shadow: none;
}

.osinv-login-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: clamp(0.75rem, 1.2vh, 1rem);
}

.osinv-login-forgot {
	font-size: 0.8125rem;
	color: var(--osinv-login-brand);
	font-weight: 600;
	text-decoration: none;
}

.osinv-login-forgot:hover {
	text-decoration: underline;
}

.osinv-login-remember {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.8125rem;
	color: var(--text-mid, var(--text-mid));
	cursor: pointer;
	user-select: none;
}

.osinv-login-remember input {
	width: 0.9rem;
	height: 0.9rem;
	margin: 0;
	cursor: pointer;
	accent-color: var(--osinv-login-brand);
}

.osinv-login-submit {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.65rem 1rem;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--surface);
	background: var(--osinv-login-brand);
	border: 1px solid var(--osinv-login-brand);
	border-radius: var(--btn-border-radius, 8px);
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.osinv-login-submit:hover {
	background: var(--primary, var(--primary));
	border-color: var(--primary, var(--primary));
}

.osinv-login-submit:focus-visible {
	outline: none;
	box-shadow: none;
}

.osinv-login-panel-foot {
	flex-shrink: 0;
	margin: clamp(0.85rem, 1.5vh, 1.15rem) 0 0;
	font-size: 0.8125rem;
	color: var(--osinv-login-muted);
}

.osinv-login-panel-foot a {
	color: var(--osinv-login-brand);
	font-weight: 600;
	text-decoration: none;
}

.osinv-login-panel-foot a:hover {
	text-decoration: underline;
}

@media (min-width: 1200px) {
	.osinv-login-shell {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}
}

@media (max-width: 767.98px) {
	.osinv-login-page {
		height: auto;
		min-height: 100dvh;
		overflow: auto;
	}

	.osinv-login-shell {
		grid-template-columns: 1fr;
	}

	.osinv-login-visual {
		padding: 1.25rem 1.25rem 1.15rem;
		justify-content: flex-start;
	}

	.osinv-login-brand {
		position: relative;
		top: auto;
		left: auto;
		padding: 0 0 0.85rem;
		margin: 0;
	}

	.osinv-login-visual-inner {
		max-width: none;
	}

	.osinv-login-panel {
		padding: 1.25rem 1.25rem 1.5rem;
		overflow: visible;
	}
}

@media (min-width: 768px) and (max-height: 760px) {
	.osinv-login-visual {
		padding: 1rem clamp(1.5rem, 4vw, 2rem);
	}

	.osinv-login-brand {
		padding: 0.85rem 1.15rem;
	}

	.osinv-login-visual-lead {
		margin-bottom: 0.85rem;
	}

	.osinv-login-panel {
		padding: 1rem 2rem;
	}

	.osinv-login-field input {
		min-height: 2.5rem;
		padding: 0.5rem 0.65rem;
		font-size: 0.8125rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.osinv-login-shell {
		animation: none;
	}
}

/**
 * Register page — full-viewport split-panel onboarding.
 */
html:has(.osinv-register-page) {
	height: 100%;
}

.osinv-register-page {
	--osinv-reg-surface: var(--surface);
	--osinv-reg-ink: var(--text-dark, var(--text-dark));
	--osinv-reg-muted: var(--text-muted, var(--text-muted));
	--osinv-reg-brand: var(--primary-mid, var(--primary-mid));
	--osinv-reg-accent: var(--accent, var(--accent));
	position: relative;
	height: 100vh;
	height: 100dvh;
	background: var(--osinv-reg-surface);
	overflow: hidden;
}

.osinv-register-main {
	height: 100%;
	display: flex;
	min-height: 0;
}

.osinv-register-shell {
	flex: 1;
	width: 100%;
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	min-height: 0;
	animation: osinv-register-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes osinv-register-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.osinv-register-visual {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: clamp(3.25rem, 5vh, 4rem) clamp(1.5rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 3rem);
	background: linear-gradient(155deg, var(--primary, var(--primary)) 0%, var(--primary-mid, var(--primary-mid)) 52%, var(--primary-light, var(--primary-light)) 100%);
	color: var(--surface);
	min-height: 0;
	overflow: hidden;
}

.osinv-register-visual::before {
	content: "";
	position: absolute;
	inset: auto -3rem -3rem auto;
	width: clamp(8rem, 18vw, 14rem);
	height: clamp(8rem, 18vw, 14rem);
	border-radius: 50%;
	background: rgba(0, 200, 150, 0.16);
}

.osinv-register-visual::after {
	content: "";
	position: absolute;
	top: -4rem;
	left: -3rem;
	width: clamp(6rem, 12vw, 10rem);
	height: clamp(6rem, 12vw, 10rem);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
}

.osinv-register-brand {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 10;
	padding: clamp(1rem, 2vw, 1.35rem) clamp(1.25rem, 2.5vw, 1.75rem);
	pointer-events: none;
}

.osinv-register-visual .osinv-register-brand {
	width: 100%;
}

.osinv-register-brand a {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	text-decoration: none;
	color: var(--surface);
	font-weight: 600;
	font-size: 0.9375rem;
	pointer-events: auto;
	transition: opacity 0.15s ease;
}

.osinv-register-brand a:hover {
	color: var(--surface);
	opacity: 0.88;
}

.osinv-register-brand img {
	width: 1.85rem;
	height: 1.85rem;
	object-fit: contain;
}

.osinv-register-visual-inner {
	position: relative;
	z-index: 1;
	flex: 0 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	width: 100%;
	max-width: 26rem;
}

.osinv-register-offer-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 1rem;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: rgba(0, 200, 150, 0.22);
	border: 1px solid rgba(0, 200, 150, 0.35);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.osinv-register-offer-badge i {
	color: var(--osinv-reg-accent);
}

.osinv-register-visual-title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--surface);
}

.osinv-register-visual-lead {
	margin: 0 0 1.25rem;
	font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.82);
	max-width: 24rem;
}

.osinv-register-trust-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	width: 100%;
}

.osinv-register-trust-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	font-size: clamp(0.8125rem, 1vw, 0.875rem);
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.92);
}

.osinv-register-trust-list i {
	margin-top: 0.1rem;
	flex-shrink: 0;
	width: 1rem;
	text-align: center;
	color: var(--osinv-reg-accent);
}

.osinv-register-panel-head,
.osinv-register-errors,
.osinv-register-form,
.osinv-register-panel-foot {
	width: 100%;
	max-width: 36rem;
}

.osinv-register-panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: clamp(1.25rem, 3vw, 3rem) clamp(1.5rem, 4vw, 3.5rem);
	min-height: 0;
	overflow-y: auto;
	background:
		linear-gradient(rgba(33, 92, 92, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(33, 92, 92, 0.025) 1px, transparent 1px),
		var(--osinv-reg-surface);
	background-size: 28px 28px, 28px 28px, auto;
}

.osinv-register-panel-head {
	margin-bottom: clamp(0.75rem, 1.5vh, 1rem);
	flex-shrink: 0;
}

.osinv-register-panel-head h1 {
	margin: 0 0 0.25rem;
	font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
	font-weight: 700;
	color: var(--osinv-reg-ink);
	letter-spacing: -0.02em;
}

.osinv-register-panel-head p {
	margin: 0;
	font-size: clamp(0.75rem, 1vw, 0.8125rem);
	line-height: 1.45;
	color: var(--osinv-reg-muted);
}

.osinv-register-errors {
	flex-shrink: 0;
	margin-bottom: 0.65rem;
	padding: 0.55rem 0.7rem;
	border-radius: var(--radius-sm, 8px);
	background: var(--danger-soft, var(--danger-soft));
	border: 1px solid rgba(229, 62, 62, 0.18);
	font-size: 0.75rem;
	color: var(--danger, var(--danger));
}

.osinv-register-errors ul {
	margin: 0;
	padding-left: 1.1rem;
}

.osinv-register-errors li + li {
	margin-top: 0.15rem;
}

.osinv-register-form {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	width: 100%;
}

.osinv-register-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(0.55rem, 1.2vh, 0.75rem) clamp(0.75rem, 1.5vw, 1.15rem);
	width: 100%;
}

.osinv-register-field {
	display: flex;
	flex-direction: column;
	gap: 0.18rem;
	min-width: 0;
}

.osinv-register-field--full {
	grid-column: 1 / -1;
}

.osinv-register-field label {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--text-mid, var(--text-mid));
	letter-spacing: 0.01em;
}

.osinv-register-field label .osinv-reg-optional {
	font-weight: 500;
	color: var(--osinv-reg-muted);
}

/* One shell for every field — overrides app-modern / Bootstrap type-specific rules */
.osinv-register-page .osinv-register-field input:not([type="checkbox"]),
.osinv-register-page .osinv-register-field textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	margin: 0;
	padding: var(--field-padding-y) var(--field-padding-x);
	font-family: var(--field-font-family);
	font-size: var(--field-font-size);
	font-weight: var(--field-font-weight);
	line-height: var(--field-line-height);
	color: var(--osinv-reg-ink);
	background: var(--osinv-reg-surface);
	border: var(--field-border-width) solid var(--field-border-color);
	border-radius: var(--field-border-radius);
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: var(--field-transition);
}

.osinv-register-page .osinv-register-field input:not([type="checkbox"]) {
	height: var(--field-min-height);
	min-height: var(--field-min-height);
	max-height: var(--field-min-height);
}

.osinv-register-page .osinv-register-field input:not([type="checkbox"])::placeholder,
.osinv-register-page .osinv-register-field textarea::placeholder {
	color: var(--osinv-reg-muted);
	opacity: 0.85;
}

.osinv-register-page .osinv-register-field input:not([type="checkbox"]):focus,
.osinv-register-page .osinv-register-field textarea:focus {
	outline: none;
	border-color: var(--field-focus-border-color);
	box-shadow: none;
}

.osinv-register-page .osinv-register-field textarea {
	height: auto;
	min-height: calc(var(--field-min-height) * 2);
	max-height: 5.5rem;
	resize: vertical;
}

.osinv-register-policies {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	margin-top: clamp(0.55rem, 1.2vh, 0.75rem);
}

.osinv-register-policies input {
	margin-top: 0.15rem;
	flex-shrink: 0;
	width: 0.9rem;
	height: 0.9rem;
	cursor: pointer;
	accent-color: var(--osinv-reg-brand);
}

.osinv-register-policies label {
	font-size: 0.6875rem;
	line-height: 1.45;
	color: var(--text-mid, var(--text-mid));
	cursor: pointer;
}

.osinv-register-policies a {
	color: var(--osinv-reg-brand);
	font-weight: 600;
	text-decoration: none;
}

.osinv-register-policies a:hover {
	text-decoration: underline;
}

.osinv-register-submit {
	margin-top: clamp(0.55rem, 1.2vh, 0.75rem);
	width: 100%;
	min-height: 2.75rem;
	padding: 0.65rem 1rem;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--surface);
	background: var(--osinv-reg-brand);
	border: 1px solid var(--osinv-reg-brand);
	border-radius: var(--btn-border-radius, 8px);
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.osinv-register-submit:hover:not(:disabled) {
	background: var(--primary, var(--primary));
	border-color: var(--primary, var(--primary));
}

.osinv-register-submit:focus-visible {
	outline: none;
	box-shadow: none;
}

.osinv-register-submit:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.osinv-register-panel-foot {
	flex-shrink: 0;
	margin: clamp(0.75rem, 1.5vh, 1rem) 0 0;
	font-size: 0.8125rem;
	color: var(--osinv-reg-muted);
}

.osinv-register-panel-foot a {
	color: var(--osinv-reg-brand);
	font-weight: 600;
	text-decoration: none;
}

.osinv-register-panel-foot a:hover {
	text-decoration: underline;
}

@media (min-width: 1200px) {
	.osinv-register-shell {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}
}

@media (max-width: 767.98px) {
	.osinv-register-page {
		height: auto;
		min-height: 100dvh;
		overflow: auto;
	}

	.osinv-register-shell {
		grid-template-columns: 1fr;
	}

	.osinv-register-visual {
		padding: 1.25rem 1.25rem 1.15rem;
		justify-content: flex-start;
	}

	.osinv-register-brand {
		position: relative;
		top: auto;
		left: auto;
		padding: 0 0 0.85rem;
		margin: 0;
	}

	.osinv-register-visual-inner {
		max-width: none;
	}

	.osinv-register-panel {
		padding: 1.25rem 1.25rem 1.5rem;
		overflow: visible;
	}

	.osinv-register-grid {
		grid-template-columns: 1fr;
		gap: 0.55rem;
	}
}

@media (min-width: 768px) and (max-height: 760px) {
	.osinv-register-visual {
		padding: 1rem clamp(1.5rem, 4vw, 2rem);
	}

	.osinv-register-brand {
		padding: 0.85rem 1.15rem;
	}

	.osinv-register-visual-lead {
		margin-bottom: 0.85rem;
	}

	.osinv-register-panel {
		padding: 1rem 2rem;
	}

	.osinv-register-page .osinv-register-field input:not([type="checkbox"]) {
		height: var(--field-min-height-sm);
		min-height: var(--field-min-height-sm);
		max-height: var(--field-min-height-sm);
		padding: var(--field-padding-y-sm) var(--field-padding-x-sm);
		font-size: var(--field-font-size-sm);
	}

	.osinv-register-page .osinv-register-field textarea {
		min-height: calc(var(--field-min-height-sm) * 2);
		font-size: var(--field-font-size-sm);
		padding: var(--field-padding-y-sm) var(--field-padding-x-sm);
	}
}

@media (prefers-reduced-motion: reduce) {
	.osinv-register-shell {
		animation: none;
	}
}

/**
 * Forgot password — full-viewport split-panel, paired with login/register.
 */
html:has(.osinv-forgot-page) {
	height: 100%;
}

.osinv-forgot-page {
	--osinv-forgot-surface: var(--surface);
	--osinv-forgot-ink: var(--text-dark, var(--text-dark));
	--osinv-forgot-muted: var(--text-muted, var(--text-muted));
	--osinv-forgot-brand: var(--primary-mid, var(--primary-mid));
	--osinv-forgot-accent: var(--accent, var(--accent));
	position: relative;
	height: 100vh;
	height: 100dvh;
	background: var(--osinv-forgot-surface);
	overflow: hidden;
}

.osinv-forgot-main {
	height: 100%;
	display: flex;
	min-height: 0;
}

.osinv-forgot-shell {
	flex: 1;
	width: 100%;
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	min-height: 0;
	animation: osinv-forgot-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes osinv-forgot-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.osinv-forgot-visual {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: clamp(1.25rem, 3vw, 3rem) clamp(1.5rem, 4vw, 3.5rem);
	background: linear-gradient(155deg, var(--primary, var(--primary)) 0%, var(--primary-mid, var(--primary-mid)) 52%, var(--primary-light, var(--primary-light)) 100%);
	color: var(--surface);
	min-height: 0;
	overflow: hidden;
}

.osinv-forgot-visual::before {
	content: "";
	position: absolute;
	inset: auto -3rem -3rem auto;
	width: clamp(8rem, 18vw, 14rem);
	height: clamp(8rem, 18vw, 14rem);
	border-radius: 50%;
	background: rgba(0, 200, 150, 0.16);
}

.osinv-forgot-visual::after {
	content: "";
	position: absolute;
	top: -4rem;
	left: -3rem;
	width: clamp(6rem, 12vw, 10rem);
	height: clamp(6rem, 12vw, 10rem);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
}

.osinv-forgot-brand {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 10;
	padding: clamp(1rem, 2vw, 1.35rem) clamp(1.25rem, 2.5vw, 1.75rem);
	pointer-events: none;
}

.osinv-forgot-brand a {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	text-decoration: none;
	color: var(--surface);
	font-weight: 600;
	font-size: 0.9375rem;
	pointer-events: auto;
	transition: opacity 0.15s ease;
}

.osinv-forgot-brand a:hover {
	color: var(--surface);
	opacity: 0.88;
}

.osinv-forgot-brand img {
	width: 1.85rem;
	height: 1.85rem;
	object-fit: contain;
}

.osinv-forgot-visual-inner {
	position: relative;
	z-index: 1;
	flex: 0 1 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	max-width: 26rem;
}

.osinv-forgot-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 1rem;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: rgba(0, 200, 150, 0.22);
	border: 1px solid rgba(0, 200, 150, 0.35);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.osinv-forgot-badge i {
	color: var(--osinv-forgot-accent);
}

.osinv-forgot-visual-title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--surface);
}

.osinv-forgot-visual-lead {
	margin: 0 0 1.25rem;
	font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.82);
	max-width: 24rem;
}

.osinv-forgot-trust-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	width: 100%;
}

.osinv-forgot-trust-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	font-size: clamp(0.8125rem, 1vw, 0.875rem);
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.92);
}

.osinv-forgot-trust-list i {
	margin-top: 0.1rem;
	flex-shrink: 0;
	width: 1rem;
	text-align: center;
	color: var(--osinv-forgot-accent);
}

.osinv-forgot-panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: clamp(1.25rem, 3vw, 3rem) clamp(1.5rem, 4vw, 3.5rem);
	min-height: 0;
	overflow-y: auto;
	background:
		linear-gradient(rgba(33, 92, 92, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(33, 92, 92, 0.025) 1px, transparent 1px),
		var(--osinv-forgot-surface);
	background-size: 28px 28px, 28px 28px, auto;
}

.osinv-forgot-panel-head,
.osinv-forgot-notice,
.osinv-forgot-form,
.osinv-forgot-panel-foot {
	width: 100%;
	max-width: 24rem;
}

.osinv-forgot-panel-head {
	margin-bottom: clamp(0.85rem, 1.5vh, 1.15rem);
	flex-shrink: 0;
}

.osinv-forgot-panel-head h1 {
	margin: 0 0 0.25rem;
	font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
	font-weight: 700;
	color: var(--osinv-forgot-ink);
	letter-spacing: -0.02em;
}

.osinv-forgot-panel-head p {
	margin: 0;
	font-size: clamp(0.75rem, 1vw, 0.8125rem);
	line-height: 1.45;
	color: var(--osinv-forgot-muted);
}

.osinv-forgot-notice {
	flex-shrink: 0;
	margin-bottom: 0.75rem;
	padding: 0.6rem 0.75rem;
	border-radius: var(--radius-sm, 8px);
	font-size: 0.8125rem;
	line-height: 1.45;
}

.osinv-forgot-notice--success {
	background: var(--success-soft, var(--success-soft));
	border: 1px solid rgba(16, 185, 129, 0.22);
	color: var(--success, var(--success));
}

.osinv-forgot-notice--error {
	background: var(--danger-soft, var(--danger-soft));
	border: 1px solid rgba(229, 62, 62, 0.18);
	color: var(--danger, var(--danger));
}

.osinv-forgot-form {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
}

.osinv-forgot-field {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	margin-bottom: clamp(0.75rem, 1.2vh, 1rem);
}

.osinv-forgot-field label {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--text-mid, var(--text-mid));
}

.osinv-forgot-field input {
	width: 100%;
	min-height: var(--field-min-height);
	padding: var(--field-padding-y) var(--field-padding-x);
	font-size: var(--field-font-size);
	line-height: var(--field-line-height);
	color: var(--osinv-forgot-ink);
	background: var(--osinv-forgot-surface);
	border: var(--field-border-width) solid var(--field-border-color);
	border-radius: var(--field-border-radius);
	box-shadow: none;
	transition: var(--field-transition);
}

.osinv-forgot-field input::placeholder {
	color: var(--osinv-forgot-muted);
	opacity: 0.85;
}

.osinv-forgot-field input:focus {
	outline: none;
	border-color: var(--field-focus-border-color);
	box-shadow: none;
}

.osinv-forgot-submit {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.65rem 1rem;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--surface);
	background: var(--osinv-forgot-brand);
	border: 1px solid var(--osinv-forgot-brand);
	border-radius: var(--btn-border-radius, 8px);
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.osinv-forgot-submit:hover {
	background: var(--primary, var(--primary));
	border-color: var(--primary, var(--primary));
}

.osinv-forgot-submit:focus-visible {
	outline: none;
	box-shadow: none;
}

.osinv-forgot-panel-foot {
	flex-shrink: 0;
	margin: clamp(0.85rem, 1.5vh, 1.15rem) 0 0;
	font-size: 0.8125rem;
	color: var(--osinv-forgot-muted);
}

.osinv-forgot-panel-foot a {
	color: var(--osinv-forgot-brand);
	font-weight: 600;
	text-decoration: none;
}

.osinv-forgot-panel-foot a:hover {
	text-decoration: underline;
}

@media (min-width: 1200px) {
	.osinv-forgot-shell {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}
}

@media (max-width: 767.98px) {
	.osinv-forgot-page {
		height: auto;
		min-height: 100dvh;
		overflow: auto;
	}

	.osinv-forgot-shell {
		grid-template-columns: 1fr;
	}

	.osinv-forgot-visual {
		padding: 1.25rem 1.25rem 1.15rem;
		justify-content: flex-start;
	}

	.osinv-forgot-visual-inner {
		max-width: none;
	}

	.osinv-forgot-panel {
		padding: 1.25rem 1.25rem 1.5rem;
		overflow: visible;
	}
}

@media (min-width: 768px) and (max-height: 760px) {
	.osinv-forgot-visual {
		padding: 1rem clamp(1.5rem, 4vw, 2rem);
	}

	.osinv-forgot-brand {
		padding: 0.85rem 1.15rem;
	}

	.osinv-forgot-visual-lead {
		margin-bottom: 0.85rem;
	}

	.osinv-forgot-panel {
		padding: 1rem 2rem;
	}

	.osinv-forgot-field input {
		min-height: 2.5rem;
		padding: 0.5rem 0.65rem;
		font-size: 0.8125rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.osinv-forgot-shell {
		animation: none;
	}
}
