/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

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

body, html {
  height: 100%;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
}

/* Background Gradient Animation */
.background-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364, #0f2027);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  z-index: -1;
}

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

/* Card */
.card {
  width: 100%;
  max-width: 400px;
  margin: 50px auto;
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: #fff;
  text-align: center;
  position: relative;
}

/* Toggle Buttons */
.toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.toggle button {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.toggle button.active {
  border-color: #00c6ff;
  font-weight: 600;
}

/* Forms */
.form {
  display: none;
  flex-direction: column;
  gap: 15px;
  animation: fadeIn 0.5s ease-in-out;
}

.active-form {
  display: flex;
}

.form h2 {
  margin-bottom: 10px;
  color: #ffffff;
}

.form input {
  padding: 12px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: background 0.3s;
}

.form input::placeholder {
  color: #e0e0e0;
}

.form input:focus {
  background: rgba(255, 255, 255, 0.25);
}

.form button {
  padding: 12px;
  background: #00c6ff;
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form button:hover {
  background: #0072ff;
}

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

/* Responsive */
@media (max-width: 480px) {
  .card {
    margin: 30px 20px;
    padding: 25px;
  }
}
