/*
 * Публичный лендинг (роут "/" — логин + регистрация + цены).
 * Самостоятельный дизайн: НЕ использует bootstrap-компоненты и не зависит
 * от темы приложения (theme_dark красит .form-control и т.п. — здесь свои
 * классы land-*). Forgot/reset password остаются на auth.css.
 *
 * public_base глушит анимации глобально (`* { ... !important }`) — поэтому
 * анимации/переходы здесь объявлены классами с !important.
 */
body.public-shell {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
}

.land-split {
  display: flex;
  min-height: 100vh;
}

/* ── Левая панель — логин всегда на виду ────────────────────────────── */
.land-login {
  width: 420px;
  min-width: 360px;
  background: #fff;
  color: #0f172a;
  padding: 2.6rem 2.6rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 2;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
}
.land-login-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.land-login-logo img {
  width: 60px;
  height: 60px;
  margin-bottom: 0.5rem;
}
.land-login-logo h1 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #16a34a;
  margin: 0;
  letter-spacing: 0.06em;
}
.land-login-tagline {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

.land {
  flex: 1;
  min-height: 100vh;
  color: #fff;
  background:
    radial-gradient(1100px 700px at 80% -10%, rgba(22, 163, 74, 0.2), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(22, 163, 74, 0.12), transparent 55%),
    linear-gradient(150deg, #0b1220 0%, #101b30 55%, #0b1220 100%);
  position: relative;
  overflow-x: hidden;
}
.land::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(75% 75% at 50% 35%, #000 30%, transparent 100%);
  pointer-events: none;
}
.land > * {
  position: relative;
  z-index: 1;
}

/* ── Навбар ─────────────────────────────────────────────────────────── */
.land-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.4rem 2rem;
}
.land-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: none;
}
.land-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.land-brand span {
  color: #4ade80;
}
.land-nav-spacer {
  flex: 1;
}
.land-nav a.land-nav-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
}
.land-nav a.land-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* ── Кнопки ─────────────────────────────────────────────────────────── */
.land-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}
.land-btn:hover {
  transform: translateY(-1px);
}
.land-btn-primary {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35);
}
.land-btn-primary:hover {
  box-shadow: 0 8px 26px rgba(22, 163, 74, 0.45);
  color: #fff;
}
.land-btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}
.land-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.land-btn-lg {
  font-size: 1rem;
  padding: 0.9rem 1.9rem;
  border-radius: 14px;
}
.land-btn-dark {
  background: #0f172a;
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}
.land-btn-dark:hover {
  background: #1e293b;
  color: #fff;
}
.land-btn-block {
  width: 100%;
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.land-hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2rem;
  text-align: center;
}
.land-hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.land-hero h1 em {
  font-style: italic;
  color: #4ade80;
}
.land-hero-sub {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 1.9rem;
}
.land-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}
.land-cta-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2.4rem;
}
.land-cta-note .bi {
  color: #4ade80;
  margin-right: 0.25rem;
}

.land-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem 1.4rem;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}
.land-check {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.land-check .bi {
  color: #4ade80;
  flex-shrink: 0;
}

/* мини-дашборд (иллюстрация) */
.land-cards {
  position: relative;
  max-width: 380px;
  margin: 3rem auto 0;
}
.land-card-demo {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.15rem 1.35rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  text-align: left;
}
.land-card-demo-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.6rem;
}
.land-card-demo-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.86rem;
  margin-bottom: 0.35rem;
}
.land-card-demo-row strong {
  color: #fff;
  font-size: 1.05rem;
}
.land-card-demo-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-top: 0.55rem;
}
.land-card-demo-bar span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #16a34a, #4ade80);
}
.land-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  color: #d1fae5;
  font-size: 0.76rem;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}
.land-chip .bi {
  color: #4ade80;
}
.land-chip-1 {
  top: -16px;
  right: -30px;
  animation: land-float 5s ease-in-out infinite !important;
}
.land-chip-2 {
  bottom: -14px;
  left: -26px;
  animation: land-float 6s 1.2s ease-in-out infinite !important;
}
@keyframes land-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ── Цены ───────────────────────────────────────────────────────────── */
.land-pricing {
  max-width: 860px;
  margin: 0 auto;
  padding: 3.2rem 2rem 4rem;
  text-align: center;
}
.land-pricing h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.land-pricing-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
}
.land-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.land-price-tile {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.4rem 1rem 1.2rem;
}
/* Подсветка секции цен при клике на Pricing в навбаре. */
.land-pricing-flash .land-price-tile {
  animation: land-price-pulse 1.4s ease !important;
}
@keyframes land-price-pulse {
  0% { border-color: rgba(255, 255, 255, 0.12); box-shadow: none; }
  30% { border-color: rgba(74, 222, 128, 0.8); box-shadow: 0 0 26px rgba(22, 163, 74, 0.35); }
  100% { border-color: rgba(255, 255, 255, 0.12); box-shadow: none; }
}
.land-price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}
.land-price-amount small {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}
.land-price-label {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}
.land-price-note {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  margin-bottom: 1.6rem;
}
.land-price-note .bi {
  color: #4ade80;
  margin-right: 0.25rem;
}
.land-foot {
  text-align: center;
  padding: 0 2rem 2.2rem;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
}

/* ── Оверлей с формами (логин / регистрация) ────────────────────────── */
.land-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 1rem;
  overflow-y: auto;
  background: rgba(4, 9, 20, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease !important;
}
.land-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.land-form-card {
  background: #fff;
  color: #0f172a;
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 440px;
  padding: 2rem 2.2rem 1.8rem;
  margin: auto;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.28s ease !important;
  display: none;
}
.land-overlay.open .land-form-card {
  transform: translateY(0) scale(1);
}
.land-form-card.visible {
  display: block;
}
.land-form-card-wide {
  max-width: 660px;
}
.land-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.land-form-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.15;
}
.land-form-sub {
  font-size: 0.86rem;
  color: #64748b;
  margin-top: 0.25rem;
}
.land-close {
  border: none;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 10px;
  width: 34px;
  height: 34px;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}
.land-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.land-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 0.3rem;
}
.land-field {
  margin-bottom: 0.95rem;
}
.land-input {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  box-sizing: border-box;
}
.land-input::placeholder {
  color: #94a3b8;
}
.land-input:focus {
  border-color: #16a34a;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}
.land-input-invalid,
.land-input-invalid:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}
.land-input-wrap {
  position: relative;
}
.land-input-wrap .land-input {
  padding-right: 2.6rem;
}
.land-eye {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #94a3b8;
  padding: 0.2rem 0.35rem;
  cursor: pointer;
  line-height: 1;
}
.land-eye:hover {
  color: #0f172a;
}
.land-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
.land-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #16a34a;
  margin: 1.1rem 0 0.6rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #f1f5f9;
}
.land-section-label:first-of-type {
  margin-top: 0;
}
.land-error {
  font-size: 0.8rem;
  color: #dc2626;
  margin: 0.15rem 0 0.4rem;
}
.land-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.9rem;
}
.land-alert {
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.land-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
.land-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}
.land-form-foot {
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.9rem;
}
.land-form-foot a {
  color: #16a34a;
}
.land-form-switch {
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid #f1f5f9;
}
.land-form-switch a {
  color: #16a34a;
  font-weight: 600;
  text-decoration: none;
}
.land-form-switch a:hover {
  text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .land-split {
    flex-direction: column;
  }
  .land-login {
    width: 100%;
    min-width: unset;
    position: static;
    height: auto;
    padding: 2rem 1.5rem 1.6rem;
  }
}
@media (max-width: 820px) {
  .land-nav {
    padding: 1rem 1.1rem;
  }
  .land-nav .land-nav-link {
    display: none;
  }
  .land-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .land-price-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .land-cards {
    max-width: 320px;
  }
  .land-chip-1 { right: -8px; }
  .land-chip-2 { left: -8px; }
  .land-grid-2 {
    grid-template-columns: 1fr;
  }
  .land-form-card {
    padding: 1.5rem 1.25rem 1.4rem;
  }
}
