body
{
min-height: 100vh;
/* background-image: url(imagenes/fondo_login.jpg); */
background-size: cover;
background-position: center;
display: flex;
align-items: center;
justify-content: center;
 background: linear-gradient(to  right, #d4dbf0, #FDF2F8);
}

.container{
    border: 2px solid rgba(255,255,255,0.2);
    width: 60%;
    max-width: 400px;
    padding: 30px 40px;
    border-radius: 10px;
    color:rgb(29, 28, 28);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    background-color: #fff;
    
    
}

.logo {
  display: block;
  margin: 0 auto 20px auto;
  width: 200px;
  height: 80px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
      
.container h1 {
    
    text-align: center;
    margin-bottom: 35px;
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-box{
    border: 2px solid rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    border-radius: 35px;
    min-height: 45px;
    padding: 0 15px;
    
}


.input-box input{
    flex: 1;
    background-color: transparent;
    border: 0;
    outline: 0;
    font-size: 16px;
    color: rgb(0, 0, 0);
    min-width: 0;
}

.input-box input::placeholder{
    
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

.btn{
    border-radius: 30px;
    border: 0;
    outline: 0;
    font-size: 15px;
    font-weight: 500;
    padding: 10px;
    cursor: pointer;
    
}

.btn:hover {
  background-color:#91cbf2;; 
} 

.register-link{
    text-align: center;
    font-size: 14.5px;
}

.register-link a{
    margin-left: 8px;
    color: rgb(0, 0, 0);
    text-decoration: none;
}

form a:hover {
    text-decoration: underline;
}

input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px rgb(0 0 0 / 0%) inset !important;
    -webkit-text-fill-color: rgb(10, 10, 10) !important;
    caret-color: rgb(0, 0, 0);
    font-family: 'Lora', serif !important;
    font-size: 16px !important;
    transition: background-color 600000s 0s, color 600000s 0s;
}

.error-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 12px 15px;
  border: 1px solid #f5c2c7;
  background-color: #f8d7da;
  color: #842029;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  animation-duration: 0.2s;
}

/* Ícono */
.error-msg i {
  font-size: 18px;
  color: inherit; /* usa el mismo color del estado */
}

/* Estado error (rojo - tu base actual) */
.error-msg.error {
  border: 1px solid #f5c2c7;
  background-color: #f8d7da;
  color: #842029;
}

/* Estado verificando (verde) */
.error-msg.verificando {
  border: 1px solid #badbcc;
  background-color: #d1e7dd;
  color: #0f5132;
}

/* Animación shake */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

.error-msg.shake {
  animation: shake 0.4s;
}

