@charset "utf-8";
/* CSS Document */

/* =========================
   LOGIN WRAPPER
========================= */

.login-wrapper{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 20px;

  background: linear-gradient(135deg,#0F172A,#1E293B);
  position:relative;
  overflow:hidden;
}

/* efecto glow fondo */
.login-wrapper::before{
  content:"";
  position:absolute;
  width:500px;
  height:500px;
  background: radial-gradient(circle,#2563EB55,#0000);
  top:-150px;
  left:-150px;
  filter: blur(80px);
}

.login-wrapper::after{
  content:"";
  position:absolute;
  width:500px;
  height:500px;
  background: radial-gradient(circle,#22C55E33,#0000);
  bottom:-150px;
  right:-150px;
  filter: blur(90px);
}

/* =========================
   CARD
========================= */

.login-card{
  width:100%;
  max-width:420px;

  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border:1px solid rgba(255,255,255,0.12);
  border-radius:20px;

  padding:35px;

  box-shadow: 0 25px 60px rgba(0,0,0,0.4);

  animation: fadeUp .6s ease;
}

@keyframes fadeUp{
  from{transform:translateY(20px); opacity:0;}
  to{transform:translateY(0); opacity:1;}
}

/* =========================
   TITULOS
========================= */

.login-title{
  color:#fff;
  font-size:26px;
  text-align:center;
  margin-bottom:6px;
}

.login-subtitle{
  color:#CBD5E1;
  text-align:center;
  font-size:14px;
  margin-bottom:25px;
}

/* =========================
   FORM
========================= */

.login-form{
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* =========================
   INPUT GROUP
========================= */

.input-group{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.input-group label{
  font-size:13px;
  color:#E2E8F0;
}

/* INPUT BASE */
.input-group input,
.input-group select,
.input-group textarea{
  width:100%;
  padding:12px 14px;

  border-radius:12px;

  border:1px solid rgba(255,255,255,0.15);
  background: rgba(15,23,42,0.5);

  color:#fff;
  outline:none;

  transition:0.3s ease;

  font-size:14px;
}

/* PLACEHOLDER */
.input-group input::placeholder,
.input-group textarea::placeholder{
  color:#94A3B8;
}

/* FOCUS MODERNO */
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus{
  border-color:#2563EB;
  box-shadow:0 0 0 3px rgba(37,99,235,0.25);
  background: rgba(15,23,42,0.7);
}

/* =========================
   SELECT MODERNO
========================= */

.input-group select{
  appearance:none;
  cursor:pointer;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%),
                    linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1em + 2px),
                       calc(100% - 13px) calc(1em + 2px);
  background-size:5px 5px;
  background-repeat:no-repeat;
}

/* =========================
   CHECKBOX MODERNO
========================= */

.checkbox-group{
  display:flex;
  align-items:center;
  gap:10px;
  color:#CBD5E1;
  font-size:13px;
}

.checkbox-group input{
  width:16px;
  height:16px;
  accent-color:#2563EB;
  cursor:pointer;
}

/* =========================
   BOTÓN LOGIN
========================= */

.btn-login{
  margin-top:10px;
  padding:12px;

  border:none;
  border-radius:12px;

  background: linear-gradient(135deg,#2563EB,#1D4ED8);
  color:#fff;

  font-weight:600;
  cursor:pointer;

  transition:0.3s ease;

  box-shadow:0 10px 25px rgba(37,99,235,0.3);
}

.btn-login:hover{
  transform:translateY(-3px);
  box-shadow:0 15px 35px rgba(37,99,235,0.4);
}

/* =========================
   FOOTER LINKS
========================= */

.login-footer{
  display:flex;
  justify-content:space-between;
  margin-top:15px;
  font-size:13px;
}

.login-footer a{
  color:#93C5FD;
  text-decoration:none;
  transition:0.3s;
}

.login-footer a:hover{
  color:#fff;
  text-decoration:underline;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:480px){
  .login-card{
    padding:25px;
  }

  .login-footer{
    flex-direction:column;
    gap:8px;
    text-align:center;
  }
}



/* =========================
   ALERTAS LOGIN FRONT NO BORRAR 
========================= */
.login-error-container{

    width:100%;

    background:

    linear-gradient(
        135deg,
        #0f172a,
        #1e293b
    );


    display:flex;

    justify-content:center;

    padding:25px 0;

}



.login-error-card{


    position:relative;

    overflow:hidden;


    display:flex;

    align-items:center;


    gap:20px;


    width:430px;


    padding:24px 28px;


    background:

    linear-gradient(
        145deg,
        #1e293b,
        #334155
    );


    border-radius:22px;


    border:1px solid rgba(255,255,255,.08);


    box-shadow:

    0 20px 45px rgba(15,23,42,.25);


    animation:

    loginErrorShow .5s ease;


}



/* brillo */

.login-error-light{


    position:absolute;


    width:180px;

    height:180px;


    right:-70px;

    top:-70px;


    background:

    rgba(239,68,68,.25);


    filter:blur(50px);


}



/* ICONO */


.login-error-icon{


    position:relative;


    width:70px;

    height:70px;


    min-width:70px;


    display:flex;

    align-items:center;

    justify-content:center;


    border-radius:50%;


    background:

    linear-gradient(
        135deg,
        #ef4444,
        #991b1b
    );


    box-shadow:

    0 10px 30px rgba(239,68,68,.45);


    animation:

    loginErrorPulse 2s infinite;


}



.login-error-icon svg{


    width:38px;

    height:38px;


    fill:none;


    stroke:white;

    stroke-width:2;


}



/* TEXTO */


.login-error-content h3{


    margin:0 0 8px;


    color:#ffffff;


    font-size:21px;


    font-weight:800;


}



.login-error-content p{


    margin:0;


    color:#cbd5e1;


    font-size:15px;


    line-height:1.5;


}



/* linea decorativa */


.login-error-card::before{


    content:"";


    position:absolute;


    left:0;

    top:0;


    height:100%;


    width:5px;


    background:

    linear-gradient(
        180deg,
        #ef4444,
        #f97316
    );


}




@keyframes loginErrorShow{


    from{

        opacity:0;

        transform:

        translateY(-25px)
        scale(.95);

    }


    to{

        opacity:1;

        transform:

        translateY(0)
        scale(1);

    }


}



@keyframes loginErrorPulse{


    0%,100%{

        transform:scale(1);

    }


    50%{

        transform:scale(1.08);

    }

}


/***/

/*=========================================================
BOTÓN BLOQUEADO
=========================================================*/

button[data-lock="1"]{

    opacity:.75;

    pointer-events:none;

}

/*=========================================================
ENLACES EXTERNOS
=========================================================*/

a[target="_blank"]{

    cursor:pointer;

}


.loading-image{

    background:#e2e8f0;

    position:relative;

    overflow:hidden;

}

.loading-image::before{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.45),
        transparent
    );

    animation:skeleton 1.4s linear infinite;

}

@keyframes skeleton{

    from{

        transform:translateX(-100%);

    }

    to{

        transform:translateX(100%);

    }

}
