/* ═══════════════════════════════════════════════════════════════
   ورود / عضویت — تجربهٔ بصری ویژه
   ═══════════════════════════════════════════════════════════════ */

.landing-home .tc-auth-page {
  --tc-auth-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(78vh, 720px);
  padding: 2rem 0 3.5rem;
}

.landing-home .tc-auth-page__bg {
  pointer-events: none;
  position: absolute;
  inset: -2rem 0 0;
  z-index: 0;
  overflow: hidden;
}

.landing-home .tc-auth-orb {
  display: none !important;
}

@media (max-width: 1024px), (pointer: coarse) {
  .landing-home .tc-auth-orb {
    animation: none;
    filter: blur(32px);
    opacity: 0.4;
  }
}

.landing-home .tc-auth-orb--1,
.landing-home .tc-auth-orb--2,
.landing-home .tc-auth-orb--3 {
  display: none !important;
}

@keyframes tc-auth-orb-float {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-12px, 16px, 0) scale(1.06);
  }
}

.landing-home .tc-auth-page__grid {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 56rem);
  margin: 0 auto;
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(124, 92, 230, 0.08),
    0 24px 60px -20px rgba(109, 60, 224, 0.28),
    0 48px 100px -40px rgba(46, 35, 77, 0.12);
  backdrop-filter: blur(12px);
}

.landing-home .tc-auth-showcase {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 1.35rem;
  padding: 2.5rem 2.25rem;
  color: #fff;
  background: linear-gradient(155deg, #5b2fd4 0%, #7c5ce6 38%, #6d4ed6 68%, #4f3aa8 100%);
  position: relative;
  overflow: hidden;
}

.landing-home .tc-auth-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 10% 88%, rgba(191, 219, 254, 0.2) 0%, transparent 45%);
  pointer-events: none;
}

.landing-home .tc-auth-showcase::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  left: -60px;
  bottom: -80px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.5;
}

.landing-home .tc-auth-showcase > * {
  position: relative;
  z-index: 1;
}

.landing-home .tc-auth-showcase__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}

.landing-home .tc-auth-showcase__badge-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #86efac;
  box-shadow: 0 0 0 3px rgba(134, 239, 172, 0.35);
}

.landing-home .tc-auth-showcase h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.landing-home .tc-auth-showcase__lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 22rem;
}

.landing-home .tc-auth-features {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.landing-home .tc-auth-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.landing-home .tc-auth-features__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.landing-home .tc-auth-panel {
  padding: 2rem 1.75rem 2.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 255, 0.96) 100%);
}

.landing-home .tc-auth-card {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.landing-home .tc-auth-page--register .tc-auth-card {
  max-width: 28rem;
}

.landing-home .tc-auth-card__head {
  text-align: center;
  margin-bottom: 1.65rem;
}

.landing-home .tc-auth-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.85rem;
  border-radius: 16px;
  color: var(--tc-primary-dark);
  background: linear-gradient(145deg, rgba(237, 233, 254, 0.95) 0%, rgba(224, 242, 254, 0.9) 100%);
  border: 1px solid rgba(124, 92, 230, 0.18);
  box-shadow: 0 8px 24px -10px rgba(124, 92, 230, 0.35);
}

.landing-home .tc-auth-card h1 {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--tc-text);
}

.landing-home .tc-auth-card .tc-auth-lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--tc-text-muted);
}

.landing-home .tc-auth-card form.tc-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.landing-home .tc-auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.landing-home .tc-auth-field__control {
  position: relative;
}

.landing-home .tc-auth-field__control .tc-auth-field__glyph {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  transform: translateY(-50%);
  display: inline-flex;
  color: var(--tc-text-muted);
  opacity: 0.55;
  pointer-events: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.landing-home .tc-auth-field__control:focus-within .tc-auth-field__glyph {
  color: var(--tc-primary-dark);
  opacity: 0.9;
}

.landing-home .tc-auth-field__control input {
  padding-right: 2.65rem !important;
}

.landing-home .tc-auth-field__hint {
  margin: 0;
  font-size: 0.76rem;
  color: var(--tc-text-muted);
}

.landing-home .tc-auth-field__meta {
  margin: 0.35rem 0 0;
  text-align: end;
  font-size: 0.8rem;
}

.landing-home .tc-auth-field__meta a {
  color: var(--tc-primary-dark);
  font-weight: 600;
  text-decoration: none;
}

.landing-home .tc-auth-field__meta a:hover {
  text-decoration: underline;
}

.landing-home .tc-auth-card .tc-form input[type='text'],
.landing-home .tc-auth-card .tc-form input[type='password'],
.landing-home .tc-auth-card .tc-form input[type='tel'] {
  border-radius: 14px;
  border-color: rgba(216, 201, 255, 0.65);
  background: #fff;
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
  transition:
    border-color 0.25s var(--tc-auth-ease),
    box-shadow 0.25s var(--tc-auth-ease),
    transform 0.25s var(--tc-auth-ease);
}

.landing-home .tc-auth-card .tc-form input:focus {
  border-color: var(--tc-primary-dark);
  box-shadow:
    0 0 0 4px rgba(124, 92, 230, 0.12),
    0 8px 20px -12px rgba(124, 92, 230, 0.35);
  transform: translateY(-1px);
}

.landing-home .tc-auth-account-types {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.landing-home .tc-auth-type-card {
  position: relative;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1.5px solid rgba(216, 201, 255, 0.55);
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.25s var(--tc-auth-ease),
    background 0.25s var(--tc-auth-ease),
    box-shadow 0.25s var(--tc-auth-ease),
    transform 0.25s var(--tc-auth-ease);
}

.landing-home .tc-auth-type-card:hover {
  border-color: rgba(124, 92, 230, 0.45);
  background: rgba(246, 240, 255, 0.65);
}

.landing-home .tc-auth-type-card:has(input:checked) {
  border-color: var(--tc-primary-dark);
  background: linear-gradient(135deg, rgba(246, 240, 255, 0.95) 0%, rgba(237, 233, 254, 0.85) 100%);
  box-shadow:
    0 0 0 1px rgba(124, 92, 230, 0.15),
    0 10px 28px -14px rgba(124, 92, 230, 0.28);
  transform: translateY(-1px);
}

.landing-home .tc-auth-type-card input[type='radio'] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.landing-home .tc-auth-type-card__radio {
  margin-top: 0.2rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 2px solid rgba(124, 92, 230, 0.35);
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.landing-home .tc-auth-type-card:has(input:checked) .tc-auth-type-card__radio {
  border-color: var(--tc-primary-dark);
  background: var(--tc-primary-dark);
  box-shadow: inset 0 0 0 3px #fff;
}

.landing-home .tc-auth-type-card__body {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.landing-home .tc-auth-type-card__emoji {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.landing-home .tc-auth-type-card__title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--tc-text);
}

.landing-home .tc-auth-type-card__desc {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--tc-text-muted);
  line-height: 1.45;
}

.landing-home .tc-auth-submit {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.85rem 1.25rem !important;
  border-radius: 14px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  border: none !important;
  background: linear-gradient(135deg, #8b6cf6 0%, #6d3ce0 48%, #5b4bb8 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 12px 32px -10px rgba(109, 60, 224, 0.55) !important;
  transition:
    transform 0.25s var(--tc-auth-ease),
    box-shadow 0.25s var(--tc-auth-ease),
    filter 0.25s var(--tc-auth-ease) !important;
}

.landing-home .tc-auth-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 18px 40px -12px rgba(109, 60, 224, 0.6) !important;
}

.landing-home .tc-auth-submit:active {
  transform: translateY(0);
}

.landing-home .tc-auth-footer {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--tc-text-muted);
  border-top: 1px dashed rgba(216, 201, 255, 0.65);
}

.landing-home .tc-auth-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 0.15rem;
  font-weight: 700;
  color: var(--tc-primary-dark);
  transition: color 0.2s ease;
}

.landing-home .tc-auth-footer a:hover {
  color: var(--tc-primary-deep);
}

.landing-home .tc-auth-card .tc-auth-resend:disabled,
.landing-home .tc-auth-card .tc-auth-resend[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.landing-home .tc-footer--auth-minimal {
  padding: 1.15rem 0 1.5rem;
  background: #faf8ff;
  border-top: 1px solid var(--tc-border, rgba(124, 92, 230, 0.12));
}

.landing-home .tc-footer--auth-minimal .tc-footer-copy {
  margin: 0;
  text-align: center;
}

@keyframes tc-auth-flow-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.landing-home .tc-auth-page--enter {
  animation: tc-auth-flow-enter 0.38s var(--tc-auth-ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.landing-home .tc-auth-card .tc-alert,
.landing-home .tc-auth-card [class*='alert'] {
  border-radius: 14px;
}

@media (min-width: 900px) {
  .landing-home .tc-auth-page__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }

  .landing-home .tc-auth-showcase {
    display: flex;
  }

  .landing-home .tc-auth-panel {
    padding: 2.5rem 2.25rem 2.75rem;
  }
}

@media (max-width: 899px) {
  .landing-home .tc-auth-page {
    padding-inline: var(--tc-shell-gutter, 0.25rem);
  }

  .landing-home .tc-auth-page__grid {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    border-radius: 22px;
  }

  .landing-home .tc-auth-panel {
    padding: 1.65rem 1.25rem 2rem;
  }

  .landing-home .tc-auth-card h1 {
    font-size: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-home .tc-auth-orb {
    animation: none;
  }

  .landing-home .tc-auth-submit:hover,
  .landing-home .tc-auth-card .tc-form input:focus,
  .landing-home .tc-auth-type-card:has(input:checked) {
    transform: none;
  }
}
