/* ═══════════════════════════════════════════════════════════════
   AUTH PAGE — AnimeSocial / EDDAS
   Pixel-perfect порт дизайна dc.local1 (React + Tailwind).
   Author: Чепела Даниил Максимович
   ═══════════════════════════════════════════════════════════════ */

/* ── Self-hosted Syne (latin only) — display-шрифт для латиницы/цифр ── */
@font-face {
	font-family: 'Syne'; font-style: normal; font-weight: 700; font-display: swap;
	src: url('/design/EDDAS/fonts/syne/Syne-Bold.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Syne'; font-style: normal; font-weight: 800; font-display: swap;
	src: url('/design/EDDAS/fonts/syne/Syne-ExtraBold.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Syne'; font-style: normal; font-weight: 600; font-display: swap;
	src: url('/design/EDDAS/fonts/syne/Syne-SemiBold.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Self-hosted Inter (latin + cyrillic) — fallback для кириллицы + body ── */
@font-face {
	font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
	src: url('/design/EDDAS/fonts/inter/inter-latin-400.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
	src: url('/design/EDDAS/fonts/inter/inter-cyrillic-400.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
	src: url('/design/EDDAS/fonts/inter/inter-latin-500.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
	src: url('/design/EDDAS/fonts/inter/inter-cyrillic-500.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
	src: url('/design/EDDAS/fonts/inter/inter-latin-600.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
	src: url('/design/EDDAS/fonts/inter/inter-cyrillic-600.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
	src: url('/design/EDDAS/fonts/inter/inter-latin-700.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
	src: url('/design/EDDAS/fonts/inter/inter-cyrillic-700.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap;
	src: url('/design/EDDAS/fonts/inter/inter-latin-800.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap;
	src: url('/design/EDDAS/fonts/inter/inter-cyrillic-800.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ── Tokens (из dc.local1 index.css) ── */
:root {
	--brand:              #4c637b;
	--brand-hover:        #435a71;
	--brand-active:       #3b5167;
	--brand-violet:       #5181b8;
	--brand-sakura:       #5a7a99;
	--brand-deep-purple:  #3a506b;
	--brand-accent:       #5181b8;
	--bg-page:            #f4f6fa;
	--bg-soft:            #fafbfc;
	--bg-card:            #ffffff;
	--border-card:        #e5e9ef;
	--text-primary:       #222222;
	--text-secondary:     #515365;
	--text-muted:         #8a8a9a;
	--placeholder:        #b8b8c4;
	--success:            #10b981;
	--error:              #e64646;
	/* Gradients (dc.local tailwind.config.js:38-42) */
	--brand-gradient:     linear-gradient(160deg, #3a506b 0%, #4c637b 45%, #5a7a99 100%);
	--brand-gradient-soft:linear-gradient(135deg, #5a7a99, #5181b8);
	/* Shadows (dc.local tailwind.config.js:34-37) */
	--shadow-brand-glow:  0 4px 14px rgba(76, 99, 123, 0.25);
	--shadow-brand-soft:  0 1px 3px rgba(76, 99, 123, 0.15);
}

.no_display { display: none !important; }

/* ══════════════════════ LAYOUT (AuthPage wrapper) ══════════════════════
   dc: <div className="auth-no-cursor min-h-screen bg-white lg:h-screen lg:flex lg:overflow-hidden"> */
.auth-page {
	min-height: 100vh;
	background: #fff;
	display: flex;
	flex-direction: column;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	color: var(--text-primary);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
@media (min-width: 1024px) {
	.auth-page {
		flex-direction: row;
		height: 100vh;
		overflow: hidden;
	}
}

/* ══════════════════════ HERO (LEFT) ══════════════════════
   dc: <div className="relative w-full h-[360px] flex-shrink-0 overflow-hidden lg:h-full lg:w-[52%]"> */
.auth-hero {
	position: relative;
	width: 100%;
	height: 360px;
	flex-shrink: 0;
	overflow: hidden;
}
@media (min-width: 1024px) {
	.auth-hero { width: 52%; height: 100%; }
}

.auth-hero__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* White vignette в углах hero (dc: inline style, 4 radial-gradients) */
.auth-hero__glow {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(ellipse at 0%   0%,   rgba(255,255,255,0.55) 0%, transparent 35%),
		radial-gradient(ellipse at 100% 0%,   rgba(255,255,255,0.55) 0%, transparent 35%),
		radial-gradient(ellipse at 0%   100%, rgba(255,255,255,0.65) 0%, transparent 30%),
		radial-gradient(ellipse at 100% 100%, rgba(255,255,255,0.65) 0%, transparent 30%);
}

.auth-hero__petals {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	overflow: hidden;
}

/* dc: <div className="relative z-[3] h-full flex flex-col justify-between p-6 lg:p-12">
   ВНИМАНИЕ: без gap! `justify-between` распределяет 3 элемента (brand/lead/stats) */
.auth-hero__content {
	position: relative;
	z-index: 3;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 24px; /* p-6 */
	box-sizing: border-box;
}
@media (min-width: 1024px) {
	.auth-hero__content { padding: 48px; } /* lg:p-12 */
}

/* ── Brand (logo + BETA badge) ──
   dc: <div className="flex items-center gap-3 anim-fade-up" style={{ animationDelay: '0.1s' }}> */
.auth-hero__brand {
	display: flex;
	align-items: center;
	gap: 12px; /* gap-3 */
}
/* dc: <div className="font-display text-[22px] font-extrabold text-brand tracking-tight"> */
.auth-hero__brand-name {
	font-family: 'Syne', 'Inter', system-ui, sans-serif;
	font-size: 22px;
	font-weight: 800;
	color: var(--brand);
	letter-spacing: -0.025em; /* tracking-tight */
	line-height: 1;
}
/* dc: <span className="text-[10px] font-medium text-brand bg-brand/10 px-2.5 py-1 rounded-full tracking-wider"> */
.auth-hero__brand-badge {
	font-size: 10px;
	font-weight: 500;
	color: var(--brand);
	background: rgba(76, 99, 123, 0.1);
	padding: 4px 10px; /* py-1 px-2.5 */
	border-radius: 9999px;
	letter-spacing: 0.05em; /* tracking-wider */
}

/* ── Lead (tag + headline + pitch) ──
   dc: <div className="hidden lg:block max-w-[460px]"> */
.auth-hero__lead { display: none; max-width: 460px; }
@media (min-width: 1024px) {
	.auth-hero__lead { display: block; }
}

/* dc: text-[11px] font-medium tracking-[0.15em] uppercase text-[#8a8a9a] mb-6 flex items-center gap-2.5 */
.auth-hero__tag {
	display: flex;
	align-items: center;
	gap: 10px; /* gap-2.5 */
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #8a8a9a;
	margin: 0 0 24px 0; /* mb-6 */
}
.auth-hero__tag-dot {
	color: var(--brand-sakura);
}

/* dc: font-display text-[64px] font-extrabold text-brand leading-[0.94] tracking-[-0.04em] mb-6 */
.auth-hero__headline {
	font-family: 'Syne', 'Inter', system-ui, sans-serif;
	font-size: 64px;
	font-weight: 800;
	color: var(--brand);
	line-height: 0.94;
	letter-spacing: -0.04em;
	margin: 0 0 24px 0; /* mb-6 */
}
/* dc mobile: text-[36px] tracking-[-0.03em] */
.auth-hero__headline--sm {
	font-size: 36px;
	letter-spacing: -0.03em;
	margin: 0;
}
/* dc: <span className="block overflow-hidden"> — wrapper для reveal-line */
.auth-hero__headline-line {
	display: block;
	overflow: hidden;
}

/* dc: text-[15px] text-[#515365] leading-relaxed */
.auth-hero__pitch {
	font-size: 15px;
	color: #515365;
	line-height: 1.625; /* leading-relaxed */
	margin: 0;
}

/* ── Stats (desktop only) ──
   dc: <div className="hidden lg:flex gap-10 anim-fade-up"> */
.auth-hero__stats { display: none; gap: 40px; }
@media (min-width: 1024px) {
	.auth-hero__stats { display: flex; }
}
/* dc: font-display text-[28px] font-extrabold text-brand leading-none */
.auth-hero__stat-num {
	font-family: 'Syne', 'Inter', system-ui, sans-serif;
	font-size: 28px;
	font-weight: 800;
	color: var(--brand);
	line-height: 1;
}
/* dc: text-[11px] font-medium uppercase tracking-wider text-[#8a8a9a] mt-1 */
.auth-hero__stat-label {
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em; /* tracking-wider */
	color: #8a8a9a;
	margin-top: 4px; /* mt-1 */
}

/* ── Mobile hero headline (< 1024px) ── */
.auth-hero__mobile { display: block; }
@media (min-width: 1024px) {
	.auth-hero__mobile { display: none; }
}

/* ══════════════════════ PANEL (RIGHT / form container) ══════════════════════
   dc: <div className="flex-1 flex items-start lg:items-center justify-center px-5 py-8 lg:p-10 overflow-y-auto"> */
.auth-panel {
	flex: 1;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 32px 20px; /* py-8 px-5 */
	overflow-y: auto;
	min-height: 0;
}
@media (min-width: 1024px) {
	.auth-panel {
		align-items: center;
		padding: 40px; /* lg:p-10 */
	}
}
/* dc: <div className="w-full max-w-[420px]"> */
.auth-panel__inner {
	width: 100%;
	max-width: 420px;
	box-sizing: border-box;
}

/* ══════════════════════ SECTION HEAD (h2 + p) ══════════════════════
   dc: <div className="mb-6"> */
.auth-section__head { margin-bottom: 24px; /* mb-6 */ }
/* dc: font-display text-[32px] font-extrabold text-[#222] tracking-tight */
.auth-section__head h2 {
	font-family: 'Syne', 'Inter', system-ui, sans-serif;
	font-size: 32px;
	font-weight: 800;
	color: #222;
	letter-spacing: -0.025em; /* tracking-tight */
	margin: 0;
	line-height: 1.1;
}
/* dc: text-[14px] text-[#8a8a9a] mt-1 */
.auth-section__head p {
	font-size: 14px;
	color: #8a8a9a;
	margin: 4px 0 0 0; /* mt-1 */
	line-height: 1.4;
}

/* ══════════════════════ SOCIAL BUTTONS ══════════════════════
   dc: grid-cols-3 gap-2 mb-5 */
.auth-social {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px; /* gap-2 */
	margin-bottom: 20px; /* mb-5 */
}
/* dc: flex items-center justify-center gap-2 py-2.5 px-3 rounded-lg border border-[#e5e9ef] bg-white text-[13px] font-medium text-[#222] */
.auth-social__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px; /* gap-2 */
	padding: 10px 12px; /* py-2.5 px-3 */
	background: #fff;
	border: 1px solid var(--border-card);
	border-radius: 8px; /* rounded-lg */
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	color: #222;
	cursor: pointer;
	transition: all .2s;
}
.auth-social__btn:hover {
	border-color: var(--brand);
	background: rgba(76, 99, 123, 0.05); /* bg-brand/5 */
}

body.auth-modal-open {
	overflow: hidden;
}
.auth-dev-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .18s ease;
}
.auth-dev-modal--show {
	opacity: 1;
	pointer-events: auto;
}
.auth-dev-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(25, 31, 38, 0.46);
	backdrop-filter: blur(6px);
}
.auth-dev-modal__box {
	position: relative;
	width: min(420px, 100%);
	box-sizing: border-box;
	padding: 30px 28px 26px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(30, 42, 54, 0.28);
	text-align: center;
	transform: translateY(10px) scale(.98);
	transition: transform .18s ease;
}
.auth-dev-modal--show .auth-dev-modal__box {
	transform: translateY(0) scale(1);
}
.auth-dev-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	border: 0;
	background: transparent;
	color: #8a8a9a;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.auth-dev-modal__close:hover {
	color: #222;
}
.auth-dev-modal__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: var(--brand-gradient);
	color: #fff;
	font-size: 24px;
	font-weight: 800;
}
.auth-dev-modal__box h3 {
	margin: 0 0 10px;
	font-family: 'Syne', 'Inter', system-ui, sans-serif;
	font-size: 22px;
	line-height: 1.2;
	color: #222;
}
.auth-dev-modal__box p {
	margin: 0 0 22px;
	color: #515365;
	font-size: 14px;
	line-height: 1.55;
}
.auth-dev-modal__btn {
	width: 100%;
	padding: 12px 18px;
	border: 0;
	border-radius: 8px;
	background: var(--brand-gradient);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.auth-dev-modal__btn:hover {
	box-shadow: var(--shadow-brand-glow);
}
/* dc: <span className="hidden sm:inline"> — scroll sm breakpoint = 640px */
@media (max-width: 639px) {
	.auth-social__btn span { display: none; }
}

/* ══════════════════════ DIVIDER "или через почту" ══════════════════════
   dc: relative flex items-center my-5 */
.auth-divider {
	display: flex;
	align-items: center;
	margin: 20px 0; /* my-5 */
}
/* dc: flex-1 h-px bg-[#e5e9ef] */
.auth-divider__line {
	flex: 1;
	height: 1px;
	background: var(--border-card);
}
/* dc: px-3 text-[11px] text-[#8a8a9a] uppercase tracking-wider font-medium */
.auth-divider__label {
	padding: 0 12px; /* px-3 */
	font-size: 11px;
	color: #8a8a9a;
	text-transform: uppercase;
	letter-spacing: 0.05em; /* tracking-wider */
	font-weight: 500;
}

/* ══════════════════════ FORM FIELDS ══════════════════════
   dc: <form className="space-y-4"> — 16px между прямыми детьми (кроме первого)
   Реализуем через общий margin-bottom на .auth-field */
.auth-field {
	margin-bottom: 16px; /* space-y-4 */
}
.auth-field:last-child { margin-bottom: 0; }

/* dc: block text-[12px] font-medium text-[#222] mb-1.5 */
.auth-field label {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: #222;
	margin-bottom: 6px; /* mb-1.5 */
}
.auth-field__hint {
	font-weight: 400;
	color: var(--text-muted);
	font-size: 11px;
}
.auth-field__note {
	font-size: 12px;
	color: var(--text-muted);
	margin-top: 6px;
	min-height: 16px;
	line-height: 1.4;
}
.auth-field__note.is-error   { color: var(--error); }
.auth-field__note.is-success { color: var(--success); }

/* dc: w-full px-4 py-3 bg-white border border-[#e5e9ef] rounded-lg text-[14px] text-[#222]
   placeholder:text-[#b8b8c4] focus:outline-none focus:border-brand focus:ring-2 focus:ring-brand/15 */
.auth-input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 12px 16px; /* py-3 px-4 */
	background: #fff;
	border: 1px solid var(--border-card);
	border-radius: 8px; /* rounded-lg */
	font-family: inherit;
	font-size: 14px;
	color: #222;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.auth-input::placeholder { color: var(--placeholder); }
.auth-input:focus {
	border-color: var(--brand);
	box-shadow: 0 0 0 2px rgba(76, 99, 123, 0.15); /* ring-2 ring-brand/15 */
}
/* Input с кнопкой "Показать" — pr-20 = 80px */
.auth-input--pwd { padding-right: 80px !important; }

.auth-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}
.auth-input--prefixed { padding-left: 32px !important; }
.auth-input__prefix {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 14px;
	color: var(--text-muted);
	font-weight: 500;
	pointer-events: none;
}
/* dc: absolute right-3 top-1/2 -translate-y-1/2 text-[11px] font-medium text-brand */
.auth-input__toggle {
	position: absolute;
	right: 12px; /* right-3 */
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: 0;
	font-family: inherit;
	font-size: 11px;
	font-weight: 500;
	color: var(--brand);
	cursor: pointer;
	padding: 4px 6px;
}
.auth-input__toggle:hover { color: var(--brand-hover); }

/* ══════════════════════ ROW / GRID ══════════════════════
   dc (login remember/forgot): flex items-center justify-between pt-1 */
.auth-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 4px; /* pt-1 */
	margin-bottom: 16px; /* визуально как space-y-4 для подхода к кнопке */
}
.auth-row--grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	align-items: start;
	padding-top: 0;
	margin-bottom: 16px;
}
.auth-row--grid .auth-field { margin-bottom: 0; }

/* ══════════════════════ CHECKBOX ══════════════════════
   dc: flex items-center gap-2 text-[13px] text-[#515365] cursor-pointer select-none */
.auth-check {
	display: flex;
	align-items: center;
	gap: 8px; /* gap-2 */
	font-size: 13px;
	color: #515365;
	cursor: pointer;
	user-select: none;
	line-height: 1.4;
}
/* dc register uses items-start gap-2 pt-1 */
.auth-check--terms {
	align-items: flex-start;
	padding-top: 4px;
	margin-bottom: 16px;
}
/* dc: w-4 h-4 rounded border-[#e5e9ef] text-brand accent-brand */
.auth-check input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--brand);
	cursor: pointer;
	flex-shrink: 0;
}
.auth-check--terms input[type="checkbox"] {
	margin-top: 2px;
}

/* ══════════════════════ LINK ══════════════════════
   dc: text-[13px] font-medium text-brand hover:text-brand-hover */
.auth-link {
	font-size: 13px;
	font-weight: 500;
	color: var(--brand);
	cursor: pointer;
	text-decoration: none;
	background: none;
	border: 0;
	padding: 0;
	font-family: inherit;
}
.auth-link:hover { color: var(--brand-hover); }

/* ══════════════════════ PRIMARY BUTTON ══════════════════════
   dc: w-full py-3 rounded-lg bg-brand-gradient text-white text-[14px] font-semibold
        hover:shadow-brand-glow hover:-translate-y-0.5 active:translate-y-0 transition-all */
.auth-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 18px; /* py-3 */
	border: 0;
	border-radius: 8px; /* rounded-lg */
	font-family: inherit;
	font-size: 14px;
	font-weight: 600; /* font-semibold */
	cursor: pointer;
	transition: transform .2s, box-shadow .2s;
	box-sizing: border-box;
}
.auth-btn--primary {
	background: var(--brand-gradient);
	color: #fff;
}
.auth-btn--primary:hover {
	box-shadow: var(--shadow-brand-glow);
	transform: translateY(-2px); /* -translate-y-0.5 */
}
.auth-btn--primary:active {
	transform: translateY(0);
}
.auth-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* ══════════════════════ SWITCH (Нет аккаунта? Создать) ══════════════════════
   dc: mt-5 text-center text-[13px] text-[#515365] */
.auth-switch {
	margin-top: 20px; /* mt-5 */
	text-align: center;
	font-size: 13px;
	color: #515365;
}
/* dc: font-semibold text-brand hover:text-brand-hover */
.auth-switch a {
	font-weight: 600;
	color: var(--brand);
	cursor: pointer;
	text-decoration: none;
	margin-left: 4px; /* Tailwind space-before */
}
.auth-switch a:hover { color: var(--brand-hover); }

/* ══════════════════════ AVATAR UPLOAD (register) ══════════════════════ */
.auth-avatar {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
}
.auth-avatar__preview {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--brand-gradient-soft);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
	box-shadow: 0 2px 8px rgba(76, 99, 123, 0.2);
	cursor: pointer;
	overflow: hidden;
	flex-shrink: 0;
}
.auth-avatar__preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.auth-avatar__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.auth-avatar__hint {
	font-size: 11px;
	color: var(--text-muted);
}
.hidden-input {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

/* ══════════════════════ PASSWORD STRENGTH (register) ══════════════════════ */
.auth-strength { margin-top: 8px; }
.auth-strength__bars { display: flex; gap: 4px; }
.auth-strength__bars span {
	flex: 1;
	height: 4px;
	border-radius: 999px;
	background: var(--border-card);
	transition: background-color .25s;
}
.auth-strength__label {
	font-size: 11px;
	margin-top: 4px;
	min-height: 14px;
}

/* ══════════════════════ GENRE CHIPS (register) ══════════════════════ */
.auth-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-chip {
	padding: 6px 12px;
	background: #fff;
	border: 1px solid var(--border-card);
	border-radius: 999px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	color: #515365;
	cursor: pointer;
	transition: all .15s;
}
.auth-chip:hover {
	border-color: var(--brand);
	color: var(--brand);
}
.auth-chip--active {
	background: var(--brand-gradient);
	border-color: transparent;
	color: #fff;
	box-shadow: var(--shadow-brand-soft);
}
.auth-chip--active:hover {
	border-color: transparent;
	color: #fff;
}

/* ══════════════════════ SAKURA PETALS (цвета EDDAS-slate) ══════════════════════
   dc index.css:147-168 */
.sakura-petal {
	position: absolute;
	top: -20px;
	background: radial-gradient(ellipse at 30% 30%, #e8f0f9, #b8c7d7);
	border-radius: 50% 0 50% 50%;
	opacity: 0;
	animation: sakura-fall linear infinite;
	filter: blur(0.3px);
	pointer-events: none;
}
@keyframes sakura-fall {
	0%   { opacity: 0; transform: translateY(-20px) rotate(0deg) scale(0.8); }
	10%  { opacity: 0.7; }
	90%  { opacity: 0.4; }
	100% { opacity: 0; transform: translateY(var(--fall-distance, 100vh)) rotate(720deg) scale(0.35); }
}

/* ══════════════════════ ANIMATIONS (dc-style: fade-up + reveal-line) ══════════════════════
   dc index.css:176-201 */
@keyframes fade-up {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes reveal-line {
	from { transform: translateY(110%); }
	to   { transform: translateY(0); }
}
/* Custom property --delay позволяет задавать delay inline через style="--delay:.25s"
   Это работает надёжнее чем inline animation-delay, который не всегда применяется */
.anim-fade-up {
	opacity: 0;
	animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	animation-delay: var(--delay, 0s);
}
.anim-reveal-line {
	display: block;
	transform: translateY(110%);
	animation: reveal-line 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	animation-delay: var(--delay, 0s);
	will-change: transform;
}

/* Если юзер выбрал prefers-reduced-motion — показываем сразу */
@media (prefers-reduced-motion: reduce) {
	.anim-fade-up, .anim-reveal-line {
		animation: none !important;
		opacity: 1;
		transform: none;
	}
}

/* ══════════════════════ CUSTOM CURSOR (desktop only) ══════════════════════
   dc CustomCursor.jsx */
.auth-cursor-dot {
	position: fixed;
	width: 10px;
	height: 10px;
	background: var(--brand);
	border-radius: 50%;
	pointer-events: none;
	z-index: 9999;
	transform: translate(-50%, -50%);
	mix-blend-mode: multiply;
	left: -100px; top: -100px;
	transition: width .3s, height .3s;
}
.auth-cursor-follower {
	position: fixed;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(76, 99, 123, 0.3);
	border-radius: 50%;
	pointer-events: none;
	z-index: 9998;
	transform: translate(-50%, -50%);
	left: -100px; top: -100px;
	transition: width .3s, height .3s;
}
@media (hover: none), (max-width: 1023px) {
	.auth-cursor-dot, .auth-cursor-follower { display: none !important; }
	.auth-no-cursor, .auth-no-cursor * { cursor: auto !important; }
}
@media (hover: hover) and (min-width: 1024px) {
	.auth-no-cursor, .auth-no-cursor * { cursor: none !important; }
}

/* ══════════════════════ SCROLLBAR ══════════════════════ */
.auth-panel::-webkit-scrollbar { width: 6px; }
.auth-panel::-webkit-scrollbar-track { background: transparent; }
.auth-panel::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* ══════════════════════ REGISTER-SPECIFIC overrides ══════════════════════
   dc RegisterForm использует более компактные spacing:
   - mb-5 = 20px вместо mb-6 = 24px (header)
   - space-y-3 = 12px вместо space-y-4 = 16px (между полями)
   - py-2.5 = 10px вместо py-3 = 12px (inputs)
   - mt-4 = 16px вместо mt-5 = 20px (footer) */
#register .auth-section__head { margin-bottom: 20px; /* mb-5 */ }
#register .auth-field         { margin-bottom: 12px; /* space-y-3 */ }
#register .auth-field label   { margin-bottom: 6px; }
#register .auth-input         { padding: 10px 16px; /* py-2.5 px-4 */ }
#register .auth-input--pwd    { padding-right: 80px !important; }
#register .auth-row--grid     { margin-bottom: 12px; gap: 12px; }
#register .auth-row--grid .auth-field { margin-bottom: 0; }
#register .auth-switch        { margin-top: 16px; /* mt-4 */ }
#register .auth-check--terms  { padding-top: 4px; margin: 0 0 12px 0; }
#registerNote:empty {
	margin: 0;
	min-height: 0;
}
#registerNote:not(:empty) {
	margin: 4px 0 18px;
}
#register .auth-avatar        { margin-bottom: 20px; }

/* Mobile hero tag — dc: text-[10px] mb-3 gap-2 (у меня был 10px для desktop, 10px mobile) */
.auth-hero__mobile .auth-hero__tag {
	font-size: 10px; /* mobile: text-[10px] */
	margin-bottom: 12px; /* mb-3 */
	gap: 8px; /* gap-2 */
}
