/**=====================
    25. Authentication CSS Start
==========================**/

.login-card {
  min-height: 100vh;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto;
  padding: 20px 12px;

  box-sizing: border-box;

  /* Fondo ADMIN SEAF */
  background-image: url('../../images/login/login_bg.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  position: relative;
  overflow: hidden;


  /* Capa suave para mejorar la lectura */
  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
  }


  /* =====================================================
     LOGO
     ===================================================== */

  .logo {
    display: block;
    margin-bottom: 10px;
    text-align: center;
    position: relative;
    z-index: 2;
  }


  /* =====================================================
     REDES
     ===================================================== */

  .btn-showcase {

    .btn {
      line-height: 1;

      padding: 10px 15px;

      margin: 0;

      & + .btn {
        margin-left: 5px;
      }

      svg {
        height: 16px;

        vertical-align: bottom;
      }
    }
  }


  /* =====================================================
     LOGIN CARD
     ===================================================== */

  .login-main {

    width: 450px;

    max-width: 100%;

    padding: 40px;

    border-radius: 16px;

    margin: 0 auto;

    background: rgba(255, 255, 255, 0.97);

    box-shadow:
      0 20px 60px rgba(20, 15, 60, 0.18),
      0 5px 20px rgba(20, 15, 60, 0.08);

    position: relative;

    z-index: 2;

    backdrop-filter: blur(8px);


    /* =====================================================
       FORMULARIO
       ===================================================== */

    .theme-form {

      h4 {
        margin-bottom: 5px;
      }


      label {
        font-size: 15px;

        letter-spacing: 0.4px;

        font-weight: 600;
      }


      .checkbox label::before {
        background-color: $card-body-color;

        border: 1px solid #dfdfdf;
      }


      /* ===================================================
         SEPARADOR
         =================================================== */

      .or {

        position: relative;

        &:before {
          content: "";

          position: absolute;

          width: 65%;

          height: 1px;

          background-color: #e5e2f0;

          top: 9px;

          z-index: 0;

          right: 0;
        }
      }


      /* ===================================================
         INPUTS
         =================================================== */

      input {

        background-color: #f8f7fd;

        border: 1px solid #dedbea;

        border-radius: 8px;

        min-height: 48px;

        transition: all 0.3s ease;


        &::-webkit-input-placeholder {
          color: $light-text;
        }


        &:hover {
          border-color: #bcb5d8;
        }


        &:focus {

          background-color: #ffffff;

          border: 1px solid #7047e8;

          box-shadow:
            0 0 0 3px rgba(112, 71, 232, 0.10) !important;

          transition: all 0.3s ease;
        }
      }


      /* ===================================================
         PARRAFOS
         =================================================== */

      p {

        margin-bottom: 25px;

        font-size: 14px;

        color: $dark-gray;
      }


      /* ===================================================
         FORM GROUP
         =================================================== */

      .form-group {

        margin-bottom: 15px;

        position: relative;
      }


      /* ===================================================
         LINKS
         =================================================== */

      .link {

        position: absolute;

        top: 10px;

        right: 0;
      }


      /* ===================================================
         BOTON PRINCIPAL
         =================================================== */

      .btn-primary {

        min-height: 50px;

        border: none;

        border-radius: 8px;

        background: linear-gradient(
          135deg,
          #7047e8 0%,
          #6035d6 100%
        );

        box-shadow:
          0 8px 20px rgba(112, 71, 232, 0.25);

        transition: all 0.2s ease;


        &:hover:not(:disabled) {

          transform: translateY(-1px);

          box-shadow:
            0 12px 25px rgba(112, 71, 232, 0.30);
        }


        &:disabled {

          opacity: 0.65;

          cursor: not-allowed;
        }
      }
    }
  }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

  .login-card {

    padding: 20px 15px;

    background-position: center center;


    .login-main {

      width: 100%;

      max-width: 450px;

      padding: 30px 25px;

      border-radius: 14px;
    }
  }
}


@media (max-width: 480px) {

  .login-card {

    padding: 15px 10px;


    .login-main {

      padding: 25px 20px;
    }
  }
}

.show-hide {
  position: absolute;
  top: 52px;
  right: 20px;
  transform: translateY(-50%);

  span {
    cursor: pointer;
    font-size: 13px;
    color: var(--theme-deafult);

    &.show {
      &:before {
        content: "show";
      }
    }

    &:before {
      content: "hide";
    }
  }
}

.needs-validation {
  .invalid-feedback {
    color: $dark-gray;
  }

  .show-hide {
    right: 30px;
  }

  .invalid-tooltip {
    top: 10px;
    right: 10px;
  }
}

/**=====================
    25. Authentication CSS Ends
==========================**/

/* =========================================================
   ADMIN SEAF - LOADING
   ========================================================= */

.adminseaf-loading {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.96);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  animation: adminseaf-loading-fade-in 0.25s ease;
}

/* =========================================================
   ADMIN SEAF - LOADING
   ========================================================= */

.adminseaf-loading {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(248, 247, 253, 0.97) 55%,
      rgba(240, 238, 250, 0.96) 100%
    );

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  animation: adminseaf-loading-fade 0.3s ease;
}


/* =========================================================
   CONTENEDOR
   ========================================================= */

.adminseaf-loading-content {
  width: 90%;
  max-width: 480px;

  padding: 45px 40px 35px;

  text-align: center;

  background: rgba(255, 255, 255, 0.88);

  border: 1px solid rgba(112, 71, 232, 0.12);

  border-radius: 24px;

  box-shadow:
    0 20px 60px rgba(42, 30, 90, 0.12),
    0 5px 20px rgba(42, 30, 90, 0.06);

  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}


/* =========================================================
   LOGO
   ========================================================= */

.adminseaf-logo-wrapper {
  margin-bottom: 30px;
}


.adminseaf-loading-logo {
  width: 250px;
  max-width: 80%;
  height: auto;

  object-fit: contain;

  animation: adminseaf-logo-pulse 2.5s ease-in-out infinite;
}


/* =========================================================
   LOADER CIRCULAR
   ========================================================= */

.adminseaf-loader {
  width: 100px;
  height: 100px;

  position: relative;

  margin: 0 auto 25px;

  display: flex;
  align-items: center;
  justify-content: center;
}


.adminseaf-loader-ring {
  position: absolute;
  inset: 0;

  border-radius: 50%;

  border: 8px solid #e7e3f5;

  border-top-color: #7047e8;
  border-right-color: #7047e8;

  animation: adminseaf-loader-spin 1.2s linear infinite;
}


.adminseaf-loader-icon {
  width: 62px;
  height: 62px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #f4f1ff;

  font-size: 30px;

  box-shadow:
    0 5px 15px rgba(112, 71, 232, 0.12);
}


/* =========================================================
   TITULO
   ========================================================= */

.adminseaf-loading-title {
  margin-bottom: 7px;

  color: #25233a;

  font-size: 20px;
  font-weight: 700;

  letter-spacing: -0.2px;
}


/* =========================================================
   TEXTO
   ========================================================= */

.adminseaf-loading-text {
  color: #77748a;

  font-size: 14px;

  line-height: 1.5;

  min-height: 22px;
}


/* =========================================================
   PUNTOS ANIMADOS
   ========================================================= */

.loading-dots::after {
  content: "";

  animation: adminseaf-dots 1.5s infinite;
}


/* =========================================================
   PROGRESO
   ========================================================= */

.adminseaf-progress-dots {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 8px;

  margin: 20px 0 28px;
}


.adminseaf-progress-dots span {
  width: 9px;
  height: 9px;

  border-radius: 50%;

  background: #7047e8;

  opacity: 0.25;

  animation: adminseaf-dot-pulse 1.4s infinite;
}


.adminseaf-progress-dots span:nth-child(1) {
  animation-delay: 0s;
}

.adminseaf-progress-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.adminseaf-progress-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

.adminseaf-progress-dots span:nth-child(4) {
  animation-delay: 0.6s;
}


/* =========================================================
   ESTADOS
   ========================================================= */

.adminseaf-loading-status {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  border-top: 1px solid #eceaf3;

  padding-top: 22px;
}


.status-item {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 7px;

  color: #77748a;

  font-size: 11px;

  line-height: 1.25;
}


.status-item:not(:last-child)::after {
  content: "";

  position: absolute;

  right: 0;
  top: 5px;

  width: 1px;
  height: 38px;

  background: #e5e2ee;
}


.status-icon {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #f2efff;

  color: #7047e8;

  font-size: 16px;
  font-weight: 600;
}


/* =========================================================
   ANIMACIONES
   ========================================================= */

@keyframes adminseaf-loader-spin {

  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


@keyframes adminseaf-logo-pulse {

  0%,
  100% {
    opacity: 0.88;
    transform: scale(0.98);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}


@keyframes adminseaf-dot-pulse {

  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}


@keyframes adminseaf-dots {

  0% {
    content: "";
  }

  25% {
    content: ".";
  }

  50% {
    content: "..";
  }

  75% {
    content: "...";
  }

  100% {
    content: "";
  }
}


@keyframes adminseaf-loading-fade {

  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 576px) {

  .adminseaf-loading-content {
    width: calc(100% - 30px);

    padding: 35px 22px 25px;

    border-radius: 20px;
  }

  .adminseaf-loading-logo {
    width: 210px;
  }

  .adminseaf-logo-wrapper {
    margin-bottom: 25px;
  }

  .adminseaf-loader {
    width: 85px;
    height: 85px;
  }

  .adminseaf-loader-icon {
    width: 54px;
    height: 54px;

    font-size: 25px;
  }

  .adminseaf-loading-title {
    font-size: 18px;
  }

  .adminseaf-loading-text {
    font-size: 13px;
  }

  .adminseaf-loading-status {
    grid-template-columns: repeat(2, 1fr);

    row-gap: 20px;
  }

  .status-item:nth-child(2)::after {
    display: none;
  }

  .status-item:nth-child(3)::after {
    display: block;
  }
}


/* =========================================================
   MOBILE PEQUEÑO
   ========================================================= */

@media (max-width: 380px) {

  .adminseaf-loading-content {
    padding: 28px 16px 22px;
  }

  .adminseaf-loading-logo {
    width: 185px;
  }

  .adminseaf-loader {
    width: 75px;
    height: 75px;
  }

  .adminseaf-loading-title {
    font-size: 17px;
  }

  .adminseaf-loading-status {
    gap: 12px;
  }

  .status-item {
    font-size: 10px;
  }
}