:root {
	--ink: #111218;
	--muted: #667085;
	--line: #e4e7ec;
	--accent-btn: #5b5bd6;
	--accent-btn-hover: #4b4bc8;
	--bad: #b42318;
	--ok: #067647;
	--radius: 10px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.auth {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	font-family: Heebo, system-ui, sans-serif;
	color: var(--ink);
	background: #f4f5f8;
	-webkit-font-smoothing: antialiased;
}

.auth__split {
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
}

.auth__form-side {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100dvh;
	padding: 40px 24px;
	padding-top: calc(40px + env(safe-area-inset-top));
	padding-bottom: calc(40px + env(safe-area-inset-bottom));
	background: #f4f5f8;
}

.auth__panel,
.login_block {
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
	padding: 36px 32px 32px;
	background: #fff;
	border: 1px solid rgba(16, 24, 40, 0.06);
	border-radius: 20px;
	box-shadow:
		0 1px 2px rgba(16, 24, 40, 0.04),
		0 24px 48px rgba(16, 24, 40, 0.06);
	opacity: 1;
	text-align: center;
}

.auth__brand {
	display: flex;
	justify-content: center;
	margin-bottom: 22px;
	line-height: 0;
}

.auth__brand img {
	display: block;
	height: 58px;
	width: auto;
}

.auth__title {
	margin: 0;
	font-size: 1.55rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.25;
}

.auth__lead {
	margin: 8px 0 26px;
	color: var(--muted);
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.5;
}

.auth__info {
	margin: 0 0 16px;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid transparent;
	font-size: 0.875rem;
	font-weight: 600;
	text-align: start;
}

.auth__info[hidden],
.auth__info:empty { display: none; }

.auth__info.is-ok {
	color: var(--ok);
	background: #ecfdf3;
	border-color: #abefc6;
}

.auth__info.is-bad {
	color: var(--bad);
	background: #fef3f2;
	border-color: #fecdca;
}

.auth__info .poxupno,
.auth__info .poxupyes {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
}

.auth__form { display: grid; gap: 16px; text-align: start; }
.auth__field { display: grid; gap: 6px; }

.auth__label {
	font-size: 0.8125rem;
	font-weight: 500;
	color: #344054;
}

.auth__input,
.pw-toggle-wrap input {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	color: var(--ink);
	font-family: inherit;
	font-size: 16px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pw-toggle-wrap input { padding-left: 44px; }

.auth__input:focus,
.pw-toggle-wrap:focus-within input {
	border-color: var(--accent-btn);
	box-shadow: 0 0 0 4px rgba(91, 91, 214, 0.14);
}

.auth__input.input-invalid,
.pw-toggle-wrap:has(.input-invalid) input {
	border-color: var(--bad);
	box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.1);
}

.field-error {
	display: none;
	color: var(--bad);
	font-size: 0.75rem;
	font-weight: 500;
}

.field-error:not(:empty) { display: block; }

.auth__remember {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #475467;
	font-size: 0.875rem;
	cursor: pointer;
	user-select: none;
}

.auth__remember input {
	width: 15px;
	height: 15px;
	accent-color: var(--accent-btn);
}

.auth__submit {
	width: 100%;
	min-height: 46px;
	border: 0;
	border-radius: var(--radius);
	background: var(--accent-btn);
	color: #fff;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(91, 91, 214, 0.28);
	transition: background 0.15s ease, transform 0.15s ease;
}

.auth__submit:hover { background: var(--accent-btn-hover); }

.auth__submit:disabled,
.auth__submit.is-loading {
	opacity: 0.65;
	cursor: wait;
	box-shadow: none;
}

.pw-toggle-wrap {
	position: relative;
	display: block;
	width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.pw-toggle-btn {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 44px;
	border: 0 !important;
	background: transparent !important;
	color: var(--muted);
	cursor: pointer;
}

.auth__showcase {
	position: relative;
	display: none;
	overflow: auto;
	color: #eef0f6;
	background: #07080f;
}

.auth__fx {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.auth__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
}

.auth__glow--a {
	width: 420px;
	height: 420px;
	top: -120px;
	right: -80px;
	background: rgba(91, 91, 214, 0.45);
}

.auth__glow--b {
	width: 320px;
	height: 320px;
	bottom: -80px;
	left: -60px;
	background: rgba(56, 189, 248, 0.12);
}

.auth__grain {
	position: absolute;
	inset: 0;
	opacity: 0.22;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	mix-blend-mode: overlay;
}

.auth__orb {
	position: absolute;
	left: -18%;
	bottom: -22%;
	width: min(92%, 620px);
	height: auto;
	color: #a5b4fc;
	opacity: 0.32;
	filter: drop-shadow(0 0 28px rgba(91, 91, 214, 0.35));
}

.auth__orb-spin {
	transform-origin: 200px 200px;
	animation: auth-spin 50s linear infinite;
}

@keyframes auth-spin {
	to { transform: rotate(360deg); }
}

.auth__showcase-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: none;
	padding: 56px 48px 48px;
}

.auth__eyebrow {
	margin: 0 0 14px;
	color: #a5b4fc;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.22em;
}

.auth__showcase-title {
	margin: 0 0 16px;
	font-size: clamp(1.9rem, 3.2vw, 2.7rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.15;
	color: #fff;
}

.auth__showcase-lead {
	margin: 0 0 32px;
	max-width: none;
	color: #c2c6d4;
	font-size: 1.05rem;
	font-weight: 400;
	line-height: 1.75;
}

.auth__timeline {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.auth__timeline li {
	position: relative;
	padding: 0 0 22px 0;
	padding-inline-end: 28px;
}

.auth__timeline li:last-child { padding-bottom: 0; }

.auth__timeline li::before {
	content: "";
	position: absolute;
	top: 9px;
	inset-inline-end: 0;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #818cf8;
	box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.18);
}

.auth__timeline li::after {
	content: "";
	position: absolute;
	top: 22px;
	bottom: 2px;
	inset-inline-end: 4px;
	width: 1px;
	background: rgba(165, 180, 252, 0.28);
}

.auth__timeline li:last-child::after { display: none; }

.auth__timeline strong {
	display: block;
	margin-bottom: 5px;
	font-size: 1.05rem;
	font-weight: 600;
	color: #fff;
}

.auth__timeline span {
	display: block;
	color: #a8adc0;
	font-size: 0.95rem;
	line-height: 1.65;
}

.auth__close {
	margin: 0;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth__close strong {
	display: block;
	margin-bottom: 8px;
	font-size: 1.05rem;
	font-weight: 700;
	color: #fff;
}

.auth__close span {
	display: block;
	color: #a8adc0;
	font-size: 0.95rem;
	line-height: 1.65;
}

@media (min-width: 960px) {
	.auth__split {
		grid-template-columns: minmax(380px, 40%) minmax(520px, 60%);
	}

	.auth__form-side { padding: 48px; }

	.auth__showcase {
		display: flex;
		align-items: center;
		justify-content: stretch;
	}

	.auth__showcase-inner {
		padding: 56px 64px 56px 56px;
	}
}

@media (max-width: 959px) {
	.auth__showcase {
		display: flex;
		min-height: auto;
	}

	.auth__showcase-inner {
		padding: 40px 24px 48px;
		max-width: none;
	}

	.auth__orb {
		width: 280px;
		left: -80px;
		bottom: -90px;
		opacity: 0.28;
	}
}

@media (prefers-reduced-motion: reduce) {
	.auth__orb-spin { animation: none; }
}
