/* imvu.bot — auth landing pages */

.imvu-auth {
  --auth-accent: #38bdf8;
  --auth-accent-2: #818cf8;
  --auth-discord: #5865f2;
  --auth-discord-hover: #4752c4;
  --auth-glass: rgba(13, 18, 28, 0.72);
  --auth-glass-border: rgba(255, 255, 255, 0.08);
  --auth-text: #eef2f7;
  --auth-muted: #94a3b8;
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--auth-text);
  background: #05080e;
  overflow-x: hidden;
}

.imvu-auth--user {
  --auth-accent: #a78bfa;
  --auth-accent-2: #38bdf8;
}

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.auth-bg__mesh {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(ellipse 55% 45% at 15% 20%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(129, 140, 248, 0.14), transparent 50%),
    radial-gradient(ellipse 45% 35% at 70% 85%, rgba(14, 165, 233, 0.1), transparent 55%),
    radial-gradient(ellipse 40% 30% at 5% 90%, rgba(99, 102, 241, 0.08), transparent 50%);
  animation: auth-mesh-drift 22s ease-in-out infinite alternate;
}

.imvu-auth--user .auth-bg__mesh {
  background:
    radial-gradient(ellipse 55% 45% at 20% 25%, rgba(167, 139, 250, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(56, 189, 248, 0.12), transparent 50%),
    radial-gradient(ellipse 45% 35% at 60% 90%, rgba(129, 140, 248, 0.1), transparent 55%);
}

@keyframes auth-mesh-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2%, -1.5%) scale(1.04); }
}

.auth-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
}

.auth-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: auth-orb-float 14s ease-in-out infinite;
}

.auth-bg__orb--1 {
  width: 280px;
  height: 280px;
  top: 10%;
  left: 8%;
  background: var(--auth-accent);
}

.auth-bg__orb--2 {
  width: 220px;
  height: 220px;
  bottom: 15%;
  right: 12%;
  background: var(--auth-accent-2);
  animation-delay: -5s;
}

@keyframes auth-orb-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, -18px); }
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
}

.auth-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  animation: auth-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-hero__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.auth-logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.04em;
  color: #041016;
  background: linear-gradient(145deg, var(--auth-accent), var(--auth-accent-2));
  box-shadow:
    0 8px 32px rgba(56, 189, 248, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.auth-logo-type {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.auth-logo-type .dot {
  color: var(--auth-muted);
  font-weight: 500;
}

.auth-logo-type .bot {
  background: linear-gradient(90deg, var(--auth-accent), var(--auth-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.35rem 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--auth-accent);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
}

.imvu-auth--user .auth-hero__badge {
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.28);
}

.auth-hero__title {
  font-family: "Sora", "DM Sans", sans-serif;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 16ch;
}

.auth-hero__lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--auth-muted);
  max-width: 38ch;
  margin: 0 0 2.25rem;
}

.auth-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: #cbd5e1;
  animation: auth-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-features li:nth-child(1) { animation-delay: 0.08s; }
.auth-features li:nth-child(2) { animation-delay: 0.14s; }
.auth-features li:nth-child(3) { animation-delay: 0.2s; }
.auth-features li:nth-child(4) { animation-delay: 0.26s; }

.auth-feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--auth-glass-border);
  color: var(--auth-accent);
}

.auth-feature-icon svg {
  width: 18px;
  height: 18px;
}

.auth-feature-text strong {
  display: block;
  color: var(--auth-text);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  animation: auth-fade-up 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2.25rem 2rem 2rem;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--auth-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--auth-glass-border);
  border-radius: 20px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-card__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--auth-muted);
  margin: 0 0 0.5rem;
}

.auth-card__title {
  font-family: "Sora", "DM Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.auth-card__desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--auth-muted);
  margin: 0 0 1.75rem;
}

.auth-alert {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 12px;
}

.auth-alert svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
}

.auth-btn-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.9rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: var(--auth-discord);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.35);
}

.auth-btn-discord:hover {
  background: var(--auth-discord-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(88, 101, 242, 0.45);
}

.auth-btn-discord:active {
  transform: translateY(0);
}

.auth-btn-discord svg {
  width: 22px;
  height: 22px;
}

.auth-btn-discord:disabled,
.auth-btn-discord.auth-btn-discord--disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  font-size: 0.75rem;
  color: var(--auth-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--auth-glass-border);
}

.auth-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.78rem;
  color: var(--auth-muted);
}

.auth-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.auth-trust svg {
  width: 14px;
  height: 14px;
  color: var(--auth-accent);
}

.auth-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  padding: 1rem;
  font-size: 0.75rem;
  color: #64748b;
}

.auth-footer__links {
  display: flex;
  gap: 1rem;
  pointer-events: auto;
}

.auth-footer__links a {
  color: #94a3b8;
  text-decoration: none;
}

.auth-footer__links a:hover {
  color: var(--auth-accent);
}

.imvu-auth--page .auth-page-simple {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  line-height: 1.6;
}

.imvu-auth--page .auth-page-simple h1 {
  font-family: "Sora", "DM Sans", sans-serif;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.imvu-auth--page .auth-page-simple p {
  color: var(--auth-muted);
  margin-bottom: 1rem;
}

.imvu-auth--page .auth-page-simple__back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--auth-accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.auth-footer strong {
  color: #94a3b8;
  font-weight: 600;
}

.auth-setup-hint {
  margin-top: 1.25rem;
  padding: 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--auth-muted);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  border: 1px dashed var(--auth-glass-border);
}

.auth-setup-hint code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78em;
  color: #cbd5e1;
}

.auth-session-bar {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.28);
  font-size: 0.88rem;
}

.auth-session-bar p {
  margin: 0 0 0.5rem;
  color: #bbf7d0;
}

.auth-session-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.auth-link-btn {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--auth-accent);
  text-decoration: none;
}

.auth-link-btn:hover {
  text-decoration: underline;
}

.auth-link-btn--muted {
  color: var(--auth-muted);
}

@keyframes auth-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .auth-hero {
    padding-bottom: 1rem;
    text-align: center;
    align-items: center;
  }
  .auth-hero__brand,
  .auth-hero__badge {
    margin-left: auto;
    margin-right: auto;
  }
  .auth-hero__title,
  .auth-hero__lead {
    max-width: none;
  }
  .auth-features {
    display: none;
  }
}
