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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* 🌌 Aurora Background */
body {
  height: 100vh;
  color: #fff;
  background: linear-gradient(135deg, #0d1b2a, #1b263b, #415a77, #778da9, #1b263b);
  background-size: 400% 400%;
  animation: auroraShift 25s ease-in-out infinite;
  overflow: hidden;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(0,255,200,0.2), transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(108, 187, 243, 0.7), transparent 60%);
  mix-blend-mode: screen;
  animation: auroraDrift 18s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes auroraShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes auroraDrift {
  0%, 100% { transform: translate(-5%, -5%); }
  50% { transform: translate(5%, 5%); }
}

/* 🪟 Layering Fix — ensures form stays above hero */
.page-wrapper, main {
  position: relative;
  z-index: 0;
}
.hero-section {
  position: relative;
  flex: 1;
  z-index: 1;
}
.form-section {
  position: relative;
  flex: 1;
  z-index: 2;
}

/* 🧭 Page Layout */
.page-wrapper {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* 🧭 Hero Section */
.hero-section {
  background: url('Logo.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
}
.hero-section .overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 38, 71, 0.75);
  backdrop-filter: blur(3px);
}
.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  animation: fadeUp 1.2s ease forwards 0.3s;
  opacity: 0;
}
.hero-logo {
  width: 100px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}
.hero-content h1 {
  font-size: 2.3rem;
  font-weight: 700;
}
.tagline {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* 🌟 Pulsating Velox Logo Animation */
.pulse-logo {
  width: 110px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 10px #00b4d8);
  animation: pulseGlow 2.5s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px #00b4d8);
  }
  50% {
    transform: scale(1.07);
    filter: drop-shadow(0 0 18px #00b4d8);
  }
}

/* 💡 Add subtle glowing text effect to the title */
.glow-text {
  color: #00b4d8;
  text-shadow: 0 0 8px rgba(0, 180, 216, 0.8), 0 0 20px rgba(0, 180, 216, 0.4);
  letter-spacing: 1px;
  font-weight: 600;
}


/* 🧾 Form Section */
.form-section {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  padding: 40px;
  overflow: hidden;
  position: relative;
}

/* 🌙 Theme Toggle */
.theme-toggle {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 1.6rem;
  cursor: pointer;
  transition: transform 0.25s ease, color 0.25s;
}
.theme-toggle:hover {
  transform: rotate(10deg) scale(1.1);
  color: #00b4d8;
}

/* 🪩 Login & Signup Cards */
.form-container {
  position: absolute;
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  color: #fff;
  opacity: 0;
  transform: translateY(40px);
  pointer-events: none;
  transition: all 0.5s ease;
}
.form-container.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  z-index: 2;
}

/* 🧩 Input Fields */
input {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  transition: 0.3s ease;
}
input:focus {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 10px #00b4d8;
  transform: scale(1.02);
}

/* 🔘 Buttons */
.btn {
  width: 100%;
  margin-top: 15px;
  background: #00b4d8;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  position: relative;
}
.btn:hover {
  background: #0096c7;
  transform: scale(1.05);
}
.btn.secondary {
  background: #777;
  margin-top: 10px;
}
.btn.secondary:hover {
  background: #555;
}

/* 💬 Links */
p {
  margin-top: 15px;
  font-size: 14px;
  color: #ddd;
}
a {
  color: #00b4d8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
a:hover {
  color: #48cae4;
  text-decoration: underline;
}
.forgot {
  display: block;
  margin-top: 10px;
  color: #ccc;
  font-size: 13px;
}

/* 💌 Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.modal.active {
  opacity: 1;
  pointer-events: all;
}
.modal-content {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  width: 320px;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  animation: fadeUp 0.6s ease;
}
.modal-content input {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

@keyframes fadeUp {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ☀️ Light Mode */
body.light-mode {
  background: linear-gradient(135deg, #e8eef5, #dbe4ee, #f8f9fa);
  color: #222;
}
body.light-mode .form-container {
  background: rgba(255, 255, 255, 0.85);
  color: #222;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
body.light-mode input {
  background: rgba(0, 0, 0, 0.05);
  color: #111;
}
body.light-mode .btn {
  background: #0077b6;
}
body.light-mode a {
  color: #0077b6;
}

/* 🔐 RESET PASSWORD PAGE */
.reset-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #0a2647, #205295);
}

.reset-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  padding: 40px 50px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
  width: 90%;
  max-width: 420px;
  color: white;
}

.reset-card h1 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.reset-card p {
  font-size: 0.95rem;
  color: #dbe5ff;
  margin-bottom: 25px;
}

.reset-card input {
  width: 100%;
  margin: 10px 0;
  padding: 12px 15px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  outline: none;
  font-size: 1rem;
}

.reset-card input::placeholder {
  color: #c8d6e5;
}

.reset-card button {
  width: 100%;
  margin-top: 20px;
  padding: 12px 15px;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  background: #00b4d8;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.reset-card button:hover {
  background: #009fc4;
  transform: scale(1.02);
}


/* 📱 Mobile Responsive */
@media (max-width: 900px) {
  .page-wrapper {
    flex-direction: column;
  }
  .hero-section {
    height: 35vh;
  }
  .form-section {
    height: 65vh;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
  }
  .form-container {
    width: 90%;
    margin: 0 auto;
  }
}

/* 🧈 Toast Notifications */
#toastContainer {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}
.toast {
  min-width: 260px;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateX(100%);
  animation: toastIn 0.4s forwards;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.65);
  border-left: 5px solid transparent;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.toast.success { border-left-color: #2ecc71; color: #2ecc71; }
.toast.error { border-left-color: #e74c3c; color: #e74c3c; }
.toast.info { border-left-color: #3498db; color: #3498db; }
.toast.hide {
  opacity: 0;
  transform: translateX(100%) scale(0.95);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}
body.light-mode .toast {
  background: rgba(255,255,255,0.9);
  color: #111;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* 🧾 QR Code Modal Overlay */
.qr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.4s ease;
}
.qr-modal {
  background: linear-gradient(135deg, #0a2647, #205295);
  border: 2px solid #00b4d8;
  border-radius: 20px;
  padding: 35px 25px;
  width: 340px;
  text-align: center;
  color: white;
  box-shadow: 0 0 25px rgba(0,180,216,0.5);
  animation: fadeUp 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center; /* ✅ keeps everything centered horizontally */
  justify-content: center; /* ✅ vertically centers content if needed */
}
.qr-modal h2 {
  margin-bottom: 10px;
  font-weight: 600;
}
.qr-modal p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 10px;
}
.qr-modal img {
  margin: 20px auto;
  display: block;
  width: 200px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,180,216,0.3);
}
.qr-modal .btn {
  background: #00b4d8;
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s ease;
}
.qr-modal .btn:hover {
  background: #0096c7;
  transform: scale(1.05);
}
body.light-mode .qr-modal {
  background: #f8f9fa;
  color: #111;
  border-color: #0077b6;
  box-shadow: 0 0 25px rgba(0,0,0,0.3);
}
body.light-mode .qr-modal .btn {
  background: #0077b6;
}
body.light-mode .qr-modal .btn:hover {
  background: #005b8a;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 120px 120px;
  animation: stars 40s linear infinite;
  opacity: 0.3;
  pointer-events: none;
}
@keyframes stars {
  from { background-position: 0 0; }
  to { background-position: 300px 300px; }
}
