/*
 * Визуальный язык «Апекс» для страниц сайта вне кабинета: вход, регистрация,
 * восстановление пароля, приглашение, документы.
 * Три правила: острые углы, чёрная рамка 2 px с жёсткой тенью, плоский яркий цвет.
 * Шрифты Geologica и PT Serif Italic (SIL OFL 1.1) лежат в lms/public/fonts.
 */

@font-face {
	font-family: 'Geologica';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('../fonts/geologica-normal-400_800-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'Geologica';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('../fonts/geologica-normal-400_800-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
		U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
		U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'PT Serif';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/ptserif-italic-400-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'PT Serif';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/ptserif-italic-400-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
		U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
		U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'PT Serif';
	font-style: italic;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/ptserif-italic-700-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'PT Serif';
	font-style: italic;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/ptserif-italic-700-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
		U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
		U+FEFF, U+FFFD;
}

:root {
	--lemon: #fff851;
	--violet: #a400ff;
	--purple: #6922bf;
	--magenta: #f400ff;
	--coral: #ff8562;
	--lilac: #faf0ff;
	--lilac-2: #efd9ff;
	--ink: #0d0b10;
	--ink-2: #2b2731;
	--muted: #4b4553;
	--paper: #fdfcff;
	--rule: rgb(13 11 16 / 0.16);
	--error: #c2003a;
	--ease: cubic-bezier(0.23, 1, 0.32, 1);

	/* Прежние имена переменных страниц сайта: на них держатся общие вставки
	   (юридический подвал, галочки согласий). */
	--ap-bg: var(--lilac);
	--ap-panel: #fff;
	--ap-panel-2: #fff;
	--ap-border: var(--ink);
	--ap-text: var(--ink);
	--ap-text-sec: var(--ink-2);
	--ap-text-dim: var(--muted);
	--ap-gold: var(--purple);
	--ap-gold-hover: var(--violet);
	--ap-cyan: var(--purple);
	--ap-cyan-hover: var(--violet);
	--ap-green: var(--ink);
	--ap-red: var(--error);
	--ap-font-sans: 'Geologica', system-ui, sans-serif;
	--ap-font-display: 'Geologica', system-ui, sans-serif;
}

html {
	color-scheme: light;
}
body {
	background: var(--lilac) !important;
	margin: 0;
	font-family: var(--ap-font-sans);
	font-size: 15px;
	line-height: 1.4;
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: geometricPrecision;
}

.ap-auth,
.ap-auth *,
.ap-auth *::before,
.ap-auth *::after {
	box-sizing: border-box;
	border-radius: 0;
}

.ap-auth {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--lilac);
	padding: 24px 16px;
}
/* Запас 5 px справа: иначе тень карточки упирается в край экрана. */
.ap-auth-box {
	width: 100%;
	max-width: 453px;
	padding-right: 5px;
}

.ap-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	margin-bottom: 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--purple);
	text-decoration: none;
}
.ap-back:hover {
	color: var(--violet);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Обложка: фиолетовая плашка с маскотом и орбитой, уходящей за край. */
.ap-auth-head {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 16px 16px 18px;
	background: var(--violet);
	color: #fff;
	border: 2px solid var(--ink);
	border-bottom: 0;
	text-align: left;
}
.ap-auth-head::before,
.ap-auth-head::after {
	content: '';
	position: absolute;
	border: 1.5px solid rgb(255 255 255 / 0.45);
	border-radius: 50%;
	transform: rotate(-18deg);
	pointer-events: none;
}
.ap-auth-head::before {
	width: 260px;
	height: 96px;
	right: -92px;
	top: -22px;
}
.ap-auth-head::after {
	width: 380px;
	height: 150px;
	right: -150px;
	top: -44px;
	border-style: dashed;
}
.ap-brand {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	align-self: flex-start;
	text-decoration: none;
	color: #fff;
}
.ap-brand:hover {
	text-decoration: none;
	color: #fff;
}
.ap-brand img {
	width: 56px;
	height: 56px;
	flex: none;
	border: 3px solid var(--ink);
	border-radius: 50%;
	background: var(--ink);
	object-fit: cover;
}
.ap-brand-word {
	padding: 2px 8px;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.25;
	color: var(--ink);
	background: var(--lemon);
	border: 2px solid var(--ink);
	box-shadow: 3px 3px 0 var(--ink);
	transform: rotate(-3deg);
}
.ap-glow-sm {
	filter: none;
}
.ap-auth-title {
	position: relative;
	z-index: 1;
	margin: 0;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	color: #fff;
}
.ap-auth-sub {
	position: relative;
	z-index: 1;
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
	color: #fff;
}
.ap-auth-sub strong {
	font-weight: 700;
	color: var(--lemon);
}

.ap-card {
	background: #fff;
	border: 2px solid var(--ink);
	box-shadow: 5px 5px 0 var(--ink);
	padding: 18px 14px;
}
.ap-card > * + * {
	margin-top: 14px;
}
.ap-card[hidden] {
	display: none;
}

.ap-notice,
.ap-error {
	padding: 10px 12px;
	border: 2px solid var(--ink);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--ink);
}
.ap-notice {
	margin-bottom: 10px;
	background: var(--lilac-2);
}
.ap-error {
	display: none;
	background: #fff;
	border-color: var(--error);
	color: var(--error);
	font-weight: 600;
}
.ap-error.ap-show {
	display: block;
}

.ap-field label {
	display: block;
	margin: 0 0 4px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--purple);
}
.ap-optional {
	font-weight: 500;
	color: var(--muted);
}
.ap-input {
	display: block;
	width: 100%;
	min-height: 52px;
	padding: 12px;
	font: inherit;
	font-size: 16px;
	color: var(--ink);
	caret-color: var(--violet);
	background: #fff;
	border: 2px solid var(--ink);
	appearance: none;
}
.ap-input::placeholder {
	color: var(--muted);
	opacity: 0.7;
}
.ap-input:focus {
	outline: 3px solid var(--violet);
	outline-offset: 2px;
	box-shadow: none;
	border-color: var(--ink);
}
.ap-input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px #fff inset;
	-webkit-text-fill-color: var(--ink);
	caret-color: var(--violet);
}
.ap-input[aria-invalid='true'] {
	border-color: var(--error);
}
.ap-hint,
.ap-meter-text {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--muted);
}
.ap-lead {
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
	color: var(--ink-2);
}
.ap-lead b,
.ap-lead strong {
	font-weight: 700;
	color: var(--ink);
	overflow-wrap: anywhere;
}

.ap-pass {
	position: relative;
}
.ap-pass .ap-input {
	padding-right: 52px;
}
.ap-toggle {
	position: absolute;
	top: 50%;
	right: 4px;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}
.ap-toggle:hover {
	color: var(--violet);
}
.ap-toggle svg {
	display: block;
	stroke-width: 2;
	stroke-linecap: square;
	stroke-linejoin: miter;
}
.ap-toggle .ap-eye-off {
	display: none;
}
.ap-toggle[aria-pressed='true'] .ap-eye {
	display: none;
}
.ap-toggle[aria-pressed='true'] .ap-eye-off {
	display: block;
}

.ap-code-input {
	text-align: center;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: 0.4em;
	padding: 10px 12px 10px calc(12px + 0.4em);
	font-variant-numeric: tabular-nums;
}

/* Главное действие экрана: чёрная кнопка, при нажатии вдавливается в тень. */
.ap-submit {
	display: block;
	width: 100%;
	min-height: 52px;
	padding: 12px;
	cursor: pointer;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: var(--ink);
	border: 2px solid var(--ink);
	box-shadow: 4px 4px 0 var(--violet);
	transition: transform 0.2s var(--ease);
}
.ap-submit:hover {
	color: var(--lemon);
}
.ap-submit:active {
	transform: translate(2px, 2px);
}
.ap-submit:disabled {
	cursor: default;
	color: var(--muted);
	background: #fff;
	border-color: var(--rule);
	box-shadow: none;
	transform: none;
}

.ap-text-btn {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--purple);
}
.ap-text-btn:hover {
	color: var(--violet);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.ap-text-btn:disabled {
	color: var(--muted);
	cursor: default;
	text-decoration: none;
}

.ap-links {
	text-align: center;
	font-size: 13px;
}
.ap-links > * + * {
	margin-top: 8px;
}
.ap-link-cyan,
.ap-link-gold {
	font-weight: 600;
	color: var(--purple);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.ap-link-cyan {
	display: block;
}
.ap-link-cyan:hover,
.ap-link-gold:hover {
	color: var(--violet);
}
.ap-muted {
	margin: 0;
	color: var(--muted);
}
.ap-note {
	margin-bottom: 0;
	text-align: center;
	font-size: 13px;
	color: var(--muted);
}
.ap-staff-note {
	font-size: 12px;
	line-height: 1.4;
	padding-top: 4px;
}

.ap-state {
	text-align: center;
}
.ap-state p {
	margin-bottom: 0;
	font-size: 15px;
	line-height: 1.4;
	color: var(--ink-2);
}
.ap-state p strong {
	font-weight: 700;
	color: var(--ink);
}
.ap-state .ap-success {
	color: var(--ink);
	font-weight: 700;
}
.ap-state .ap-pre {
	white-space: pre-line;
}

.ap-meter {
	margin-top: 8px;
}
.ap-meter[hidden] {
	display: none;
}
.ap-meter-bar {
	height: 8px;
	border: 2px solid var(--ink);
	background: #fff;
	overflow: hidden;
}
.ap-meter-fill {
	display: block;
	width: 0;
	height: 100%;
	background: var(--error);
	transition: width 0.2s var(--ease);
}

.ap-focus:focus-visible {
	outline: 3px solid var(--violet);
	outline-offset: 2px;
	box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
	.ap-auth *,
	.ap-auth *::before,
	.ap-auth *::after {
		transition: none !important;
		animation: none !important;
	}
}

/* ---- Вариант «Техно» (демо) ----------------------------------------------
   Тёмное стекло, тонкие линии и фиолетово-циановое свечение. Включается
   атрибутом data-design="techno" на <html> (lms/public/js/apeks-design.js). */
:root[data-design='techno'] {
	--lemon: #fff851;
	--violet: #a855f7;
	--purple: #c4a1ff;
	--lilac: #07080d;
	--lilac-2: #1b1630;
	--ink: #f3f5ff;
	--ink-2: #c5cbe0;
	--muted: #8a93b0;
	--paper: #0a0c12;
	--rule: rgb(255 255 255 / 0.08);
	--error: #ff6b8b;
	--ap-panel: #10131d;
	--ap-panel-2: #141826;
	--ap-border: #262d44;
	--ap-gold: #c4a1ff;
	--ap-gold-hover: #d9c2ff;
	--ap-cyan: #c4a1ff;
	--ap-cyan-hover: #d9c2ff;
	--ap-green: #5eead4;
	--ap-grad: linear-gradient(135deg, #a855f7 0%, #6366f1 55%, #22d3ee 130%);
}
[data-design='techno'] {
	color-scheme: dark;
}
[data-design='techno'] body {
	background-color: #07080d !important;
	background-image:
		radial-gradient(900px 520px at 85% -10%, rgb(168 85 247 / 0.24), transparent 62%),
		radial-gradient(760px 480px at -10% 80%, rgb(34 211 238 / 0.12), transparent 60%),
		linear-gradient(rgb(255 255 255 / 0.022) 1px, transparent 1px),
		linear-gradient(90deg, rgb(255 255 255 / 0.022) 1px, transparent 1px) !important;
	background-size:
		auto,
		auto,
		44px 44px,
		44px 44px !important;
	background-attachment: fixed !important;
	color: var(--ink);
}
[data-design='techno'] .ap-auth {
	background: transparent;
}
[data-design='techno'] .ap-auth-box {
	max-width: 440px;
	padding-right: 0;
}
[data-design='techno'] .ap-back {
	color: var(--muted);
	font-weight: 500;
}
[data-design='techno'] .ap-back:hover {
	color: var(--ink);
	text-decoration: none;
}
[data-design='techno'] .ap-auth-head {
	background: transparent;
	border: 0;
	padding: 0 0 22px;
	align-items: center;
	text-align: center;
	overflow: visible;
}
[data-design='techno'] .ap-auth-head::before,
[data-design='techno'] .ap-auth-head::after {
	display: none;
}
[data-design='techno'] .ap-brand {
	align-self: center;
	flex-direction: column;
	gap: 12px;
}
[data-design='techno'] .ap-brand img {
	width: 64px;
	height: 64px;
	border: 1px solid rgb(255 255 255 / 0.22);
	box-shadow:
		0 0 0 6px rgb(168 85 247 / 0.12),
		0 0 44px 4px rgb(168 85 247 / 0.55);
}
[data-design='techno'] .ap-brand-word {
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	transform: none;
	font-family: ui-monospace, 'Cascadia Mono', 'Segoe UI Mono', Menlo, monospace;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: #9b6dff;
}
[data-design='techno'] .ap-auth-title {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
	background-image: linear-gradient(180deg, #fff 30%, #b9a6e8);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
[data-design='techno'] .ap-auth-sub {
	color: var(--muted);
}
[data-design='techno'] .ap-auth-sub strong {
	color: var(--ink);
}
[data-design='techno'] .ap-card {
	padding: 26px 24px;
	background:
		linear-gradient(180deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0) 40%),
		rgb(16 19 29 / 0.78);
	backdrop-filter: blur(18px) saturate(1.3);
	border: 1px solid #2c3450;
	border-radius: 20px;
	box-shadow:
		0 1px 0 rgb(255 255 255 / 0.07) inset,
		0 40px 90px -30px rgb(0 0 0 / 0.9),
		0 0 80px -30px rgb(168 85 247 / 0.5);
}
[data-design='techno'] .ap-card > * + * {
	margin-top: 16px;
}
[data-design='techno'] .ap-notice,
[data-design='techno'] .ap-error {
	border-radius: 12px;
	border-width: 1px;
}
[data-design='techno'] .ap-notice {
	background: rgb(168 85 247 / 0.1);
	border-color: rgb(168 85 247 / 0.35);
	color: #d9c2ff;
}
[data-design='techno'] .ap-error {
	background: rgb(255 107 139 / 0.1);
	border-color: rgb(255 107 139 / 0.4);
	color: #ff8fa6;
}
[data-design='techno'] .ap-field label {
	margin-bottom: 6px;
	font-family: ui-monospace, 'Cascadia Mono', 'Segoe UI Mono', Menlo, monospace;
	font-weight: 500;
	letter-spacing: 0.14em;
	color: #8a93b0;
}
[data-design='techno'] .ap-optional {
	color: #6b7594;
}
[data-design='techno'] .ap-input {
	min-height: 48px;
	background: rgb(255 255 255 / 0.04);
	border: 1px solid #2c3450;
	border-radius: 12px;
	color: var(--ink);
	caret-color: #a855f7;
	transition:
		border-color 0.2s var(--ease),
		box-shadow 0.2s var(--ease),
		background-color 0.2s var(--ease);
}
[data-design='techno'] .ap-input::placeholder {
	color: #56607f;
	opacity: 1;
}
[data-design='techno'] .ap-input:hover {
	border-color: #454e6b;
}
[data-design='techno'] .ap-input:focus {
	outline: none;
	background: rgb(255 255 255 / 0.06);
	border-color: #a855f7;
	box-shadow: 0 0 0 4px rgb(168 85 247 / 0.2);
}
[data-design='techno'] .ap-input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px #141826 inset;
	-webkit-text-fill-color: #f3f5ff;
}
[data-design='techno'] .ap-input[aria-invalid='true'] {
	border-color: #ff6b8b;
}
[data-design='techno'] .ap-toggle {
	color: #8a93b0;
	border-radius: 10px;
}
[data-design='techno'] .ap-toggle:hover {
	color: var(--ink);
}
[data-design='techno'] .ap-toggle svg {
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}
[data-design='techno'] .ap-submit {
	min-height: 50px;
	color: #fff;
	background: var(--ap-grad);
	border: 1px solid rgb(255 255 255 / 0.2);
	border-radius: 12px;
	box-shadow:
		0 1px 0 rgb(255 255 255 / 0.28) inset,
		0 14px 34px -12px rgb(168 85 247 / 0.85);
	transition:
		transform 0.2s var(--ease),
		filter 0.2s var(--ease);
}
[data-design='techno'] .ap-submit:hover {
	color: #fff;
	filter: brightness(1.12);
}
[data-design='techno'] .ap-submit:active {
	transform: scale(0.98);
}
[data-design='techno'] .ap-submit:disabled {
	background: #1a2031;
	border-color: #262d44;
	color: #6b7594;
	box-shadow: none;
	filter: none;
}
[data-design='techno'] .ap-text-btn,
[data-design='techno'] .ap-link-cyan,
[data-design='techno'] .ap-link-gold {
	color: #c4a1ff;
	font-weight: 500;
	text-decoration: none;
}
[data-design='techno'] .ap-text-btn:hover,
[data-design='techno'] .ap-link-cyan:hover,
[data-design='techno'] .ap-link-gold:hover {
	color: #efe5ff;
	text-decoration: none;
}
[data-design='techno'] .ap-text-btn:disabled {
	color: #56607f;
}
[data-design='techno'] .ap-meter-bar {
	height: 6px;
	border: 0;
	border-radius: 999px;
	background: #1a2031;
}
[data-design='techno'] .ap-meter-fill {
	border-radius: 999px;
}
[data-design='techno'] .ap-state .ap-success {
	color: #5eead4;
}
[data-design='techno'] .ap-focus:focus-visible {
	outline: 2px solid #a855f7;
	outline-offset: 2px;
	border-radius: 8px;
}
[data-design='techno'] .ap-consent input {
	accent-color: #a855f7;
}

/* ---- Светлые демо-варианты: «Рассвет», «Атлас», «Орбита» ------------------
   Те же классы, другой характер. Общее для трёх: мягкие углы одной системы,
   рамка 1 px, без жёстких теней гайда. */
:root[data-design^='dawn'],
:root[data-design='atlas'],
:root[data-design='orbit'] {
	--ap-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 0c.9 7.4 3.7 10.9 12 12-8.3 1.1-11.1 4.6-12 12-.9-7.4-3.7-10.9-12-12C8.3 10.9 11.1 7.4 12 0z'/%3E%3C/svg%3E");
}
[data-design^='dawn'] .ap-auth-box,
[data-design='atlas'] .ap-auth-box,
[data-design='orbit'] .ap-auth-box {
	max-width: 440px;
	padding-right: 0;
}
[data-design^='dawn'] .ap-brand-word,
[data-design='atlas'] .ap-brand-word,
[data-design='orbit'] .ap-brand-word {
	transform: none;
	box-shadow: none;
}
[data-design^='dawn'] .ap-submit:active,
[data-design='atlas'] .ap-submit:active,
[data-design='orbit'] .ap-submit:active {
	transform: translateY(1px);
}
[data-design^='dawn'] .ap-toggle svg,
[data-design='atlas'] .ap-toggle svg,
[data-design='orbit'] .ap-toggle svg {
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

/* «Рассвет»: обложка — небо от ночного фиолетового к заре. */
:root[data-design^='dawn'] {
	--lemon: #ffe94d;
	--violet: #8a1fe0;
	--purple: #6922bf;
	--lilac: #f7f3fc;
	--lilac-2: #ebdffa;
	--ink: #1c1330;
	--ink-2: #3a2f52;
	--muted: #5f5578;
	--ap-border: #ddd0f0;
}
[data-design^='dawn'] body {
	background: #f7f3fc !important;
}
[data-design^='dawn'] .ap-auth {
	background: transparent;
}
[data-design^='dawn'] .ap-auth-head {
	isolation: isolate;
	padding: 22px 22px 26px;
	border: 0;
	border-radius: 20px 20px 0 0;
	background: linear-gradient(160deg, #3d1591 0%, #8a1fe0 42%, #f0567a 82%, #ff9d4d 108%);
}
[data-design^='dawn'] .ap-auth-head::before {
	z-index: -1;
	width: 300px;
	height: 130px;
	right: -150px;
	top: -70px;
	border: 1.5px dashed rgb(255 255 255 / 0.6);
	outline: 1px solid rgb(255 255 255 / 0.3);
	outline-offset: 34px;
}
[data-design^='dawn'] .ap-auth-head::after {
	z-index: -1;
	inset: 0;
	width: auto;
	height: auto;
	border: 0;
	border-radius: 0;
	transform: none;
	background-image: var(--ap-star), var(--ap-star), var(--ap-star), var(--ap-star);
	background-repeat: no-repeat;
	background-size:
		18px 18px,
		9px 9px,
		12px 12px,
		7px 7px;
	background-position:
		56% 22%,
		72% 70%,
		88% 34%,
		44% 62%;
}
[data-design^='dawn'] .ap-brand img {
	border: 2px solid #fff;
}
[data-design^='dawn'] .ap-brand-word {
	padding: 0;
	background: none;
	border: 0;
	font-size: 18px;
	color: #fff;
}
[data-design^='dawn'] .ap-card {
	padding: 22px;
	border: 1px solid #ddd0f0;
	border-top: 0;
	border-radius: 0 0 20px 20px;
	box-shadow: 0 18px 40px -18px rgb(60 21 145 / 0.3);
}
[data-design^='dawn'] .ap-notice {
	border: 0;
	border-radius: 0;
	margin: 0;
	background: #ebdffa;
}
[data-design^='dawn'] .ap-error {
	border-width: 1px;
	border-radius: 10px;
}
[data-design^='dawn'] .ap-input {
	border: 1px solid #8a74b3;
	border-radius: 10px;
}
[data-design^='dawn'] .ap-input:focus {
	outline: none;
	border-color: #8a1fe0;
	box-shadow: 0 0 0 3px rgb(138 31 224 / 0.16);
}
[data-design^='dawn'] .ap-submit {
	background: #8a1fe0;
	border: 1px solid #7419c2;
	border-radius: 10px;
	box-shadow: 0 1px 0 rgb(255 255 255 / 0.22) inset, 0 8px 18px -10px rgb(60 21 145 / 0.7);
}
[data-design^='dawn'] .ap-submit:hover {
	background: #7419c2;
	color: #fff;
}
[data-design^='dawn'] .ap-meter-bar {
	border: 0;
	border-radius: 999px;
	background: #ebdffa;
}

/* «Атлас»: лист карты — линии, сетка точками, созвездие пунктиром. */
:root[data-design='atlas'] {
	--lemon: #ffe14a;
	--violet: #6a1fd0;
	--purple: #4f17a8;
	--lilac: #f8f7fc;
	--lilac-2: #ece8f7;
	--ink: #1b1238;
	--ink-2: #382d5c;
	--muted: #5b5179;
	--ap-border: #2b1d5c;
}
[data-design='atlas'] body {
	background: #f8f7fc !important;
}
[data-design='atlas'] .ap-auth {
	background: transparent;
}
[data-design='atlas'] .ap-auth-head {
	padding: 20px 20px 22px;
	border: 1px solid #2b1d5c;
	border-bottom: 0;
	border-radius: 6px 6px 0 0;
	color: #1b1238;
	background-color: #fff;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 90' fill='none'%3E%3Cpath d='M8 62 46 34 88 46 124 14 190 24' stroke='%232b1d5c' stroke-width='1.2' stroke-dasharray='5 5'/%3E%3Cg fill='%232b1d5c'%3E%3Ccircle cx='8' cy='62' r='3'/%3E%3Ccircle cx='46' cy='34' r='4'/%3E%3Ccircle cx='88' cy='46' r='3'/%3E%3C/g%3E%3Ccircle cx='124' cy='14' r='5' fill='%23ff7a3d'/%3E%3Ccircle cx='190' cy='24' r='4' fill='%236a1fd0'/%3E%3C/svg%3E"),
		radial-gradient(circle, rgb(43 29 92 / 0.28) 1px, transparent 1.4px);
	background-repeat: no-repeat, repeat;
	background-position:
		right 16px top 18px,
		0 0;
	background-size:
		200px auto,
		22px 22px;
}
[data-design='atlas'] .ap-auth-head::before,
[data-design='atlas'] .ap-auth-head::after {
	display: none;
}
[data-design='atlas'] .ap-brand,
[data-design='atlas'] .ap-brand:hover {
	color: #1b1238;
}
[data-design='atlas'] .ap-brand img {
	border: 1px solid #2b1d5c;
}
[data-design='atlas'] .ap-brand-word {
	border: 1px solid #2b1d5c;
	border-radius: 3px;
	background: #fff;
	font-weight: 700;
}
[data-design='atlas'] .ap-auth-title {
	display: table;
	padding-inline-end: 10px;
	background: #fff;
	color: #1b1238;
}
[data-design='atlas'] .ap-auth-sub {
	display: table;
	background: #fff;
	color: #382d5c;
}
[data-design='atlas'] .ap-auth-sub strong {
	color: #4f17a8;
}
[data-design='atlas'] .ap-card {
	border: 1px solid #2b1d5c;
	border-radius: 0 0 6px 6px;
	box-shadow: none;
}
[data-design='atlas'] .ap-notice,
[data-design='atlas'] .ap-error {
	border-width: 1px;
	border-radius: 4px;
}
[data-design='atlas'] .ap-notice {
	margin: 0;
	border-color: #2b1d5c;
	border-bottom: 0;
	border-radius: 0;
	background: #ece8f7;
}
[data-design='atlas'] .ap-input {
	border: 1px solid #8d82b4;
	border-radius: 4px;
}
[data-design='atlas'] .ap-input:focus {
	outline: none;
	border-color: #6a1fd0;
	box-shadow: 0 0 0 1px #6a1fd0;
}
[data-design='atlas'] .ap-submit {
	background: #6a1fd0;
	border: 1px solid #4f17a8;
	border-radius: 4px;
	box-shadow: none;
}
[data-design='atlas'] .ap-submit:hover {
	background: #4f17a8;
	color: #fff;
}
[data-design='atlas'] .ap-meter-bar {
	border-width: 1px;
	border-radius: 3px;
}

/* «Орбита»: плоские блоки, капсулы, оранжевое главное действие. */
:root[data-design='orbit'] {
	--lemon: #ffe84a;
	--violet: #7a1fe6;
	--purple: #5f17bd;
	--lilac: #f3edfd;
	--lilac-2: #e6d9fb;
	--ink: #1a1030;
	--ink-2: #382b57;
	--muted: #5c5078;
	--ap-border: #e6d9fb;
}
[data-design='orbit'] body {
	background: #f3edfd !important;
}
[data-design='orbit'] .ap-auth {
	background: transparent;
}
[data-design='orbit'] .ap-auth-head {
	isolation: isolate;
	padding: 24px 24px 28px;
	border: 0;
	border-radius: 24px;
	margin-bottom: 10px;
	background: #7a1fe6;
}
[data-design='orbit'] .ap-auth-head::before {
	z-index: -1;
	width: 330px;
	height: 190px;
	right: -80px;
	top: auto;
	bottom: -110px;
	border: 2px dashed rgb(255 255 255 / 0.7);
}
[data-design='orbit'] .ap-auth-head::after {
	z-index: -1;
	inset: 0;
	width: auto;
	height: auto;
	border: 0;
	border-radius: 0;
	transform: none;
	background-image: var(--ap-star), var(--ap-star), radial-gradient(circle, #ff7438 0 11px, transparent 12px);
	background-repeat: no-repeat;
	background-size:
		18px 18px,
		10px 10px,
		26px 26px;
	background-position:
		66% 24%,
		90% 30%,
		80% 74%;
}
[data-design='orbit'] .ap-brand img {
	border: 3px solid #fff;
}
[data-design='orbit'] .ap-brand-word {
	border: 0;
	border-radius: 999px;
	padding: 3px 12px;
}
[data-design='orbit'] .ap-card {
	padding: 24px;
	border: 0;
	border-radius: 24px;
	box-shadow: none;
}
[data-design='orbit'] .ap-notice,
[data-design='orbit'] .ap-error {
	border: 0;
	border-radius: 14px;
}
[data-design='orbit'] .ap-error {
	background: #ffe4d6;
	color: #8f2c00;
}
[data-design='orbit'] .ap-input {
	border: 0;
	border-radius: 14px;
	background: #f3edfd;
}
[data-design='orbit'] .ap-input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px #f3edfd inset;
}
[data-design='orbit'] .ap-input:focus {
	outline: none;
	box-shadow: 0 0 0 2px #7a1fe6;
}
[data-design='orbit'] .ap-submit {
	background: #ff7438;
	color: #1a1030;
	border: 0;
	border-radius: 999px;
	box-shadow: none;
}
[data-design='orbit'] .ap-submit:hover {
	background: #ff8a57;
	color: #1a1030;
}
[data-design='orbit'] .ap-submit:disabled {
	background: #e6d9fb;
	color: #7b6e9a;
}
[data-design='orbit'] .ap-meter-bar {
	border: 0;
	border-radius: 999px;
	background: #e6d9fb;
}

/* «Рассвет 2»: правки из дизайн-ревью поверх «Рассвета» (см. styles/dawn2.css). */
:root[data-design='dawn2'] {
	--violet: #a400ff;
	--lemon: #fff851;
}
[data-design='dawn2'] .ap-auth-head {
	border: 2px solid #0d0b10;
	border-bottom: 0;
	border-radius: 12px 12px 0 0;
	background: #24104f;
	box-shadow: 4px 4px 0 #0d0b10;
}
[data-design='dawn2'] .ap-auth-head::after {
	display: none;
}
[data-design='dawn2'] .ap-brand img {
	border: 2px solid #0d0b10;
}
[data-design='dawn2'] .ap-card {
	border: 2px solid #0d0b10;
	border-top: 0;
	border-radius: 0 0 12px 12px;
	box-shadow: 4px 4px 0 #0d0b10;
}
[data-design='dawn2'] .ap-input {
	border-radius: 4px;
}
[data-design='dawn2'] .ap-submit {
	background: #a400ff;
	border: 2px solid #0d0b10;
	border-radius: 8px;
	box-shadow: 3px 3px 0 #0d0b10;
}
[data-design='dawn2'] .ap-submit:hover {
	background: #8a00d6;
}
