/* ============================================
   TRAVELX SIGNUP PAGE - PREMIUM STYLES
   ============================================ */

/* === GLOBAL LAYOUT === */
body {
  background: linear-gradient(135deg, #aee1ff, #c7d7ff, #e0f2fe) !important;
  font-family: "Poppins", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  transition: background 0.5s ease, color 0.5s ease;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

/* === SIGNUP CARD === */
.signup-card {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 40px 50px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  color: #0f172a;
  animation: fadeInUp 1s ease-out;
  transition: all 0.5s ease;
}

.signup-card h2 {
  font-weight: 700;
  font-size: 2.3rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-align: center;
  width: 100%;
}

.signup-card .subtitle {
  color: #475569;
  margin-bottom: 30px;
  text-align: center;
  display: block;
  font-size: 1rem;
  transition: color 0.5s ease;
}

/* === GRADIENT ANIMATED HEADING === */
.gradient-bounce {
  background: linear-gradient(90deg, #2563eb, #9333ea, #f43f5e, #2563eb);
  background-size: 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s linear infinite, bounceIn 1.2s ease-out;
}

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

@keyframes bounceIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

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

/* === FORM INPUTS === */
.signup-card .form-control {
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  font-size: 0.95rem;
  width: 100%;
  color: #0f172a;
}

.signup-card .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
  background: rgba(255, 255, 255, 0.95);
  outline: none;
}

.signup-card .form-control::placeholder {
  color: #94a3b8;
}

.signupbutton {
  display: none;
  padding: 0.6rem 1.2rem;
  background: #0077ff;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.signupbutton:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px #2563eb;
}

@media (min-width: 700px) {
  .signupbutton {
    display: block;
  }
}

/* === BUTTON WITH RIPPLE EFFECT === */
.signup-card .btn-primary {
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #fff;
  position: relative;
  overflow: hidden;
  z-index: 1;
  cursor: pointer;
}

.signup-card .btn-primary:hover {
  background: linear-gradient(90deg, #1e40af, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease, opacity 0.4s ease;
  z-index: 0;
  opacity: 0.8;
}

.btn-primary:hover::after {
  width: 250%;
  height: 250%;
  opacity: 0;
}

/* === THEME TOGGLE BUTTON === */
.modeButton,
#themeToggle {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.modeButton:hover,
#themeToggle:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

/* === LINKS === */
.signup-card a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.signup-card a:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

/* === FAQ SECTION === */
.faq {
  max-width: 1200px;
  margin: 50px auto 0;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.faq h4 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 40px;
  transition: color 0.5s ease;
}

.faq-item {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.faq-question {
  width: 100%;
  background: linear-gradient(to right, #e0f2ff, #e0e7ff);
  border: none;
  outline: none;
  padding: 16px 22px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  color: #1e293b;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px;
}

.faq-question:hover {
  color: #2563eb;
  background: linear-gradient(to right, #dbeafe, #ddd6fe);
}

.faq-question::after {
  content: "⌄";
  font-size: 1.3rem;
  transition: transform 0.4s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  padding: 0 22px;
}

.faq-item.active .faq-answer {
  max-height: 180px;
  opacity: 1;
  transform: translateY(0);
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.4);
  border-left: 4px solid #2563eb;
  box-shadow: inset 0 0 10px rgba(37, 99, 235, 0.15);
  animation: glowOpen 0.6s ease forwards;
}

.faq-answer p {
  color: #475569;
  margin: 0;
  font-size: 0.95rem;
  text-align: left;
  transition: color 0.5s ease;
}

@keyframes glowOpen {
  0% {
    box-shadow: inset 0 0 0 rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: inset 0 0 15px rgba(37, 99, 235, 0.2);
  }
}

/* === DIVIDER === */
.divider {
  display: flex;
  align-items: center;
  margin: 25px 0;
  color: #64748b;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #cbd5e1;
}

.divider span {
  padding: 0 15px;
  font-size: 0.9rem;
}

/* === SOCIAL BUTTONS === */
.social-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.social-btn {
  flex: 1;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* === WEATHER SECTION === */
.weather {
  padding: 40px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.weather h4 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 20px;
  transition: color 0.5s ease;
}

.weather .form-control {
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  font-size: 1rem;
  color: #0f172a;
}

.weather .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
  background: rgba(255, 255, 255, 0.95);
  outline: none;
}

.weather .btn-primary {
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  border: none;
  border-radius: 12px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #fff;
  cursor: pointer;
}

.weather .btn-primary:hover {
  background: linear-gradient(90deg, #1e40af, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.weather #result {
  font-size: 1rem;
  color: #334155;
  font-weight: 500;
  transition: color 0.5s ease;
}

body.night-theme {
  background: #1e293b !important;
  color: #e0e7ff;
}

body.night-theme .signup-card {
  background: #334155 !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e0e7ff;
}
body.night-theme .signup-card .subtitle {
  color: #cbd5e1;
}

body.night-theme .signup-card .form-control {
  background: rgba(51, 65, 85, 0.8);
  color: #e0e7ff;
  border: 1px solid #64748b;
}

body.night-theme .signup-card .form-control::placeholder {
  color: #94a3b8;
}

body.night-theme .faq {
  color: #e0e7ff;
}
body.night-theme .faq h4 {
  color: #93c5fd;
}
body.night-theme .faq-item {
  background: rgba(51, 65, 85, 0.3);
}
body.night-theme .faq-question {
  background: linear-gradient(to right, #475569, #334155);
  color: #e0e7ff;
}
body.night-theme .faq-question:hover {
  background: linear-gradient(to right, #64748b, #475569);
  color: #93c5fd;
}
body.night-theme .faq-answer {
  background: linear-gradient(to right, #475569, #334155);
}
body.night-theme .faq-answer p {
  color: #cbd5e1;
}
body.night-theme .weather h4 {
  color: #93c5fd;
}

body.night-theme .social-btn {
  background: rgba(51, 65, 85, 0.8);
  border-color: #64748b;
  color: #e0e7ff;
}

body.night-theme .social-btn:hover {
  background: rgba(71, 85, 105, 0.9);
}

body.night-theme .divider::before,
body.night-theme .divider::after {
  background: #64748b;
}

body.night-theme .divider span {
  color: #94a3b8;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
  .signup-card {
    max-width: 90%;
    padding: 35px 40px;
  }

  .faq h4 {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .signup-card {
    max-width: 100%;
    padding: 30px 25px;
  }

  .signup-card h2 {
    font-size: 1.8rem;
  }

  .faq-item {
    margin-bottom: 15px;
  }

  .btn {
    display: block;
  }

  #getWeather {
    margin-left: 5.85rem;
    display: block;
  }

  .faq-question {
    font-size: 1rem;
    padding: 14px 18px;
  }

  .faq h4 {
    font-size: 1.4rem;
  }

  .weather .form-control {
    width: 100%;
    margin-bottom: 15px;
  }

  main {
    padding: 20px 15px;
  }
}

@media (max-width: 576px) {
  .signup-card {
    padding: 25px 20px;
  }

  .signup-card h2 {
    font-size: 1.6rem;
  }

  .signup-card .subtitle {
    font-size: 0.9rem;
  }

  .faq-question {
    font-size: 0.95rem;
  }

  .faq-answer p {
    font-size: 0.9rem;
  }
}
