html,
body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: 'Montserrat', Arial, sans-serif;
  overflow: hidden;
}

body {
  background:
    radial-gradient(circle at 20% 20%, rgba(180, 211, 48, 0.14), transparent 28%),
    radial-gradient(circle at 85% 25%, rgba(0, 212, 255, 0.16), transparent 32%),
    radial-gradient(circle at 78% 88%, rgba(180, 211, 48, 0.12), transparent 24%),
    linear-gradient(135deg, #071524 0%, #0f2237 55%, #071524 100%) !important;
  color: #ffffff;
}
@keyframes networkMove {
  0% { transform: translate(0,0); }
  50% { transform: translate(-20px, -10px); }
  100% { transform: translate(0,0); }
}

body::before {
 
  content: "";
  position: fixed;
  inset: 0;

  background-image: url("data:image/svg+xml,%3Csvg width='600' height='600' viewBox='0 0 600 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%2300d4ff' stroke-width='0.5' opacity='0.15'%3E%3Ccircle cx='100' cy='100' r='2'/%3E%3Ccircle cx='200' cy='150' r='2'/%3E%3Ccircle cx='300' cy='80' r='2'/%3E%3Ccircle cx='400' cy='200' r='2'/%3E%3Ccircle cx='150' cy='300' r='2'/%3E%3Ccircle cx='350' cy='350' r='2'/%3E%3Ccircle cx='500' cy='120' r='2'/%3E%3Ccircle cx='480' cy='300' r='2'/%3E%3Cline x1='100' y1='100' x2='200' y2='150'/%3E%3Cline x1='200' y1='150' x2='300' y2='80'/%3E%3Cline x1='300' y1='80' x2='400' y2='200'/%3E%3Cline x1='150' y1='300' x2='350' y2='350'/%3E%3Cline x1='350' y1='350' x2='480' y2='300'/%3E%3Cline x1='480' y1='300' x2='500' y2='120'/%3E%3C/g%3E%3C/svg%3E");

  background-size: 600px 600px;
  background-repeat: repeat;
  animation: networkMove 30s ease-in-out infinite;

  pointer-events: none;
  z-index: -1;
}
/* Glow decorativo */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
    pointer-events: none;
  max-width: 100vw;
  max-height: 100vh;
}


/* Logo superior */
.login-brand-wrapper {
  position: relative;
  z-index: 2;
  padding-top: 70px;
  margin-bottom: 20px;
  text-align: center;
}

.login-main-logo {
  width: 315px !important;
  height: auto !important;
  max-width: 86vw;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.25));
}

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center; /* 🔥 centra TODO */
  align-items: center;
  position: relative;
}

.crosscash-login-panel {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Card */
.login-card {
  width: 100%;
  max-width: 420px;
  padding: 20px 38px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.085);
  border: 1px solid rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
}

/* Título */
.login-card h4 {
  color: #ffffff;
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.login-card p {
  color: #cbd5e1;
  margin-bottom: 28px;
  font-size: 0.9rem;
}

/* Inputs */
.login-input-group {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: 0.25s ease;
}

.login-input-group:hover {
  border-color: rgba(180, 211, 48, 0.55);
  background: rgba(255, 255, 255, 0.11);
}

.login-input-group:focus-within {
  border-color: #b4d330;
  box-shadow: 0 0 0 4px rgba(180, 211, 48, 0.15);
}

.login-input-group span,
.login-input-group i {
  color: #dbeafe;
  font-size: 1rem;
  min-width: 18px;
}

.login-input-group input {
  width: 100%;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #ffffff !important;
  font-size: 0.95rem;
  box-shadow: none !important;
  padding: 0 !important;
}

.login-input-group input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

/* Botón */
.login-btn {
  width: 100%;
  height: 56px;
  margin-top: 10px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #b4d330, #95bf1f);
  color: #071524;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.4px;
  box-shadow: 0 16px 34px rgba(180, 211, 48, 0.30);
  transition: 0.25s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(180, 211, 48, 0.42);
}

.login-btn::after {
  content: "";
  position: absolute;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 60%);
  top: -50%;
  left: -50%;
  opacity: 0;
  transition: 0.35s ease;
}

.login-btn:hover::after {
  opacity: 1;
}


/* Footer */
.footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15px;
  z-index: 5;
  background: transparent !important;
  color: rgba(219, 234, 254, 0.72) !important;
  border: none !important;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.85;
   width: 100%;
}


.footer > div {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer img {
  width: 90px !important;
  height: auto !important;
  object-fit: contain;
  opacity: 0.85;
}

/* Overlay preload */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 21, 36, 0.72);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay i {
  color: #b4d330;
  font-size: 3rem;
}

/* Responsive */

@media (max-height: 700px) {
  body {
    overflow-y: auto;
  }
}

@media (max-width: 768px) {
  .login-brand-wrapper {
    padding-top: 50px;
    margin-bottom: 22px;
  }

  .login-main-logo {
    width: 280px !important;
  }

  .login-card {
    max-width: 390px;
    padding: 30px 24px;
  }

  .crosscash-login-panel {
    padding-bottom: 120px;
  }
}

@media (max-width: 480px) {
  .login-brand-wrapper {
    padding-top: 38px;
  }

  .login-main-logo {
    width: 245px !important;
  }

  .login-card {
    padding: 26px 20px;
    border-radius: 20px;
  }

  .login-card h4 {
    font-size: 1.28rem;
  }

  .login-input-group {
    height: 52px;
  }

  .login-btn {
    height: 54px;
  }

  .footer {
    font-size: 0.72rem;
    bottom: 10px;
  }

  .footer img {
    width: 78px !important;
  }
}

.login-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180,211,48,0.22), transparent 70%);
  filter: blur(30px);
  bottom: -200px;
  right: -150px;
}

@keyframes glowMove {
  0% { transform: translate(0,0); }
  50% { transform: translate(-20px, 20px); }
  100% { transform: translate(0,0); }
}

.login-bg-glow {
  animation: glowMove 12s ease-in-out infinite;
}