/* =========================================================
   WILDVERSE AUTH THEME
   Shared visual foundation only
   No page-specific layout rules
========================================================= */

:root {
  --wv-auth-bg-deep: #02090d;
  --wv-auth-bg-mid: #06161d;
  --wv-auth-bg-soft: #071017;

  --wv-auth-panel: rgba(5, 18, 23, 0.9);
  --wv-auth-panel-soft: rgba(16, 40, 49, 0.83);

  --wv-auth-text: #edfaff;
  --wv-auth-text-strong: #ffffff;
  --wv-auth-text-muted: rgba(225, 246, 250, 0.64);
  --wv-auth-text-quiet: rgba(225, 246, 250, 0.46);

  --wv-auth-cyan: #7ef3ff;
  --wv-auth-cyan-soft: #9ffaff;
  --wv-auth-green: #67ffd2;
  --wv-auth-lime: #b6ff70;
  --wv-auth-pink: #ff7bd5;
  --wv-auth-purple: #ae5bff;

  --wv-auth-border: rgba(126, 243, 255, 0.2);
  --wv-auth-border-strong: rgba(126, 243, 255, 0.42);

  --wv-auth-shadow:
    0 24px 70px rgba(0, 0, 0, 0.35);

  --wv-auth-shadow-deep:
    0 32px 90px rgba(0, 0, 0, 0.52);

  --wv-auth-focus: #7ef3ff;

  --wv-auth-radius-small: 10px;
  --wv-auth-radius-medium: 18px;
  --wv-auth-radius-large: 22px;
  --wv-auth-radius-panel: 30px;

  --wv-auth-font:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

html {
/*   color-scheme: dark; */
  background: var(--wv-auth-bg-deep);
}

/* *,
*::before,
*::after {
  box-sizing: border-box;
} */
/* Box sizing only for WildVerse auth components.
   Do not modify Google Identity Services generated markup. */

.wv-auth-page,
.wv-auth-page::before,
.wv-auth-page::after,
.wv-signin-layout,
.wv-signin-brand,
.wv-signin-brand::before,
.wv-signin-brand::after,
.wv-signin-panel,
.wv-signin-panel::before,
.wv-signin-panel::after,
.wv-auth-card,
.wv-auth-card::before,
.wv-auth-card::after,
.wv-auth-mini-footer,
.wv-auth-mini-footer::before,
.wv-auth-mini-footer::after {
  box-sizing: border-box;
}
body {
  font-family: var(--wv-auth-font);
}

.wv-auth-page {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;

  color: var(--wv-auth-text);

  background:
    radial-gradient(
      circle at 16% 18%,
      rgba(126, 243, 255, 0.18),
      transparent 31rem
    ),
    radial-gradient(
      circle at 82% 20%,
      rgba(255, 92, 174, 0.13),
      transparent 28rem
    ),
    radial-gradient(
      circle at 60% 90%,
      rgba(103, 255, 210, 0.08),
      transparent 26rem
    ),
    linear-gradient(
      145deg,
      var(--wv-auth-bg-deep) 0%,
      var(--wv-auth-bg-mid) 48%,
      var(--wv-auth-bg-soft) 100%
    );
}

.wv-auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  opacity: 0.24;

  background-image:
    linear-gradient(
      rgba(126, 243, 255, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(126, 243, 255, 0.08) 1px,
      transparent 1px
    );

  background-size: 42px 42px;

  mask-image:
    radial-gradient(
      circle at center,
      #000 0%,
      transparent 76%
    );

  -webkit-mask-image:
    radial-gradient(
      circle at center,
      #000 0%,
      transparent 76%
    );
}

.wv-auth-page > * {
  position: relative;
  z-index: 1;
}

.wv-auth-glass {
  border: 1px solid var(--wv-auth-border);

  background:
    linear-gradient(
      145deg,
      rgba(16, 40, 49, 0.83),
      rgba(4, 17, 23, 0.88)
    );

  box-shadow:
    var(--wv-auth-shadow-deep),
    0 0 42px rgba(126, 243, 255, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -1px 0 rgba(0, 0, 0, 0.42);

  backdrop-filter: blur(24px) saturate(1.18);
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
}

::selection {
  color: #061014;
  background: var(--wv-auth-cyan);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}