html, body { height:100%; }
body{
  min-height:100dvh;
  margin:0;
  background:
    linear-gradient(180deg, #000000dd 0%, #1a0a2e 100%),
    radial-gradient(circle at 20% 80%, rgba(255, 87, 34, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, #0f0624 0%, #1a0a2e 50%, #0a0015 100%);
  background-attachment: fixed;
  color:#f0f9ff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  position: relative;
  overflow-x: hidden;
}

/* Halloween animated background elements */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255, 165, 0, 0.4), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(255, 87, 34, 0.4), transparent),
    radial-gradient(2px 2px at 50% 50%, rgba(138, 43, 226, 0.3), transparent),
    radial-gradient(2px 2px at 80% 10%, rgba(255, 165, 0, 0.4), transparent),
    radial-gradient(2px 2px at 90% 60%, rgba(255, 87, 34, 0.3), transparent),
    radial-gradient(1px 1px at 33% 80%, rgba(255, 215, 0, 0.3), transparent),
    radial-gradient(1px 1px at 15% 55%, rgba(255, 140, 0, 0.3), transparent);
  background-size: 200% 200%;
  background-position: 0% 0%;
  animation: sparkle 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes sparkle {
  0%, 100% { opacity: 0.3; background-position: 0% 0%; }
  50% { opacity: 0.6; background-position: 100% 100%; }
}

.center{
  min-height:100dvh;
  display:grid;
  place-items:center;
  padding:2rem 1rem;
  position: relative;
  z-index: 10;
}

.card{
  background:rgba(15, 10, 25, 0.95);
  backdrop-filter:blur(20px);
  border:2px solid rgba(255, 87, 34, 0.3);
  border-radius:24px;
  padding:3rem 2.5rem;
  max-width:440px;
  width:90vw;
  box-shadow:
    0 0 60px rgba(255, 87, 34, 0.15),
    0 0 100px rgba(138, 43, 226, 0.1),
    0 20px 60px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255, 165, 0, 0.1) inset;
  position: relative;
  animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg,
    rgba(255, 87, 34, 0.5),
    rgba(138, 43, 226, 0.5),
    rgba(255, 165, 0, 0.5),
    rgba(255, 87, 34, 0.5)
  );
  border-radius: 24px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: borderGlow 3s linear infinite;
  background-size: 300% 300%;
}

@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.card:hover::before {
  opacity: 1;
}

.logo-container{
  max-width:200px;
  width:200px;
  height:200px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 2.5rem;
  border-radius:50%;
  border:3px solid rgba(255, 87, 34, 0.6);
  box-shadow:
    0 0 40px rgba(255, 87, 34, 0.4),
    0 0 80px rgba(138, 43, 226, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.5);
  background:rgba(15, 10, 25, 0.95);
  padding:0;
  position:relative;
  overflow:hidden;
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% {
    box-shadow:
      0 0 40px rgba(255, 87, 34, 0.4),
      0 0 80px rgba(138, 43, 226, 0.3),
      0 8px 32px rgba(0, 0, 0, 0.5);
  }
  50% {
    box-shadow:
      0 0 60px rgba(255, 87, 34, 0.6),
      0 0 100px rgba(138, 43, 226, 0.5),
      0 8px 32px rgba(0, 0, 0, 0.5);
  }
}

.logo{
  width:98%;
  height:98%;
  object-fit:contain;
  display:block;
  border-radius:50%;
  filter: drop-shadow(0 0 20px rgba(255, 87, 34, 0.3));
}

h1{
  text-align:center;
  color:#fff;
  font-size:2rem;
  font-weight:700;
  margin:0 0 0.75rem;
  letter-spacing:-0.02em;
  text-shadow:
    0 0 20px rgba(255, 87, 34, 0.5),
    0 0 40px rgba(138, 43, 226, 0.3);
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% {
    text-shadow:
      0 0 20px rgba(255, 87, 34, 0.5),
      0 0 40px rgba(138, 43, 226, 0.3);
  }
  50% {
    text-shadow:
      0 0 30px rgba(255, 87, 34, 0.7),
      0 0 60px rgba(138, 43, 226, 0.5);
  }
}

p{
  text-align:center;
  color:#cbd5e1;
  margin:0 0 2rem;
  font-size:1rem;
  line-height:1.5;
}

/* Privacy checkbox - centered */
.privacy-checkbox {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.privacy-checkbox label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.privacy-checkbox label:hover {
  color: #fff;
}

.privacy-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #ff5722;
  transition: transform 0.2s ease;
}

.privacy-checkbox input[type="checkbox"]:hover {
  transform: scale(1.1);
}

.privacy-checkbox a {
  color: #ff9800;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
  font-weight: 600;
}

.privacy-checkbox a:hover {
  color: #ffa726;
  border-bottom-color: #ffa726;
  text-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

.steam-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0.5rem;
  padding:0.65rem 1.25rem;
  background:linear-gradient(135deg, #1a0f21, #2a1f3e);
  border:2px solid rgba(255, 87, 34, 0.3);
  border-radius:10px;
  color:#fff;
  font-weight:600;
  font-size:0.875rem;
  text-decoration:none;
  transition:all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 0 20px rgba(255, 87, 34, 0.2),
    0 4px 16px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255, 165, 0, 0.1) inset;
  cursor:pointer;
  position:relative;
  overflow:hidden;
}

.steam-btn::before{
  content:'';
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background:linear-gradient(90deg, transparent, rgba(255, 152, 0, 0.2), transparent);
  transition:left 0.5s;
}

.steam-btn:hover::before{
  left:100%;
}

.steam-btn:hover{
  transform:translateY(-3px);
  box-shadow:
    0 0 40px rgba(255, 87, 34, 0.4),
    0 8px 24px rgba(138, 43, 226, 0.35),
    0 0 0 1px rgba(255, 152, 0, 0.3) inset;
  background:linear-gradient(135deg, #2a1f3e, #3a2f4e);
  border-color:rgba(255, 87, 34, 0.5);
}

.steam-btn:active{
  transform:translateY(-1px);
}

.steam-btn svg{
  width:18px;
  height:18px;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.btn-wrapper{
  text-align:center;
  margin-top:20px;
}

.error{
  background:rgba(220, 38, 38, 0.15);
  border:2px solid rgba(239, 68, 68, 0.4);
  border-radius:12px;
  padding:1rem 1.25rem;
  color:#fca5a5;
  font-size:0.95rem;
  margin-bottom:2rem;
  text-align:center;
  backdrop-filter:blur(10px);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.2);
}

.footer{
  margin-top:2.5rem;
  text-align:center;
  font-size:0.875rem;
  color:#94a3b8;
  line-height:1.6;
}

.footer a{
  color:#ff9800;
  text-decoration:none;
  font-weight:500;
  transition:all 0.2s;
}

.footer a:hover{
  color:#ffa726;
  text-decoration:underline;
  text-shadow: 0 0 10px rgba(255, 152, 0, 0.4);
}

/* Floating Halloween elements */
.halloween-decor {
  position: fixed;
  pointer-events: none;
  z-index: 5;
  font-size: 2rem;
  opacity: 0.6;
  animation: float 20s infinite ease-in-out;
}

.halloween-decor:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.halloween-decor:nth-child(2) { top: 20%; right: 15%; animation-delay: 2s; }
.halloween-decor:nth-child(3) { bottom: 15%; left: 20%; animation-delay: 4s; }
.halloween-decor:nth-child(4) { bottom: 25%; right: 10%; animation-delay: 6s; }
.halloween-decor:nth-child(5) { top: 50%; left: 5%; animation-delay: 3s; font-size: 1.5rem; }
.halloween-decor:nth-child(6) { top: 60%; right: 8%; animation-delay: 5s; font-size: 1.5rem; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.4; }
  25% { transform: translateY(-20px) rotate(5deg); opacity: 0.6; }
  50% { transform: translateY(-10px) rotate(-5deg); opacity: 0.5; }
  75% { transform: translateY(-15px) rotate(3deg); opacity: 0.6; }
}

@media (max-width: 480px){
  .card{
    padding:2.5rem 2rem;
  }
  h1{
    font-size:1.75rem;
  }
  p{
    font-size:0.95rem;
  }
  .steam-btn{
    padding:0.75rem 1.25rem;
    font-size:0.875rem;
  }
  .halloween-decor {
    font-size: 1.5rem;
  }
  .halloween-decor:nth-child(5),
  .halloween-decor:nth-child(6) {
    font-size: 1rem;
  }
}
