/* Global reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Background and layout */
body {
  height: 100vh;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

/* Glowing animated border box */
.content-box {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 15px;
  max-width: 550px;
  width: 90%;
  backdrop-filter: blur(8px);
  overflow: hidden;
}

/* Animated border effect */
.content-box::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff0055, #ffcc00, #00ffcc, #00bfff, #ff0055);
  z-index: -1;
  background-size: 400%;
  border-radius: 16px;
  animation: borderGlow 8s linear infinite;
}

@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Typography */
h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.85;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.countdown div {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 10px;
  width: 22%;
}

.countdown span {
  display: block;
  font-size: 2rem;
  font-weight: bold;
}

.countdown small {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Form */
form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

input[type="email"] {
  padding: 0.8rem;
  width: 65%;
  border: 2px solid #fff;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  outline: none;
}

input::placeholder {
  color: #ddd;
}

button {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 5px;
  background: linear-gradient(45deg, #ffcc00, #ff8800);
  color: #333;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: linear-gradient(45deg, #ffdb4d, #ffaa33);
}

/* Responsive design */
@media (max-width: 500px) {
  h1 {
    font-size: 2rem;
  }
  .countdown {
    flex-direction: column;
    gap: 1rem;
  }
  .countdown div {
    width: 100%;
  }
  input[type="email"] {
    width: 100%;
  }
}
