/* ═══════════════════════════════════════
   ЯБлогер — AI Aurora Design System
   Светлая luminous-tech эстетика
═══════════════════════════════════════ */

/* ── Токены ── */
:root {
  --bg:           #F6F7FB;
  --bg-warm:      #FAFAFE;
  --surface:      #FFFFFF;
  --surface-hover: #F8F9FC;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --text:         #111827;
  --text-secondary: #4B5563;
  --text-muted:   #9CA3AF;
  --text-white:   #FFFFFF;
  --primary:      #7C3AED;
  --primary-light: #A78BFA;
  --primary-pale:  #EDE9FE;
  --primary-glow:  rgba(124, 58, 237, 0.15);
  --accent-blue:   #38BDF8;
  --accent-mint:   #2DD4BF;
  --accent-pink:   #F472B6;
  --accent-gold:   #FBBF24;
  --accent-coral:  #FB7185;
  --success:      #10B981;
  --warning:      #F59E0B;
  --error:        #EF4444;
  --info:         #3B82F6;
  --border:       rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 0, 0, 0.12);
  --shadow-sm:    0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md:    0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg:    0 12px 48px rgba(0, 0, 0, 0.08);
  --shadow-glow:  0 0 40px var(--primary-glow);
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-full:  9999px;
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
  --font-main:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sidebar-width: 260px;
  --content-max:   1600px;
  --header-height: 64px;
}


/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}


/* ── Фон с glow-пятнами ── */
.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  animation: auroraFloat1 20s ease-in-out infinite;
}

.aurora-bg::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
  animation: auroraFloat2 25s ease-in-out infinite;
}

.aurora-bg__mint {
  position: absolute;
  top: 50%;
  left: 60%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.05) 0%, transparent 70%);
  animation: auroraFloat3 22s ease-in-out infinite;
}

@keyframes auroraFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, 30px) scale(1.1); }
  66% { transform: translate(-30px, 50px) scale(0.95); }
}

@keyframes auroraFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, -30px) scale(1.05); }
}

@keyframes auroraFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -40px); }
}


/* ── Типографика ── */
.h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.h2 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

.h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.body-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.caption {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue) 50%, var(--accent-mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ── Карточки ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-normal) var(--ease-smooth),
              transform var(--duration-normal) var(--ease-spring);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card--interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card--glass {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card--glow {
  box-shadow: var(--shadow-glow);
  border-color: rgba(124, 58, 237, 0.12);
}


/* ── Кнопки ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-spring);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, #6D28D9 100%);
  color: var(--text-white);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  border-color: var(--primary-light);
  background: var(--primary-pale);
  color: var(--primary);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}

.btn--ghost:hover {
  color: var(--primary);
  background: var(--primary-pale);
}

.btn--lg {
  padding: 16px 40px;
  font-size: 1.0625rem;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.btn--icon {
  padding: 10px;
  border-radius: var(--radius-md);
}


/* ── Бейджи ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge--success { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.badge--warning { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.badge--primary { background: var(--primary-pale); color: var(--primary); }
.badge--gold { background: rgba(251, 191, 36, 0.1); color: #B45309; }
.badge--pink { background: rgba(244, 114, 182, 0.1); color: #DB2777; }


/* ── Пульс ── */
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  position: relative;
}

.pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--success);
  opacity: 0.3;
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(2); opacity: 0; }
}


/* ── Layout: Fullscreen ── */
.layout-full {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.layout-full__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 24px;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}


/* ── Layout: Studio ── */
.layout-studio {
  position: relative;
  min-height: 100vh;
  z-index: 1;
}

.layout-studio__header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.layout-studio__logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.layout-studio__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.layout-studio__nav-item {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.layout-studio__nav-item:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.layout-studio__nav-item--active {
  color: var(--primary);
  background: var(--primary-pale);
}

.layout-studio__body {
  padding: 32px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.layout-studio__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}


/* ── Секции ── */
.section {
  margin-bottom: 48px;
}

.section__header {
  margin-bottom: 20px;
}

.section__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.section__subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}


/* ── Hero (онбординг) ── */
.hero {
  text-align: center;
  padding: 60px 24px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.hero__badge { margin-bottom: 16px; }

.hero__title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__video {
  margin-top: 48px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}


/* ── Онбординг: шаги ── */
.onboarding-step {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  text-align: center;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 16px 24px 20px;
}

.onboarding-step__number {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.onboarding-step__title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 12px;
}

.onboarding-step__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.onboarding-step__actions {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.onboarding-progress {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 20px 24px 0;
}

.onboarding-progress__dot {
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: var(--border);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.onboarding-progress__dot--active {
  background: var(--primary);
  width: 56px;
}

.onboarding-progress__dot--done {
  background: var(--primary-light);
}


/* ── Утилиты ── */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.hidden { display: none; }


/* ═══════════════════════════════════════
   LANDING HERO — Полноэкранный immersive
═══════════════════════════════════════ */

.landing-hero {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #0F0B1A;
}

.landing-hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.landing-hero__video-file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.landing-hero__video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0F0B1A 0%, #1A0B2E 30%, #0B1A2E 60%, #0F0B1A 100%);
  z-index: 0;
  overflow: hidden;
}

.landing-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: heroGlow 8s ease-in-out infinite;
}

.landing-hero__glow--1 {
  width: 600px; height: 600px;
  background: #7C3AED;
  top: 5%; left: 15%;
}

.landing-hero__glow--2 {
  width: 500px; height: 500px;
  background: #06B6D4;
  top: 35%; right: 10%;
  animation-delay: -3s;
}

.landing-hero__glow--3 {
  width: 450px; height: 450px;
  background: #EC4899;
  bottom: 5%; left: 35%;
  animation-delay: -5s;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.25; }
  33% { transform: translate(40px, -30px) scale(1.15); opacity: 0.45; }
  66% { transform: translate(-30px, 40px) scale(0.9); opacity: 0.3; }
}

.landing-hero__float {
  position: absolute;
  font-size: 48px;
  opacity: 0.12;
  animation: heroFloat 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  transform: translate(var(--px, 0), var(--py, 0));
  transition: transform 0.4s ease-out;
}

.landing-hero__float--1 { top: 12%; left: 8%;     animation-delay: 0s;    font-size: 56px; }
.landing-hero__float--2 { top: 22%; right: 10%;    animation-delay: -1s;   font-size: 64px; }
.landing-hero__float--3 { top: 58%; left: 6%;      animation-delay: -2s;   font-size: 44px; }
.landing-hero__float--4 { top: 68%; right: 18%;    animation-delay: -3s;   font-size: 40px; }
.landing-hero__float--5 { top: 8%;  left: 48%;     animation-delay: -4s;   font-size: 52px; }
.landing-hero__float--6 { bottom: 18%; left: 22%;  animation-delay: -2.5s; font-size: 60px; }

@keyframes heroFloat {
  0%, 100% { transform: translate(var(--px, 0), var(--py, 0)) translateY(0); }
  50% { transform: translate(var(--px, 0), var(--py, 0)) translateY(-25px); }
}

.landing-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg,
      rgba(7, 7, 12, 0.72) 0%,
      rgba(7, 7, 12, 0.34) 42%,
      rgba(7, 7, 12, 0.14) 68%,
      rgba(7, 7, 12, 0.18) 100%);
}

.landing-hero__inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 64px;
}

.landing-hero__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.landing-hero__bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 500px;
}

.landing-hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 7vw, 6.8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #FFFFFF 0%, #E9DDFF 40%, #8ED8FF 72%, #FFFFFF 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShimmer 5s ease-in-out infinite;
}

@keyframes titleShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.landing-hero__subtitle {
  max-width: 460px;
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  text-wrap: balance;
}

.landing-hero__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 120px;
  padding: 24px 26px;
  border-radius: 24px;
  text-decoration: none;
  color: white;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition:
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s var(--ease-smooth),
    border-color 0.3s var(--ease-smooth),
    background 0.3s var(--ease-smooth);
}

.landing-hero__tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(255,255,255,0.14) 0%,
      rgba(255,255,255,0.06) 36%,
      rgba(255,255,255,0.02) 100%);
  pointer-events: none;
}

.landing-hero__tile::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
  opacity: 0.85;
  pointer-events: none;
}

.landing-hero__tile--primary {
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(216, 180, 254, 0.28);
  box-shadow:
    0 18px 50px rgba(124, 58, 237, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.landing-hero__tile:hover {
  transform: translateY(-5px) scale(1.01);
}

.landing-hero__tile--primary:hover {
  background: rgba(124, 58, 237, 0.25);
  border-color: rgba(232, 205, 255, 0.44);
  box-shadow:
    0 24px 64px rgba(124, 58, 237, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.14);
}

.landing-hero__tile-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.landing-hero__tile-title {
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  letter-spacing: -0.025em;
}

.landing-hero__tile-subtitle {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  max-width: 90%;
}

.landing-hero__tile-meta {
  position: relative;
  z-index: 1;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}


/* ── Адаптив ── */
@media (max-width: 1024px) {
  .landing-hero__inner {
    padding: 40px 32px;
  }

  .landing-hero__bottom {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .landing-hero__inner {
    padding: 32px 24px;
  }

  .landing-hero__title {
    font-size: clamp(3rem, 10vw, 4.5rem);
  }

  .landing-hero__subtitle {
    font-size: 0.95rem;
  }

  .landing-hero__tile {
    min-height: 100px;
    padding: 18px 20px;
    border-radius: 20px;
  }

  .landing-hero__tile::after {
    border-radius: 19px;
  }

  .landing-hero__tile-title {
    font-size: 1.1rem;
  }

  .landing-hero__tile-subtitle {
    font-size: 0.85rem;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .landing-hero__inner {
    padding: 24px 16px;
  }

  .landing-hero__tile {
    min-height: 88px;
    padding: 16px 16px;
    border-radius: 16px;
  }

  .landing-hero__tile::after {
    border-radius: 15px;
  }

  .landing-hero__tile-title {
    font-size: 1rem;
  }

  .landing-hero__tile-subtitle {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

/* ═══════════════════════════════════════
   SVOI — скрытый вход
═══════════════════════════════════════ */

.svoi-link {
  position: absolute;
  top: 28px;
  right: 40px;
  z-index: 10;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.4s ease, text-shadow 0.4s ease, letter-spacing 0.4s var(--ease-spring);
  user-select: none;
}

.svoi-link:hover {
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 5px;
  text-shadow: 0 0 30px rgba(124, 58, 237, 0.5), 0 0 60px rgba(124, 58, 237, 0.2);
}

.svoi-link:active {
  color: rgba(255, 255, 255, 1);
}


/* ═══════════════════════════════════════
   LOGIN PAGE — Вход для своих
═══════════════════════════════════════ */

.login-page {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  background: #0F0B1A;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-page__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-page__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.login-page__back {
  align-self: flex-start;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.login-page__back:hover {
  color: rgba(255, 255, 255, 0.9);
}

.login-page__footer {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.login-page__footer a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
}

.login-page__footer a:hover {
  color: #FFFFFF;
}


/* ── Карточка входа ── */

.login-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.login-card__header {
  text-align: center;
  margin-bottom: 32px;
}

.login-card__logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 6px;
  background: linear-gradient(135deg, #FFFFFF 0%, #A78BFA 50%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.login-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.login-card__subtitle {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
}


/* ── Методы входа ── */

.login-card__methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-method {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  text-align: left;
  font-family: var(--font-main);
}

.login-method:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.login-method:active {
  transform: translateY(0);
}

.login-method--soon {
  opacity: 0.4;
  cursor: not-allowed;
}

.login-method--soon:hover {
  transform: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.login-method__icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.login-method__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.login-method__name {
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
}

.login-method__desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

.login-method__arrow {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.3);
  transition: transform 0.2s, color 0.2s;
}

.login-method:hover .login-method__arrow {
  color: rgba(255, 255, 255, 0.7);
  transform: translateX(4px);
}

.login-method__badge {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 6px;
}


/* ── Шаги авторизации ── */

.login-card__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.login-step__back {
  align-self: flex-start;
  background: none;
  border: none;
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.login-step__back:hover {
  color: rgba(255, 255, 255, 0.9);
}

.login-step__icon {
  font-size: 48px;
  margin-bottom: 4px;
}

.login-step__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
}

.login-step__desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
}


/* ── Input ── */

.login-input-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  font-family: var(--font-main);
  font-size: 1rem;
  color: #FFFFFF;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.login-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}


/* ── Кнопка входа ── */

.login-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, #6D28D9 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.login-btn--telegram {
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
}

.login-btn--telegram:hover {
  box-shadow: 0 8px 32px rgba(42, 171, 238, 0.4);
}


/* ── Код (6 цифр) ── */

.login-code-group {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.login-code-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.login-code-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.login-code-input:not(:placeholder-shown) {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--primary-light);
}


/* ── Повторная отправка ── */

.login-resend {
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.login-resend__btn {
  background: none;
  border: none;
  font-family: var(--font-main);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-light);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.login-resend__btn:hover {
  color: #FFFFFF;
}

/* ── Ошибки ── */

.login-error {
  width: 100%;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-coral);
  padding: 10px 16px;
  background: rgba(251, 113, 133, 0.1);
  border: 1px solid rgba(251, 113, 133, 0.2);
  border-radius: 10px;
  animation: loginShake 0.4s ease;
}

@keyframes loginShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}


/* ── Ожидание (Telegram) ── */

.login-waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
}

.login-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: loginSpin 0.8s linear infinite;
}

@keyframes loginSpin {
  to { transform: rotate(360deg); }
}


/* ── Успех ── */

.login-success__icon {
  font-size: 64px;
  margin-bottom: 8px;
  animation: loginSuccessPop 0.5s var(--ease-spring);
}

@keyframes loginSuccessPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}


/* ── Login адаптив ── */

@media (max-width: 480px) {
  .svoi-link {
    top: 16px;
    right: 20px;
    font-size: 13px;
    letter-spacing: 2px;
  }

  .svoi-link:hover {
    letter-spacing: 3px;
  }

  .login-page__content {
    padding: 24px 16px;
  }

  .login-card {
    padding: 32px 20px;
    border-radius: 20px;
  }

  .login-card__logo {
    font-size: 24px;
    letter-spacing: 4px;
  }

  .login-card__title {
    font-size: 1.25rem;
  }

  .login-code-group {
    gap: 6px;
  }

  .login-code-input {
    width: 42px;
    height: 50px;
    font-size: 1.25rem;
    border-radius: 10px;
  }

  .login-method {
    padding: 14px 16px;
    gap: 12px;
  }

  .login-method__icon {
    width: 38px;
    height: 38px;
    font-size: 24px;
    border-radius: 10px;
  }
}

@media (max-width: 360px) {
  .login-code-input {
    width: 36px;
    height: 44px;
    font-size: 1.125rem;
  }

  .login-code-group {
    gap: 4px;
  }
}


