@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Bricolage+Grotesque:wght@500&display=swap');

:root {
  --primary-text: #ffffff;
  --accent-color: #00bfff;
  --bg-color-2: #0a0f2c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  background: linear-gradient(135deg, #0a0f2c, #0000cd);
  background-size: 200% 200%;
  animation: gradientFlow 12s ease infinite;
  color: var(--primary-text);
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
  text-align: center;
}

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

.logo {
  position: absolute;
  top: 30px;
  left: 40px;
  height: 50px;
  z-index: 10;
}

.content {
  text-align: center;
  z-index: 2;
  margin-top: 80px;
}

h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 1rem;
  animation: fadeIn 1.8s ease-out both;
}

p {
  font-size: 1.1rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  opacity: 0.85;
  animation: fadeIn 2.2s ease-out both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Signup Form */
.signup-form {
  margin-top: 1.5rem;
  max-width: 400px;
  width: 100%;
  z-index: 2;
  animation: fadeIn 2.4s ease-out both;
}

.signup-form form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.signup-form input {
  flex-grow: 1;
  padding: 0.8rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  color: var(--primary-text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.signup-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.signup-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--accent-color);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 0 2px var(--accent-color);
}

.signup-form button {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 9999px;
  background-color: #ffffff;
  color: var(--bg-color-2);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background-color 0.3s, box-shadow 0.3s;
}

.signup-form button:hover {
  transform: scale(1.05);
  background-color: #f0f0f0;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Ribbons */
.ribbon {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.06), transparent);
  border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%;
  animation: morph 18s infinite linear;
  filter: blur(60px);
  opacity: 0.4;
  z-index: 1;
}

.ribbon-left {
  top: -100px;
  left: -250px;
  background: linear-gradient(45deg, #ffffff33, #0000cd44);
}

.ribbon-right {
  bottom: -100px;
  right: -250px;
  background: linear-gradient(135deg, #ffffff33, #0000cd44);
}

@keyframes morph {
  0%, 100% {
    border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%;
    transform: rotate(0deg) scale(1);
  }
  50% {
    border-radius: 70% 30% 60% 40% / 30% 70% 40% 60%;
    transform: rotate(180deg) scale(1.2);
  }
}

/* Footer */
.footer {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.7);
  z-index: 5;
}

.footer a {
  margin: 0 12px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2.3rem; }
  .logo { height: 40px; top: 20px; left: 20px; }
  .signup-form input, .signup-form button {
    width: 100%;
    border-radius: 12px;
  }
}
