/*************************************************
 * SIGNUP PAGE — ROYAL GOLD GLASS UI
 *************************************************/

.auth-page {
  position: relative;
  padding: 2.5rem 1rem;
  overflow: hidden;
  animation: authFadeIn 0.7s ease-out;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/*************************************************
 * BACKGROUND NEBULA & PARTICLES
 *************************************************/

.auth-page::before,
.auth-page::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
      circle at 0% 20%,
      rgba(245, 221, 102, 0.18),
      transparent 60%
    ),
    radial-gradient(
      circle at 100% 80%,
      rgba(218, 178, 65, 0.24),
      transparent 60%
    );
  opacity: 0.5;
  mix-blend-mode: screen;
  pointer-events: none;
}

.auth-page::after {
  animation: nebulaDrift 20s ease-in-out infinite;
}

.auth-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(245, 221, 102, 0.28);
  border-radius: 999px;
  animation: floatParticle 10s infinite ease-in-out;
}

.auth-particle:nth-child(1) {
  top: 5%;
  left: 20%;
  animation-delay: 0s;
}
.auth-particle:nth-child(2) {
  top: 25%;
  right: 18%;
  animation-delay: 1.4s;
}
.auth-particle:nth-child(3) {
  bottom: 20%;
  left: 30%;
  animation-delay: 2.2s;
}
.auth-particle:nth-child(4) {
  bottom: 6%;
  right: 25%;
  animation-delay: 3s;
}
.auth-particle:nth-child(5) {
  top: 50%;
  left: 50%;
  animation-delay: 3.8s;
}

/*************************************************
 * LOGO + ANIMATED CUBE
 *************************************************/

.auth-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.signup-logo {
  opacity: 0.95;
}

.auth-cube.signup-cube {
  width: 42px;
  height: 42px;
  animation: cubeFloat 4.2s ease-in-out infinite;
}

.auth-cube-face {
  position: absolute;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #f5dd66, #dab241);
  box-shadow: 0 12px 22px rgba(245, 221, 102, 0.45);
}

.auth-cube-front {
  inset: 0;
}

.auth-cube-top {
  left: 3px;
  right: 3px;
  height: 15px;
  top: -9px;
  transform: skewX(-15deg);
  background: linear-gradient(135deg, #ffe88b, #f0c95e);
}

.auth-cube-side {
  top: 5px;
  bottom: 4px;
  right: -7px;
  width: 16px;
  transform: skewY(-15deg);
  background: linear-gradient(135deg, #dab241, #f5dd66);
}

.auth-logo-title {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  color: #f5dd66;
}

.auth-logo-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

/*************************************************
 * CARD (GLASS PANEL)
 *************************************************/

.auth-card {
  background: rgba(0, 0, 0, 0.78);
  border-radius: 1.3rem;
  padding: 2rem 1.8rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(245, 221, 102, 0.35);
  position: relative;
}

.auth-card-animated::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;

  opacity: 0.35;
  filter: blur(4px);
  z-index: -1;
}

.auth-card-tilt {
  transform-origin: center center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.auth-card-tilt:hover {
  transform: rotate3d(1, -1, 0, 5deg) translateY(-3px);
  box-shadow: 0 26px 55px rgba(245, 221, 102, 0.28);
}

/*************************************************
 * FORM SECTION TITLES
 *************************************************/

.auth-section {
  margin-bottom: 1.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #f5dd66;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(245, 221, 102, 0.3);
}

/*************************************************
 * GRID LAYOUTS
 *************************************************/

.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

/*************************************************
 * INPUT FIELDS
 *************************************************/

.auth-input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  transition: 0.2s ease;
}

.auth-input:focus {
  border-color: #f5dd66;
  box-shadow: 0 0 0 1px rgba(245, 221, 102, 0.55);
}

.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

/*************************************************
 * BUTTON
 *************************************************/

.auth-btn {
  background: #f5dd66;
  color: #181818;
  border: none;
  border-radius: 0.7rem;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: 0.22s ease;
}

.auth-btn:hover {
  box-shadow: 0 14px 35px rgba(245, 221, 102, 0.6);
  transform: translateY(-2px);
}

/*************************************************
 * LOGIN LINK
 *************************************************/

.auth-link {
  color: #f5dd66;
  text-decoration: none;
  font-weight: 600;
}

.auth-link:hover {
  text-decoration: underline;
}

/*************************************************
 * ANIMATIONS
 *************************************************/

@keyframes authFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nebulaDrift {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: rotate(-8deg) scale(1.06);
    opacity: 0.8;
  }
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 0.5;
  }
}

@keyframes floatParticle {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  20% {
    opacity: 0.9;
  }
  50% {
    transform: translateY(-20px);
  }
  80% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes cubeFloat {
  0% {
    transform: translateY(0px) rotate(-6deg);
  }
  50% {
    transform: translateY(-7px) rotate(4deg);
  }
  100% {
    transform: translateY(0px) rotate(-6deg);
  }
}

/*************************************************
 * RESPONSIVE
 *************************************************/

@media (max-width: 480px) {
  .auth-grid-2 {
    grid-template-columns: 1fr;
  }
}
