/* eSoon login — match mockup: 3D + vertical features, bright red glass */
:root {
  --lg-red: #E60023;
  --lg-red-2: #FF2D42;
  --lg-red-deep: #B4001A;
}

html { color-scheme: dark; overflow-x: hidden; }
body.sz-body.sz-login-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: #fff;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  background: #07070a;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.lg-stage {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

.lg-aurora,
.lg-beams,
.lg-dust { position: absolute; inset: 0; pointer-events: none; }

.lg-aurora {
  background:
    radial-gradient(720px 480px at 82% 18%, rgba(230,0,35,.55), transparent 62%),
    radial-gradient(640px 420px at 18% 88%, rgba(255,45,66,.22), transparent 58%),
    radial-gradient(520px 380px at 28% 58%, rgba(230,0,35,.28), transparent 62%),
    radial-gradient(900px 500px at 50% -10%, rgba(230,0,35,.18), transparent 50%),
    linear-gradient(165deg, #050507 0%, #12080c 55%, #1c0a10 100%);
}

.lg-beams {
  background:
    linear-gradient(122deg, transparent 40%, rgba(255,80,100,.14) 50%, transparent 62%),
    linear-gradient(108deg, transparent 28%, rgba(255,255,255,.05) 42%, transparent 55%);
  mix-blend-mode: screen;
  animation: lgBeamDrift 16s ease-in-out infinite alternate;
}

.lg-dust i {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: #fff;
  opacity: .55;
}
.lg-dust i:nth-child(1)  { top: 12%; left: 18%; }
.lg-dust i:nth-child(2)  { top: 28%; left: 72%; }
.lg-dust i:nth-child(3)  { top: 64%; left: 12%; }
.lg-dust i:nth-child(4)  { top: 78%; left: 58%; }
.lg-dust i:nth-child(5)  { top: 18%; left: 46%; }
.lg-dust i:nth-child(6)  { top: 42%; left: 88%; }
.lg-dust i:nth-child(7)  { top: 86%; left: 32%; }
.lg-dust i:nth-child(8)  { top: 8%;  left: 82%; }
.lg-dust i:nth-child(9)  { top: 54%; left: 38%; }
.lg-dust i:nth-child(10) { top: 70%; left: 90%; }
.lg-dust i:nth-child(11) { top: 34%; left: 8%; }
.lg-dust i:nth-child(12) { top: 92%; left: 70%; }

.lg-layout {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 380px);
  gap: 64px;
  align-items: center;
  padding: 56px 8vw;
  padding-top: max(56px, env(safe-area-inset-top));
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  padding-left: max(8vw, env(safe-area-inset-left));
  padding-right: max(8vw, env(safe-area-inset-right));
  direction: ltr;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.lg-brand, .lg-aside { direction: rtl; min-width: 0; }
.lg-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
}

/* Headline block — centered in the brand column, no extra wordmark */
.lg-brand-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
}

.lg-wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin: 0;
}
.lg-wordmark img {
  width: 48px; height: 48px;
  border-radius: 13px;
  object-fit: contain;
  background: transparent;
  box-shadow: 0 0 20px rgba(230,0,35,.4);
}
.lg-wordmark span {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-family: Outfit, 'Vazirmatn', Tahoma, sans-serif;
}
.lg-wordmark-sm {
  justify-content: center;
  margin-bottom: 18px;
}
.lg-wordmark-sm img { width: 40px; height: 40px; border-radius: 12px; }
.lg-wordmark-sm span { font-size: 18px; }

.lg-brand h1 {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.7;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  text-align: center;
  text-wrap: balance;
}
.lg-lead {
  margin: 14px 0 0;
  font-size: 15.5px;
  line-height: 2;
  color: rgba(255,255,255,.72);
  font-weight: 400;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  text-align: center;
  max-width: 32rem;
}

/* 3D hero left + vertical features right */
.lg-brand-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .9fr);
  gap: 8px 20px;
  align-items: center;
  direction: ltr;
  width: 100%;
}

.lg-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  direction: rtl;
}
.lg-features li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #fff;
  font-weight: 600;
  white-space: normal;
}
.lg-fi {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.lg-fi svg { width: 18px; height: 18px; }

.lg-hero {
  width: 100%;
  max-width: 440px;
  height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  overflow: visible;
}

.lg-hero-aura {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 48%, rgba(230,0,35,.38), transparent 58%),
    radial-gradient(circle at 58% 42%, rgba(255,70,90,.16), transparent 50%);
  filter: blur(36px);
  animation: lgGlow 3.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.lg-hero-rays {
  position: absolute;
  inset: -10%;
  background: repeating-conic-gradient(
    from 12deg at 50% 46%,
    transparent 0deg 22deg,
    rgba(255,50,70,.09) 22deg 24deg
  );
  -webkit-mask-image: radial-gradient(ellipse at 50% 46%, #000 10%, transparent 58%);
  mask-image: radial-gradient(ellipse at 50% 46%, #000 10%, transparent 58%);
  animation: lgSpin 48s linear infinite;
  opacity: .55;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

.lg-hero-icon {
  position: relative;
  z-index: 3;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  animation: lgFloat 5.6s ease-in-out infinite;
  filter:
    drop-shadow(14px 22px 26px rgba(0,0,0,.55))
    drop-shadow(0 0 22px rgba(230,0,35,.32));
}
.lg-hero-icon img {
  width: 300px;
  height: 300px;
  object-fit: contain;
  display: block;
}
.lg-hero-shine {
  position: absolute;
  inset: 16% 18% 24% 18%;
  border-radius: 28%;
  background: linear-gradient(118deg, transparent 40%, rgba(255,255,255,.28) 50%, transparent 60%);
  mix-blend-mode: overlay;
  animation: lgShine 5.2s ease-in-out infinite;
  pointer-events: none;
}

.lg-hero-glow {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 260px;
  height: 56px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,45,66,.75), rgba(230,0,35,.15) 50%, transparent 72%);
  filter: blur(8px);
  animation: lgGlow 3s ease-in-out infinite;
  z-index: 1;
}
.lg-hero-ring {
  position: absolute;
  bottom: 48px;
  left: 50%;
  width: 230px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1.5px solid rgba(255,60,80,.55);
  box-shadow:
    0 0 14px rgba(255,45,66,.55),
    0 0 28px rgba(230,0,35,.35);
  animation: lgRing 3.2s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}
.lg-hero-floor {
  position: absolute;
  bottom: 12px;
  left: 50%;
  width: 300px;
  height: 42px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(230,0,35,.4), transparent 70%);
  filter: blur(12px);
  z-index: 0;
}

.lg-aside { display: flex; justify-content: flex-end; width: 100%; }
.lg-card {
  width: 100%;
  max-width: 400px;
  padding: 36px 30px 24px;
  border-radius: 32px;
  background: rgba(18,18,22,.38);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid rgba(255,45,66,.55);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.05),
    0 0 56px rgba(230,0,35,.32),
    0 28px 70px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.12);
  text-align: center;
}
.lg-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
  color: #fff;
  font-weight: 800;
}
.lg-sub {
  margin: 0 0 22px;
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
  line-height: 1.9;
}
.lg-card form { text-align: right; }
.lg-card label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 12px 0 7px;
  color: rgba(255,255,255,.78);
}
.lg-field { position: relative; }
.lg-field input {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  padding: 13px 44px 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.4);
  color: #fff;
  outline: 0;
}
.lg-field input::placeholder { color: rgba(255,255,255,.32); }
.lg-field input:focus {
  border-color: var(--lg-red-2);
  box-shadow: 0 0 0 3px rgba(230,0,35,.22);
}
.lg-ico {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  color: rgba(255,255,255,.45);
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; padding: 0;
}
.lg-ico svg { width: 18px; height: 18px; }
.lg-eye { cursor: pointer; color: rgba(255,255,255,.62); }

.lg-error {
  background: rgba(230,0,35,.14);
  color: #ff8a90;
  font-size: 12px;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(230,0,35,.3);
  text-align: right;
}

.lg-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 12px;
  flex-wrap: wrap;
}
.lg-row a { color: rgba(255,255,255,.55); flex-shrink: 0; }
.lg-row a:hover { color: #fff; }
.lg-remember {
  display: flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,.72); font-weight: 600; cursor: pointer;
}
.lg-remember input { accent-color: var(--lg-red); }

.lg-submit {
  width: 100%;
  margin-top: 20px;
  padding: 13px 18px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--lg-red-2) 0%, var(--lg-red) 55%, var(--lg-red-deep) 100%);
  box-shadow: 0 10px 28px rgba(230,0,35,.5);
}
.lg-submit:hover { filter: brightness(1.06); }
.lg-submit svg { width: 18px; height: 18px; }

.lg-or {
  display: flex; align-items: center; gap: 10px;
  margin: 20px 0 14px;
  color: rgba(255,255,255,.4);
  font-size: 12px;
}
.lg-or::before, .lg-or::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(255,255,255,.12);
}
.lg-social { display: flex; justify-content: center; gap: 14px; }
.lg-soc {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  cursor: not-allowed;
}
.lg-legal {
  text-align: center;
  margin: 20px 0 0;
  font-size: 11px;
  color: rgba(255,255,255,.32);
}

@keyframes lgBeamDrift {
  from { opacity: .8; }
  to { opacity: 1; }
}
@keyframes lgFloat {
  0%, 100% {
    transform: perspective(1100px) rotateY(18deg) rotateX(6deg) translate3d(-4px, 0, 0);
  }
  50% {
    transform: perspective(1100px) rotateY(22deg) rotateX(8deg) translate3d(0, -12px, 10px);
  }
}
@keyframes lgGlow {
  0%, 100% { opacity: .72; }
  50% { opacity: 1; }
}
@keyframes lgSpin {
  to { transform: rotate(360deg); }
}
@keyframes lgShine {
  0%, 100% { transform: translateX(-22%); opacity: .12; }
  45% { transform: translateX(22%); opacity: .45; }
}
@keyframes lgRing {
  0%, 100% { opacity: .65; }
  50% { opacity: .95; }
}

@media (max-width: 1100px) {
  .lg-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 28px;
    padding: 36px 4vw;
    padding-top: max(36px, env(safe-area-inset-top));
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }
  .lg-brand h1 { font-size: 30px; }
  .lg-brand-stage { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); }
  .lg-hero { height: 320px; max-width: 340px; }
  .lg-hero-icon, .lg-hero-icon img { width: 240px; height: 240px; }
}

@media (max-width: 860px) {
  .lg-layout {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px 16px 28px;
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(28px, env(safe-area-inset-bottom));
    gap: 20px;
    align-items: stretch;
  }
  .lg-aside { order: -1; justify-content: center; }
  .lg-card {
    max-width: none;
    margin: 0 auto;
    width: 100%;
    border-radius: 26px;
    padding: 28px 22px 20px;
  }
  .lg-brand {
    gap: 24px;
    justify-content: flex-start;
  }
  .lg-brand h1 { font-size: 24px; line-height: 1.75; }
  .lg-lead { font-size: 14px; line-height: 1.9; }
  .lg-wordmark span { font-size: 20px; }
  .lg-brand-stage {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 16px;
  }
  .lg-hero { display: none; }
  .lg-features {
    width: 100%;
    gap: 14px;
  }
  .lg-features li {
    font-size: 14px;
    gap: 10px;
  }
  .lg-fi { width: 36px; height: 36px; }
}

@media (max-width: 600px) {
  .lg-layout {
    padding: 16px 14px 24px;
    gap: 18px;
  }
  .lg-card {
    padding: 24px 18px 18px;
    border-radius: 22px;
  }
  .lg-card h2 { font-size: 20px; }
  .lg-sub { font-size: 12px; margin-bottom: 18px; }
  .lg-brand h1 { font-size: 21px; line-height: 1.7; }
  .lg-lead { font-size: 13.5px; margin-top: 10px; }
  .lg-field input { padding: 12px 40px 12px 12px; font-size: 16px; }
  .lg-submit { font-size: 15px; padding: 12px 16px; }
  .lg-features li { font-size: 13px; }
  .lg-fi { width: 34px; height: 34px; }
  .lg-fi svg { width: 16px; height: 16px; }
}

@media (max-width: 480px) {
  .lg-layout { padding: 12px 12px 20px; gap: 16px; }
  .lg-card { padding: 22px 16px 16px; border-radius: 20px; }
  .lg-wordmark-sm { margin-bottom: 14px; }
  .lg-wordmark-sm img { width: 36px; height: 36px; }
  .lg-wordmark-sm span { font-size: 16px; }
  .lg-card h2 { font-size: 18px; }
  .lg-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .lg-or { margin: 16px 0 12px; }
  .lg-social { gap: 10px; }
  .lg-soc { width: 40px; height: 40px; }
  .lg-brand h1 { font-size: 19px; }
  .lg-features { gap: 12px; }
}

@media (max-width: 360px) {
  .lg-card { padding: 18px 14px 14px; }
  .lg-field input { font-size: 16px; }
  .lg-remember { font-size: 11px; }
  .lg-legal { font-size: 10px; }
}
