/* Modern UI Components - Glassmorphism & Neon Theme */

/* =========================================
   Hero Layout Fix
   ========================================= */
@media (min-width: 992px) {
  .hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    /* Increased gap as requested */
  }

  .hero-content {
    flex: 1;
    max-width: 800px;
    /* Limit text width */
  }

  .network-globe-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }
}

/* =========================================
   Hero Stats Section
   ========================================= */
.hero-stats-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-top: 25px;
  margin-bottom: 25px;
  background: rgba(10, 35, 66, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 245, 212, 0.2);
  border-radius: 50px;
  padding: 12px 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-stats-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transform: translateX(-100%);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }

  20% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.hero-stat-card {
  /* Now just an item wrapper, no card validation */
  background: transparent;
  border: none;
  padding: 0;
  min-width: auto;
  box-shadow: none;
  text-align: center;
  position: relative;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-stat-card::before {
  display: none;
}

.hero-stat-card:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
}

/* Divider between items */
.hero-stat-card:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 70%;
  background: rgba(255, 255, 255, 0.2);
}

.hero-stat-num {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 245, 212, 0.5);
  margin-bottom: 2px;
  line-height: 1;
}

.hero-stat-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* =========================================
   Modern Login Modal
   ========================================= */
.modern-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modern-modal-container {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(0, 245, 212, 0.3);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 20px rgba(0, 245, 212, 0.05);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: modalPulse 4s infinite ease-in-out;
}

@keyframes modalPulse {
  0%,
  100% {
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(0, 245, 212, 0.1);
  }

  50% {
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(0, 245, 212, 0.3),
      0 0 15px rgba(0, 245, 212, 0.1);
  }
}

.modern-modal-overlay.active .modern-modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.modal-header-modern {
  text-align: center;
  margin-bottom: 30px;
}

.modal-title {
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.text-gradient {
  background: linear-gradient(135deg, #00f5d4, #4361ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(0, 245, 212, 0.3);
}

.modal-subtitle {
  font-family: "Inter", sans-serif;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Input Groups */
.input-group-modern {
  margin-bottom: 20px;
  position: relative;
}

.input-label {
  display: block;
  color: #00f5d4;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  margin-left: 5px;
}

.input-wrapper-modern {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 15px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  pointer-events: none;
  transition: color 0.3s ease;
}

.form-input-modern {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 15px 14px 45px;
  color: #fff;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
}

.form-input-modern:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: #4361ee;
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.15);
}

.form-input-modern:focus + .input-icon,
.form-input-modern:focus ~ .input-icon {
  color: #4361ee;
}

.toggle-password {
  position: absolute;
  right: 15px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.3s ease;
  padding: 5px;
}

.toggle-password:hover {
  color: #fff;
}

/* Form Actions */
.form-actions-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.remember-me input {
  accent-color: #00f5d4;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.forgot-pass {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-pass:hover {
  color: #fff;
  text-decoration: underline;
}

.btn-login-modern {
  width: 100%;
  background: linear-gradient(135deg, #4361ee, #3a0ca3);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
  font-family: "Orbitron", sans-serif;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn-login-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-login-modern:hover::before {
  left: 100%;
}

.btn-login-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.5);
}

.register-link-modern {
  text-align: center;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.register-link-modern a {
  color: #00f5d4;
  text-decoration: none;
  font-weight: 600;
  margin-left: 5px;
}

.register-link-modern a:hover {
  text-decoration: underline;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .hero-stats-container {
    width: 90%;
    gap: 15px;
    /* Smaller gap */
    padding: 10px 20px;
    flex-wrap: wrap;
    /* Allow wrapping if needed, or keeping it distinct */
    border-radius: 30px;
  }

  .hero-stat-card {
    padding: 5px;
  }

  .hero-stat-num {
    font-size: 1.1rem;
  }

  .hero-stat-label {
    font-size: 0.6rem;
  }

  /* Hide dividers on mobile if wrapping happens, or adjust them */
  .hero-stat-card:not(:last-child)::after {
    right: -8px;
    /* Closer divider */
  }
}

@media (max-width: 480px) {
  .hero-stats-container {
    gap: 10px;
    padding: 12px 15px;
    margin-top: 15px;
    width: 95%;
    border-radius: 20px;
  }

  .hero-stat-num {
    font-size: 1rem;
    /* Smaller numbers */
  }

  .hero-stat-label {
    font-size: 0.55rem;
  }

  .hero-stat-card:not(:last-child)::after {
    display: none;
    /* Remove dividers on very small screens to avoid clutter */
  }

  .modern-modal-container {
    padding: 25px;
    width: 90%;
  }

  .modal-title {
    font-size: 1.5rem;
  }
}
