/* assets/css/base.css */

/* ----------------------
   Theme
-------------------------*/
:root {
  --bg: #050507;
  --bg-soft: #0a0b10;
  --text-main: #f5f5f7;
  --text-muted: #a0a0aa;
  --logo-gray: #3e3d41;
  --accent: #e2a9f1;
  --accent-soft: rgba(226, 169, 241, 0.18);
  --accent-strong: rgba(226, 169, 241, 0.7);
}

/* ----------------------
   Base
-------------------------*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #050507;
  color: var(--text-main);
  overflow-x: hidden;
}

/* ----------------------
   Layout
-------------------------*/
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1040px;
  margin: 5rem auto 5rem;
  padding: 0 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.page--stacked {
  max-width: 1200px;
  text-align: center;
}

/* ----------------------
   Orb background
-------------------------*/
.orb-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(circle at top left, #141422 0, var(--bg) 55%);
  transform: none;
}

.orb {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent-strong), transparent);
  filter: blur(0.4rem);
  opacity: 0.85;
  animation: drift 22s linear infinite;
}

.orb--lg {
  width: 420px;
  height: 420px;
  top: -80px;
  left: -80px;
  box-shadow: 0 0 60px var(--accent-soft);
}

.orb--md {
  width: 220px;
  height: 220px;
  top: 58%;
  left: 72%;
  animation-duration: 30s;
}

.orb--sm {
  width: 140px;
  height: 140px;
  top: 78%;
  left: 8%;
  animation-duration: 26s;
}

.orb--tiny {
  width: 90px;
  height: 90px;
  top: 22%;
  left: 62%;
  animation-duration: 18s;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate3d(12px, -10px, 0) scale(1.05);
    opacity: 0.7;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.9;
  }
}

/* ----------------------
   Brand block / top logo
-------------------------*/
.brand-block {
  flex: 0 0 auto;
  max-width: 420px;
}

.top-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  width: 100%;
}

.logo-wrap img {
  max-width: 900px;
  height: auto;
}

.brand-tagline {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ----------------------
   Content block (shared)
-------------------------*/
.content-block {
  flex: 1 1 auto;
  max-width: 520px;
  width: 100%;
}

.page--stacked .content-block--wide {
  max-width: 1200px;
}

.page--stacked .content-block--wide .auth-card {
  max-width: 100%;
}

.content-block.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* .content-block.centered.privacy-policy is in privacy.css */

/* ----------------------
   Shared UI bits
-------------------------*/
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 15, 20, 0.9);
  border: 1px solid rgba(226, 169, 241, 0.4);
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.6rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-strong);
}

h1 {
  font-size: clamp(2.6rem, 3.8vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  white-space: nowrap;
}

h1 span {
  color: var(--accent);
}

.subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.1rem;
  max-width: 34rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  justify-content: center;
}

.meta span {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.2rem 0.5rem 2.4rem;
  border-radius: 999px;
  background: #12131b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 14px 28px rgba(0, 0, 0, 0.75);
  color: var(--text-main);
  letter-spacing: 0.01em;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease,
    background 0.2s ease;
}

/* Outer glowing orb */
.meta span::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent-strong), transparent);
  box-shadow: 0 0 12px var(--accent-strong);
  opacity: 0.95;
}

/* Inner dark core */
.meta span::after {
  content: "";
  position: absolute;
  left: 1.06rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #050309;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.85);
  opacity: 0.95;
}

/* Hover */
.meta span:hover {
  border-color: rgba(226, 169, 241, 0.7);
  background: #171822;
  box-shadow:
    0 0 0 1px rgba(226, 169, 241, 0.4),
    0 18px 36px rgba(0, 0, 0, 0.9);
  transform: translateY(-1px);
}

.contact-line {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 2.6rem;
}

.contact-line a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-line a:hover {
  border-color: var(--accent);
  color: #fbe8ff;
}

.discord-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: #5865f2;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 18px 36px rgba(0, 0, 0, 0.9);
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.discord-button:hover {
  background: #6f7bff;
  box-shadow:
    0 0 0 1px rgba(226, 169, 241, 0.5),
    0 22px 44px rgba(0, 0, 0, 1);
  transform: translateY(-1px);
}

.discord-button__icon {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

/* Client Portal button (top-right) */
.client-portal-btn {
  position: absolute;
  top: 5.5rem;
  right: 10.8rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(226, 169, 241, 0.55);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.03em;
  backdrop-filter: blur(6px);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
  z-index: 9999;
}

.client-portal-btn:hover {
  background: rgba(226, 169, 241, 0.12);
  border-color: rgba(226, 169, 241, 0.9);
  color: #ffeaff;
  transform: translateY(-1px);
}

/* ----------------------
   Global responsive tweaks
-------------------------*/
@media (max-width: 720px) {
  .orb-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .orb {
    animation: none;
    opacity: 0.8;
  }

  .page {
    margin: 3rem auto 4rem;
    padding-inline: 1.25rem;
    gap: 3rem;
  }

  .orb--lg {
    width: 0px;
  }
  
  .client-portal-btn {
    right: 5.8rem;   
  }
  
  .logo-wrap img {
    width: 100%;
  }

  h1 {
    font-size: 1.8rem;
    white-space: normal;
  }
}

@media (max-width: 720px) {
  .client-portal-btn {
    right: 1.8rem;   
    font-size: 0.75rem;
  }
}