/* ==========================================================
   Landing page — abstract background + portal chooser cards
   Additive to main.css. Uses a fixed dark palette (deliberate,
   like the auth-split brand panel) so it reads the same in
   light/dark browser modes.
   ========================================================== */

.landing-page {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  overflow: hidden;
  background: radial-gradient(ellipse 120% 80% at 50% -10%, #2a2a2e 0%, #18181b 55%, #0d0d0f 100%);
}

/* Abstract blurred blobs */
.landing-page::before,
.landing-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.landing-page::before {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(124, 124, 255, 0.16) 0%, transparent 70%);
  top: -220px;
  left: -160px;
}

.landing-page::after {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  bottom: -220px;
  right: -160px;
}

/* Secondary accent blob + dot-grid texture, via a wrapping layer */
.landing-bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 78% 18%, rgba(99, 179, 237, 0.10) 0%, transparent 45%),
    radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: auto, 26px 26px;
}

/* Faint geometric outline shapes for extra depth */
.landing-shape {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 28px;
  pointer-events: none;
}

.landing-shape-1 {
  width: 260px;
  height: 260px;
  top: 8%;
  right: 8%;
  transform: rotate(18deg);
}

.landing-shape-2 {
  width: 160px;
  height: 160px;
  bottom: 10%;
  left: 6%;
  border-radius: 50%;
  transform: rotate(-8deg);
}

.landing-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
}

.landing-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f4f4f5;
  margin-bottom: 2rem;
}

.landing-brand i {
  font-size: 1.4rem;
}

.landing-hero {
  text-align: center;
  margin-bottom: 2.75rem;
}

.landing-hero h1 {
  font-size: 2.25rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.landing-hero p {
  font-size: 1rem;
  color: #d4d4d8;
  max-width: 480px;
  margin: 0 auto;
}

/* Portal chooser cards */
.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 767.98px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }
}

.portal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.35);
  padding: 2.25rem 1.75rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 50px -14px rgba(0, 0, 0, 0.4);
}

.portal-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  font-size: 1.5rem;
  background: #f4f4f5;
  color: #18181b;
}

.portal-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #18181b;
  margin-bottom: 0.5rem;
}

.portal-card p {
  font-size: 0.875rem;
  color: #71717a;
  margin-bottom: 1.5rem;
}

.portal-card-actions {
  margin-top: auto;
}

.portal-card .btn {
  width: 100%;
}

.portal-card .btn + .btn {
  margin-top: 0.6rem;
}

.landing-footer {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: #a1a1aa;
  position: relative;
  z-index: 1;
}
