:root {
	--imc-app-bg: rgba(230, 227, 224, 0.88);
	--imc-app-ink: #101828;
	--imc-app-muted: #5c6b7a;
	--imc-app-accent: #cf5c36;
	--imc-app-accent-strong: #4f7cac;
	--imc-app-accent-subtle: #edf4fb;
	--imc-theme-accent-rgb: 207, 92, 54;
	--imc-app-border: #d8dee7;
	--imc-app-card: #ffffff;
	--imc-app-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
	--imc-app-radius: 22px;
}

.imc-auth-page,
.imc-auth-page * {
	box-sizing: border-box;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.imc-auth-page {
	padding: 65px 25px;
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at top left, var(--imc-app-accent-subtle), transparent 32%),
		linear-gradient(180deg, rgba(245, 242, 239, 0.96) 0%, var(--imc-app-bg) 100%);
	color: var(--imc-app-ink);
}

.imc-auth-shell {
	width: min(1080px, 100%);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
	gap: 22px;
	align-items: stretch;
}

.imc-auth-shell.single {
	width: min(520px, 100%);
	grid-template-columns: 1fr;
}

.imc-auth-brand,
.imc-auth-panel {
	border: 1px solid var(--imc-app-border);
	border-radius: var(--imc-app-radius);
	background: var(--imc-app-card);
	box-shadow: var(--imc-app-shadow);
	overflow: hidden;
}

.imc-auth-brand {
	min-height: 560px;
	display: flex;
	align-items: flex-end;
	background:
		radial-gradient(circle at top right, rgba(var(--imc-theme-accent-rgb), 0.2), transparent 34%),
		radial-gradient(circle at 18% 22%, rgba(var(--imc-theme-accent-rgb), 0.18), transparent 26%),
		linear-gradient(160deg, rgba(26, 43, 60, 0.96), rgba(17, 29, 42, 0.98));
	color: #fff;
}

.imc-auth-brand-inner {
	width: 100%;
	padding: 34px;
	display: grid;
	gap: 24px;
}

.imc-auth-brand .imc-eyebrow {
	color: var(--imc-app-accent);
}

.imc-auth-brand p {
	max-width: 560px;
	margin: 0;
	color: #d6e1ea;
	font-size: clamp(1.6rem, 3vw, 2.7rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.04em;
}

.imc-auth-brand-card {
	max-width: 520px;
	display: grid;
	gap: 6px;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.08);
}

.imc-auth-brand-card strong {
	font-size: 14px;
	font-weight: 800;
}

.imc-auth-brand-card span {
	color: #c4d2df;
	font-size: 13px;
	line-height: 1.55;
}

.imc-auth-panel {
	display: flex;
	align-items: center;
}

.imc-auth-panel-inner {
	width: 100%;
	padding: 34px;
	display: grid;
	gap: 18px;
}

.imc-auth-panel h2 {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 0.98;
	letter-spacing: -0.045em;
}

.imc-eyebrow {
	color: var(--imc-app-accent-strong);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.imc-muted {
	margin: 0;
	color: var(--imc-app-muted);
	font-size: 14px;
	line-height: 1.65;
}

.imc-auth-alerts {
	display: grid;
	gap: 10px;
}

.imc-alert {
	padding: 14px 16px;
	border-radius: 14px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
}

.imc-alert.error {
	background: #fef2f2;
	color: #991b1b;
}

.imc-auth-form,
.imc-form-grid,
.imc-field,
.imc-auth-actions {
	display: grid;
	gap: 16px;
}

.imc-form-grid {
	gap: 14px;
}

.imc-field {
	gap: 7px;
}

.imc-field label {
	font-size: 13px;
	font-weight: 700;
	color: var(--imc-app-ink);
}

.imc-input {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 0;
	border-radius: 14px;
	background: #eceff3;
	color: var(--imc-app-ink);
	font-size: 14px;
	transition: box-shadow 0.14s ease, background-color 0.14s ease;
}

.imc-input:focus {
	outline: 0;
	box-shadow: 0 0 0 3px var(--imc-app-accent-subtle);
	background: #f4f7f9;
}

.imc-auth-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	font-size: 13px;
}

.imc-auth-remember {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--imc-app-muted);
	font-weight: 600;
}

.imc-auth-remember input {
	accent-color: var(--imc-app-accent);
}

.imc-link {
	color: var(--imc-app-accent-strong);
	font-weight: 700;
	text-decoration: none;
}

.imc-link:hover,
.imc-link:focus-visible {
	text-decoration: underline;
}

.imc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 18px;
	border: 0;
	border-radius: 14px;
	background: var(--imc-app-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
}

.imc-button:hover,
.imc-button:focus-visible {
	filter: brightness(1.06);
	transform: translateY(-1px);
}

.imc-button:focus-visible {
	outline: 0;
	box-shadow: 0 0 0 3px rgba(var(--imc-theme-accent-rgb), 0.2);
}

.imc-auth-submit {
	width: 100%;
}

.imc-auth-panel-footer {
	color: var(--imc-app-muted);
	font-size: 14px;
	line-height: 1.5;
}

@media (max-width: 900px) {
	.imc-auth-shell {
		grid-template-columns: 1fr;
	}

	.imc-auth-brand {
		min-height: auto;
	}
}

@media (max-width: 640px) {
	.imc-auth-page {
		padding: 18px 12px;
	}

	.imc-auth-brand-inner,
	.imc-auth-panel-inner {
		padding: 22px;
	}

	.imc-auth-brand p,
	.imc-auth-panel h2 {
		font-size: 2.25rem;
	}

	.imc-auth-options {
		display: grid;
		justify-content: start;
	}
}
