@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Pixelify+Sans:wght@400;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  min-height: 100vh;
  overflow: hidden;

  position: relative;

  display: flex;
  justify-content: flex-end;
  align-items: center;

  padding-right: 7%;

  font-family: "Pixelify Sans", sans-serif;

  background: #000;
}

/* VIDEO BACKGROUND */

#bg-video {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  z-index: -2;

  backface-visibility: hidden;
  transform: translateZ(0);

  will-change: transform;
}
body::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 18% 25%,
      rgba(128, 0, 255, 0.22),
      transparent 30%
    ),
    radial-gradient(
      circle at 25% 70%,
      rgba(255, 170, 40, 0.1),
      transparent 25%
    ),
    radial-gradient(
      circle at 75% 20%,
      rgba(255, 215, 106, 0.05),
      transparent 30%
    );

  z-index: 0;
}
.google-text {
  text-align: center;
  color: rgba(255, 241, 199, 0.88);
  line-height: 1.8;
}
/* ========================= */
/* PARTICLES */
/* ========================= */

.particle {
  position: absolute;

  border-radius: 50%;

  pointer-events: none;

  z-index: 1;

  animation: floatParticle linear infinite;
}

.gold {
  background: #ffd76a;

  box-shadow:
    0 0 6px #ffd76a,
    0 0 12px #ffd76a,
    0 0 24px rgba(255, 215, 106, 0.9);
}

.purple {
  background: #a855ff;

  box-shadow:
    0 0 8px #a855ff,
    0 0 18px #a855ff,
    0 0 32px rgba(168, 85, 255, 0.9);
}

/* ========================= */
/* LOGIN PANEL */
/* ========================= */

.login-box {
  position: relative;

  z-index: 10;

  width: 450px;
  height: 550px;
  padding: 55px 42px;

  border-radius: 34px;

  overflow: hidden;

  backdrop-filter: blur(10px);

  background: linear-gradient(
    145deg,
    rgba(18, 10, 8, 0.72),
    rgba(5, 5, 5, 0.84)
  );

  border: 1px solid rgba(255, 215, 106, 0.15);

  box-shadow:
    0 0 20px rgba(255, 215, 106, 0.08),
    0 0 40px rgba(140, 0, 255, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.82),
    inset 0 0 25px rgba(255, 255, 255, 0.02);

  animation: panelAppear 1s ease;
}

/* MAGIC BORDER */

.login-box::before {
  content: "";

  position: absolute;
  inset: -2px;

  border-radius: 34px;

  padding: 2px;

  background: linear-gradient(
    135deg,
    rgba(255, 215, 106, 0.8),
    rgba(168, 85, 255, 0.7),
    rgba(255, 215, 106, 0.2)
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;

  animation: borderGlow 5s linear infinite;
}

/* TOP GLOW */

.login-box::after {
  content: "";

  position: absolute;

  top: -180px;
  left: 50%;

  transform: translateX(-50%);

  width: 450px;
  height: 450px;

  background: radial-gradient(
    circle,
    rgba(168, 85, 255, 0.22),
    rgba(255, 215, 106, 0.08),
    transparent 70%
  );

  animation: pulseGlow 5s ease infinite;

  pointer-events: none;
}

/* ========================= */
/* TITLE */
/* ========================= */

h2 {
  position: relative;

  text-align: center;

  font-family: "Cinzel", serif;

  font-size: 58px;

  letter-spacing: 6px;

  color: #ffd76a;

  margin-bottom: 16px;

  text-shadow:
    0 0 12px rgba(255, 215, 106, 0.9),
    0 0 26px rgba(255, 215, 106, 0.6),
    0 0 55px rgba(168, 85, 255, 0.4),
    3px 3px 0 #000;
}

h2::after {
  content: "✦";

  display: block;

  margin-top: 12px;

  font-size: 22px;

  color: #fff;

  text-shadow:
    0 0 12px #ffd76a,
    0 0 20px #a855ff;
}

/* ========================= */
/* SUBTITLE */
/* ========================= */

.subtitle {
  text-align: center;

  color: rgba(237, 185, 29, 0.88);

  line-height: 1.8;

  margin-bottom: 40px;

  font-size: 18px;

  text-shadow: 0 0 12px rgba(250, 0, 0, 0.12);
}

/* ========================= */
/* GOOGLE BUTTON */
/* ========================= */
.google-btn-wrapper {
  position: relative;

  padding: 30px;

  border-radius: 24px;

  overflow: hidden;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  gap: 20px;

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.015)
  );

  border: 1px solid rgba(255, 255, 255, 0.06);

  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.02),
    0 0 20px rgba(168, 85, 255, 0.14);
}

.google-btn-wrapper::before {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );

  animation: shine 4s linear infinite;
}

/* ========================= */
/* ERROR */
/* ========================= */

.error-text {
  margin-top: 20px;

  text-align: center;

  color: #ff8585;

  font-size: 14px;

  opacity: 0;

  transition: 0.3s;
}

.error-text.active {
  opacity: 1;
}

/* ========================= */
/* FOOTER */
/* ========================= */

.login-box::selection {
  background: rgba(168, 85, 255, 0.5);
}

/* ========================= */
/* POPUP */
/* ========================= */

.popup {
  position: fixed;

  inset: 0;

  display: flex;

  justify-content: center;
  align-items: center;

  background: rgba(0, 0, 0, 0.75);

  backdrop-filter: blur(6px);

  opacity: 0;
  visibility: hidden;

  transition: 0.3s;

  z-index: 999;
}

.popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  width: 340px;

  padding: 34px;

  border-radius: 28px;

  text-align: center;

  background: linear-gradient(
    145deg,
    rgba(22, 12, 8, 0.95),
    rgba(5, 5, 5, 0.96)
  );

  border: 1px solid rgba(255, 215, 106, 0.18);

  box-shadow:
    0 0 25px rgba(255, 190, 80, 0.15),
    0 20px 50px rgba(0, 0, 0, 0.7);

  animation: popupAppear 0.35s ease;
}

.popup-icon {
  font-size: 44px;

  margin-bottom: 18px;

  text-shadow: 0 0 15px rgba(255, 215, 106, 0.8);
}

.popup-content p {
  color: #fff1c7;

  line-height: 1.7;

  margin-bottom: 24px;

  font-size: 18px;
}

button {
  border: none;

  padding: 12px 30px;

  border-radius: 14px;

  cursor: pointer;

  font-family: inherit;

  font-size: 16px;
  font-weight: bold;

  color: #20140b;

  background: linear-gradient(180deg, #ffe08a, #d08b24);

  box-shadow:
    0 0 16px rgba(255, 215, 106, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);

  transition: 0.25s;
}

button:hover {
  transform: translateY(-3px) scale(1.04);

  box-shadow:
    0 0 24px rgba(255, 215, 106, 0.5),
    0 12px 24px rgba(0, 0, 0, 0.4);
}

/* ========================= */
/* ANIMATION */
/* ========================= */

@keyframes panelAppear {
  from {
    opacity: 0;

    transform: translateX(60px) scale(0.92);
  }

  to {
    opacity: 1;

    transform: translateX(0) scale(1);
  }
}

@keyframes shine {
  from {
    transform: translateX(-140%);
  }

  to {
    transform: translateX(140%);
  }
}

@keyframes borderGlow {
  0% {
    filter: hue-rotate(0deg);
  }

  100% {
    filter: hue-rotate(40deg);
  }
}

@keyframes pulseGlow {
  0% {
    opacity: 0.5;

    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 1;

    transform: translateX(-50%) scale(1.08);
  }

  100% {
    opacity: 0.5;

    transform: translateX(-50%) scale(1);
  }
}

@keyframes floatParticle {
  from {
    transform: translateY(110vh) translateX(0px) scale(0.4);

    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  50% {
    transform: translateY(40vh) translateX(18px) scale(1);
  }

  to {
    transform: translateY(-120px) translateX(-20px) scale(1.5);

    opacity: 0;
  }
}

@keyframes popupAppear {
  from {
    opacity: 0;

    transform: scale(0.82);
  }

  to {
    opacity: 1;

    transform: scale(1);
  }
}

/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width: 1000px) {
  body {
    justify-content: center;

    padding-right: 0;
  }
}

@media (max-width: 520px) {
  .login-box {
    width: calc(100% - 26px);

    padding: 42px 24px;
  }

  h2 {
    font-size: 42px;
  }
}
.fantasy-google-btn {
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;

  padding: 18px;

  border: none;
  border-radius: 20px;

  cursor: pointer;

  font-family: "Cinzel", serif;
  font-size: 18px;
  font-weight: bold;

  color: #fff5d1;

  background: linear-gradient(135deg, #4d1698, #7a2cff, #b16cff);

  box-shadow:
    0 0 18px rgba(168, 85, 255, 0.65),
    0 0 45px rgba(168, 85, 255, 0.35),
    inset 0 0 12px rgba(255, 255, 255, 0.15);

  transition: 0.3s;

  position: relative;

  overflow: hidden;
}

.fantasy-google-btn::before {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );

  transform: translateX(-120%);

  animation: magicShine 4s linear infinite;
}

.fantasy-google-btn:hover {
  transform: translateY(-4px) scale(1.03);

  box-shadow:
    0 0 25px rgba(168, 85, 255, 0.9),
    0 0 60px rgba(168, 85, 255, 0.45);
}

.google-icon {
  font-size: 20px;

  color: #e8e8e8;

  text-shadow:
    0 0 10px #9b0eed,
    0 0 20px #ff0000;
}

@keyframes magicShine {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(120%);
  }
}
