/* Shared welcome / login-prompt screen — mirrors camps' existing
   .auth-* visual language so the suite feels consistent once the apps
   converge on this module. Tokens consumed: --y, --y-rgb, --bk, --bk2,
   --bk3, --wh, --g3, --sp-*, --fs-*, --radius-*, --shadow-overlay,
   --shadow-lg, --dur-normal. All defined in @suite/lib/style/tokens.css.

   Per-consumer accent override: the component sets a custom property
   --suite-auth-accent inline when opts.primaryColor is provided. The
   left-panel background uses that, falling back to --y. Consumers that
   want the default yellow leave primaryColor unset. */
.suite-auth-welcome {
  --suite-auth-accent: var(--y, #ffce00);
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  background: var(--bk, #141414);
  animation: suite-auth-fade-in 0.25s ease-out;
}
@keyframes suite-auth-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Left brand panel ─────────────────────────────────────────── */
.suite-auth-brand {
  flex: 1;
  background: var(--suite-auth-accent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
  color: var(--bk, #141414);
}
.suite-auth-brand::before,
.suite-auth-brand::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  pointer-events: none;
}
.suite-auth-brand::before {
  top: -15%;
  right: -12%;
  width: 340px;
  height: 340px;
}
.suite-auth-brand::after {
  bottom: -10%;
  left: -8%;
  width: 220px;
  height: 220px;
  background: rgba(0, 0, 0, 0.04);
}

.suite-auth-brand-title {
  margin: 0 0 0.5rem;
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  position: relative;
  z-index: 1;
  /* Use the canonical display font when available. Fallback to inherit
     so apps without DM Serif Display loaded still get a sane heading. */
  font-family: 'DM Serif Display', 'DM Sans', system-ui, sans-serif;
}
.suite-auth-brand-tagline {
  margin: 0 0 2.4rem;
  font-size: var(--fs-md, 0.875rem);
  color: rgba(20, 20, 20, 0.65);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}
.suite-auth-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3, 0.75rem);
  position: relative;
  z-index: 1;
}
.suite-auth-feature {
  display: flex;
  align-items: center;
  gap: var(--sp-2h, 0.625rem);
  font-size: var(--fs-md, 0.875rem);
  color: rgba(20, 20, 20, 0.75);
  font-weight: 500;
}
.suite-auth-feature-icon {
  font-size: var(--fs-lg, 1rem);
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.suite-auth-feature-label {
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif);
  font-size: var(--fs-md, 0.875rem);
  color: rgba(20, 20, 20, 0.75);
  line-height: 1.4;
  font-weight: 500;
}

/* ── Right login panel ────────────────────────────────────────── */
.suite-auth-login {
  width: 420px;
  flex-shrink: 0;
  background: var(--bk, #141414);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 3rem;
  border-left: 1px solid var(--bk3, #2a2a2a);
  color: var(--wh, #fafaf8);
}
.suite-auth-login-heading {
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--wh, #fafaf8);
  margin: 0 0 0.4rem;
  font-family: 'DM Serif Display', 'DM Sans', system-ui, sans-serif;
}
.suite-auth-login-sub {
  font-size: var(--fs-md, 0.875rem);
  line-height: 1.5;
  color: #b5b3aa;
  margin-bottom: 1.6rem;
}

.suite-auth-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.2rem;
  background: var(--suite-auth-accent);
  color: var(--bk, #141414);
  border: none;
  border-radius: var(--radius-md, 8px);
  font-size: var(--fs-lg, 1rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgb(var(--y-rgb, 255, 206, 0) / 25%);
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
}
.suite-auth-cta-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgb(var(--y-rgb, 255, 206, 0) / 38%);
}
.suite-auth-cta-btn:active {
  transform: scale(0.98);
  box-shadow: none;
}
.suite-auth-cta-btn:focus-visible {
  outline: 3px solid rgb(var(--y-rgb, 255, 206, 0) / 60%);
  outline-offset: 2px;
}

.suite-auth-footer {
  margin-top: 1.4rem;
  font-size: var(--fs-sm, 0.75rem);
  color: #b5b3aa;
  text-align: center;
  line-height: 1.5;
}

/* ── Mobile: stacked ────────────────────────────────────────────
 * Aligned to Camp v2 Style Guide §19 phone breakpoint by the 2026-06-02
 * sweep — was 680px, collapsed to the canonical 639px. */
@media (max-width: 639px) {
  .suite-auth-welcome {
    flex-direction: column;
  }
  .suite-auth-brand {
    flex: none;
    padding: 2rem 1.6rem;
    align-items: flex-start;
  }
  .suite-auth-brand::before,
  .suite-auth-brand::after {
    display: none;
  }
  .suite-auth-brand-title {
    font-size: var(--fs-3xl, 1.6rem);
  }
  .suite-auth-brand-tagline {
    margin-bottom: 1rem;
  }
  .suite-auth-feature-list {
    display: none;
  }
  .suite-auth-login {
    width: 100%;
    flex: 1;
    border-left: none;
    border-top: 1px solid var(--bk3, #2a2a2a);
    padding: 2rem 1.6rem;
    justify-content: flex-start;
  }
  .suite-auth-login-heading {
    font-size: 1.4rem;
  }
}
