/* ============================================================================================================== */
/* ==================================================== BASE ==================================================== */
/* ============================================================================================================== */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: OpenSans, sans-serif;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent),
              radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.4), transparent),
              #dfe6e9;
  animation: mistShift 30s ease-in-out infinite alternate;
  overflow-x: hidden; 
  overflow-y: auto;   

  position: relative; 
  min-height: 100vh;
  overflow-x: hidden; 
}

.container {
  max-width: 800px;
}
    
.card {
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
  
.card-header {
  background-color: #0d6efd;
  color: white;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* distribuye contenido arriba y abajo */
  align-items: center;
  padding-top: 20px;
  height: 150px;
  background: #0f2c4d;
  color: white;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: auto;
  filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.4));
}

.footer img {
  width: 90px;
  height: auto;
}
footer p {
  margin-bottom: 1px;
}

.text-primary {
  color: #00A1B6 !important ;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.card-header  {
  background-color: #0F2C4D;
}

.btn{
  align-items: center;
  background-color: #686466;
  border-color: #686466;
  color: white;
}

.btn:hover,
.btn.active {
  background-color: #01A5B4;
  border-color: #01A5B4;
}


/* ============================================================================================================== */
/* =============================================== EFECTOS VISUALES ============================================= */
/* ============================================================================================================== */


@keyframes animate {
    0%{
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100%{
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

.background {
    position: fixed;
    width: 100vw;
    height: 100%; 
    min-height: 100vh;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    z-index: 0; 
    pointer-events: none; 
}


.background li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 19s linear infinite;
}

.background li:nth-child(0) {
    left: 53%;
    width: 151px;
    height: 151px;
    bottom: -151px;
    animation-delay: 1s;
    background-color: rgba(0, 255, 255, 0.2);
}
.background li:nth-child(1) {
    left: 74%;
    width: 165px;
    height: 165px;
    bottom: -165px;
    animation-delay: 1s;
    background-color: rgba(0, 255, 255, 0.2);
}
.background li:nth-child(2) {
    left: 76%;
    width: 144px;
    height: 144px;
    bottom: -144px;
    animation-delay: 9s;
    background-color: rgba(0, 255, 255, 0.2);
}
.background li:nth-child(3) {
    left: 79%;
    width: 121px;
    height: 121px;
    bottom: -121px;
    animation-delay: 14s;
    background-color: rgba(0, 255, 255, 0.2);
}
.background li:nth-child(4) {
    left: 89%;
    width: 156px;
    height: 156px;
    bottom: -156px;
    animation-delay: 18s;
    background-color: rgba(0, 255, 255, 0.2);
}
.background li:nth-child(5) {
    left: 55%;
    width: 137px;
    height: 137px;
    bottom: -137px;
    animation-delay: 4s;
    background-color: rgba(0, 255, 255, 0.2);
}
.background li:nth-child(6) {
    left: 22%;
    width: 199px;
    height: 199px;
    bottom: -199px;
    animation-delay: 26s;
    background-color: rgba(0, 255, 255, 0.2);
}
.background li:nth-child(7) {
    left: 3%;
    width: 121px;
    height: 121px;
    bottom: -121px;
    animation-delay: 14s;
    background-color: rgba(0, 255, 255, 0.2);
}
.background li:nth-child(8) {
    left: 88%;
    width: 150px;
    height: 150px;
    bottom: -150px;
    animation-delay: 11s;
    background-color: rgba(0, 255, 255, 0.2);
}
.background li:nth-child(9) {
    left: 6%;
    width: 143px;
    height: 143px;
    bottom: -143px;
    animation-delay: 9s;
    background-color: rgba(0, 255, 255, 0.2);
}



/* ============================================================================================================== */
/* =============================================== MEDIA QUERIES (Ajustadas) ==================================== */
/* ============================================================================================================== */

@media (max-width: 768px) {

    .modal-dialog {
        width: 60%;
      }

    .form-small {
      width: 90%;
      margin-top: 20px;
    }

   
}

@media (max-width: 480px) {

    .modal-dialog {
        width: 60%;
      }
    #username {
        display: none !important;
    }
    .form-small {
      width: 90%;
      margin-top: 20px;
    }
}