/**
 * RADEXEL Design System - Landing Page
 *
 * Dark background, centered layout with RADEXEL branding.
 * Shown only to unauthenticated users. Redirects to /main if logged in.
 */

/* ==========================================================================
   Landing Layout
   ========================================================================== */

.landing-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  background: #1A1A2E;
  color: #E8E8EC;
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}


/* ==========================================================================
   Background Decoration
   ========================================================================== */

.landing-page::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 80vw;
  height: 80vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(
    circle,
    rgba(44, 92, 163, 0.15) 0%,
    rgba(44, 92, 163, 0.05) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.landing-page::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 60vw;
  height: 60vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(
    circle,
    rgba(32, 182, 133, 0.1) 0%,
    rgba(32, 182, 133, 0.03) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}


/* ==========================================================================
   Content Container
   ========================================================================== */

.landing-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeInUp 0.6s var(--ease-out) forwards;
}


/* ==========================================================================
   Logo
   ========================================================================== */

.landing-logo {
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Fallback text logo */
.landing-logo--text {
  width: auto;
  height: auto;
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--rdx-blue-light);
  letter-spacing: var(--letter-spacing-tight);
}


/* ==========================================================================
   Title & Subtitle
   ========================================================================== */

.landing-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: #FFFFFF;
  margin-bottom: var(--space-3);
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--line-height-tight);
}

.landing-title span {
  color: var(--rdx-blue-light);
}

.landing-subtitle {
  font-size: var(--font-size-lg);
  color: #A0A4B0;
  line-height: var(--line-height-relaxed);
  max-width: 480px;
  margin-bottom: var(--space-10);
}


/* ==========================================================================
   CTA Button
   ========================================================================== */

.landing-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: #FFFFFF;
  background: var(--rdx-blue);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--duration-base) var(--ease-default),
    transform var(--duration-fast) var(--ease-default),
    box-shadow var(--duration-base) var(--ease-default);
  box-shadow: 0 4px 20px rgba(44, 92, 163, 0.4);
}

.landing-cta:hover {
  background: var(--rdx-blue-light);
  box-shadow: 0 6px 28px rgba(44, 92, 163, 0.5);
  transform: translateY(-1px);
}

.landing-cta:active {
  transform: translateY(0);
}

.landing-cta svg {
  width: 20px;
  height: 20px;
}


/* ==========================================================================
   Footer Info
   ========================================================================== */

.landing-footer {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--font-size-sm);
  color: #6B7080;
  text-align: center;
}

.landing-footer a {
  color: var(--rdx-blue-light);
}

.landing-footer a:hover {
  color: #FFFFFF;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 640px) {
  .landing-title {
    font-size: 1.75rem;
  }

  .landing-subtitle {
    font-size: var(--font-size-base);
  }

  .landing-cta {
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-base);
    width: 100%;
    justify-content: center;
  }
}
