/**
 * 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, #fff);
	--osinv-forgot-ink: var(--text-dark, #0f1923);
	--osinv-forgot-muted: var(--text-muted, #7a8fa3);
	--osinv-forgot-brand: var(--primary-mid, #215c5c);
	--osinv-forgot-accent: var(--accent, #00c896);
	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, #1a4a4a) 0%, var(--primary-mid, #215c5c) 52%, var(--primary-light, #2d7a7a) 100%);
	color: #fff;
	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: #fff;
	font-weight: 600;
	font-size: 0.9375rem;
	pointer-events: auto;
	transition: opacity 0.15s ease;
}

.osinv-forgot-brand a:hover {
	color: #fff;
	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: #fff;
}

.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, #ecfdf5);
	border: 1px solid rgba(16, 185, 129, 0.22);
	color: var(--success, #10b981);
}

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

.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, #3d4f5c);
}

.osinv-forgot-field input {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.625rem 0.75rem;
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--osinv-forgot-ink);
	background: var(--osinv-forgot-surface);
	border: 1px solid var(--border, #e4eaf0);
	border-radius: var(--radius-xs, 6px);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.osinv-forgot-field input:focus {
	outline: none;
	border-color: var(--osinv-forgot-brand);
	box-shadow: 0 0 0 3px rgba(var(--app-primary-rgb, 33, 92, 92), 0.14);
}

.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: #fff;
	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, #1a4a4a);
	border-color: var(--primary, #1a4a4a);
}

.osinv-forgot-submit:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(var(--app-primary-rgb, 33, 92, 92), 0.25);
}

.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;
	}
}
