:root {
  --primary-color: #2d98da;
  --bg-color: #000000;
  --text-color: #ffffff;
  --card-bg: #000000;
}

.light-theme {
  --primary-color: #000000;
  --bg-color: #ffffff;
  --text-color: #222;
  --card-bg: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  padding: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 600px;
  width: 100%;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  transition: background 0.3s ease;
}

.logo {
  max-width: 150px;
  margin-bottom: 20px;
}

.brand {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0.5rem 0;
  color: var(--text-color);
}

.slogan {
  font-size: 1.2rem;
  color: #aaa;
  margin-bottom: 1.5rem;
}

h1 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.info {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.info a {
  color: var(--primary-color);
  text-decoration: none;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.newsletter-form input {
  padding: 0.7rem;
  border: none;
  border-radius: 5px;
  width: 60%;
  max-width: 250px;
  outline: none;
}

.newsletter-form button {
  padding: 0.7rem 1.2rem;
  background-color: var(--primary-color);
  border: none;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

footer {
  font-size: 0.9rem;
  color: #aaa;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
}

/* Theme toggle button */
#theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn ease-in 1;
  animation-fill-mode: forwards;
  animation-duration: 1s;
}

.fade-in:nth-child(1) { animation-delay: 0.3s; }
.fade-in:nth-child(2) { animation-delay: 0.6s; }
.fade-in:nth-child(3) { animation-delay: 0.9s; }
.fade-in:nth-child(4) { animation-delay: 1.2s; }
.fade-in:nth-child(5) { animation-delay: 1.5s; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    width: 100%;
  }
}
