body {
  font-family: 'Poppins', sans-serif;
  background:url('/img/SICT.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay; /* mezcla degradado + imagen */
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}


.login-container {
  width: 100%;
  max-width: 400px;
  margin: auto;
  padding: 20px;
}

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

.logo {
  width: 300px;
  height: 250px;
  margin: auto;
  display: block;
  margin-bottom: 20px;
}


.input-group {
  position: relative;
  margin-bottom: 20px;
}

.icon {
  position: absolute;
  left: 15px;
  top: 12px;
  color: #aaa;
}

.input-group input {
  width: 100%;
  padding: 12px 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.alert-error {
  background-color: #ffe0e0;
  color: #d32f2f;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 14px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  

  body.dark-mode.login-body {
    background: linear-gradient(135deg, #1e1e2f, #2c2c3e);
  }
  
  .login-container {
    width: 100%;
    max-width: 500px;
    margin: auto;
    padding: 20px;
  }
  
  .login-card {
    background: rgb(230, 228, 228);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 40px 30px;
    animation: fadeIn 1s ease-in-out;
    transition: background 0.3s ease, color 0.3s ease;
  }
  
  body.dark-mode .login-card {
    background: #2c2c3e;
    color: white;
  }
  
   
  .icon {
    position: absolute;
    left: 15px;
    top: 12px;
    color: #aaa;
    pointer-events: none;
  }
  
  .btn-login {
    width: 100%;
    background: linear-gradient(90deg, #dc6264, #783233);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .btn-login:hover {
    background: linear-gradient(to right, #5c2526, #dc6264);
  }
  
  .alert-error {
    background-color: #ffe0e0;
    color: #d32f2f;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
  }
  
  .login-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #666;
  }
  
  @media (max-width: 500px) {
    .login-card {
      padding: 70px 20px;
    }
  
    .logo {
      width: 120px;
      height: 120px;
    }
  
    .login-header h2 {
      font-size: 20px;
    }
  }


    /* Header */
  header {
    background: linear-gradient(90deg, #007bff, #aeefef);
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 60px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Espacio entre imagen y texto */
  }
  
  .logo img {
    height: 80px;
    width: 80px;
    border-radius: 50%; /* Esto hace que sea redondo */
    object-fit: cover; /* Mantiene la proporción de la imagen */
    border: 2px solid #ddd; /* Opcional: un borde suave */
  }
  
  .logo span {
    font-size: 14px; /* Texto más pequeño */
    font-weight: bold;
  }
  
  .btn-primary {
    font-size: 12px; /* Botón más pequeño */
    padding: 5px 10px;
  }



  .alert-error {
    background-color: #f8d7da;
    color: #842029;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
    border: 1px solid #f5c2c7;
  }
  
  .alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
    border: 1px solid #badbcc;
  }
  
  /*restablecer contraseña*/

  body {
    font-family: 'Poppins', sans-serif;
    background: #f5f6fa;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.reset-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
}
.reset-card h2 {
    color: #333;
}
.reset-card input {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.btn-reset {
    background: #007bff;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.btn-reset:hover {
    background: #0056b3;
}
.mensaje {
    margin-top: 10px;
    color: #333;
}
a.volver {
    display: inline-block;
    margin-top: 15px;
    color: #007bff;
    text-decoration: none;
}
a.volver:hover {
    text-decoration: underline;
}


/* boton reestablecer contraseña*/

#resetModal input[type="text"],
#resetModal button.btn-login {
  width: 100%;
  max-width: 300px; /* opcional, ajusta el tamaño máximo si quieres */
  display: block;
  margin: 0 auto;
  box-sizing: border-box;
}

#resetModal input[type="text"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#resetModal button.btn-login {
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #dc6264; /* tu color del botón */
  color: white;
  cursor: pointer;
}

#resetModal button.btn-login:hover {
  background-color: #e79596; /* color al pasar el mouse */
}

/* ===================== Efectos Agregados ===================== */

/* Fondo dinámico con degradado animado */
body {
  background-image: url('../img/gobierno.jpg'); 
}

@keyframes backgroundShift {
  0% {
    background: linear-gradient(135deg, #fdf2f2, #fef9c3);
  }
  30% {
    background: linear-gradient(135deg, #ffe5e5, #fff8dc);
  }
  500% {
    background: linear-gradient(135deg, #f3e8ff, #fff3cd);
  }
}

/* Animación de entrada */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Efecto de aparición en el formulario */
.login-card {
  animation: fadeIn 1s ease-in-out;
}

/* Efecto en los campos de entrada */
.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  outline: none;
  border-color: #dc6264;
  box-shadow: 0 0 10px rgba(220, 98, 100, 0.6);
  transition: 0.3s ease;
}

/* Efecto hover brillante en el formulario */
.login-card:hover {
  box-shadow: 0 0 55px rgba(220, 98, 100, 0.8), 0 0 40px rgba(82, 28, 29, 0.6);
  transform: translateY(-5px);
}

/* Efecto en el botón con pulso y brillo */
.btn-login {
  position: relative;
  width: 100%;
  background: linear-gradient(90deg, #dc6264, #783233);
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
  animation: pulseGlow 2.5s infinite alternate;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(220, 98, 100, 0.4); }
  100% { box-shadow: 0 0 25px rgba(220, 98, 100, 0.9); }
}

.btn-login:hover {
  background: linear-gradient(to right, #5c2526, #dc6264);
}

/* Brillo que pasa sobre el botón */
.btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.918), rgba(255,255,255,0));
  transform: skewX(-20deg);
  transition: 0.5s;
}

.btn-login:hover::before {
  left: 130%;
}

/* Placeholder animado al enfocar */
.input-group input::placeholder,
.input-group textarea::placeholder {
  color: #888;
  transition: color 0.3s ease;
}

.input-group input:focus::placeholder,
.input-group textarea:focus::placeholder {
  color: #dc6264;
}

/* Efecto sutil en los labels */
.input-group label {
  position: relative;
  display: inline-block;
  color: #333;
  transition: color 0.3s ease;
}

.input-group label:hover {
  color: #dc6264;
}




/* === Estilo para el grupo de entrada con ícono y select === */
.input-group {
  display: flex;
  align-items: center;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.input-group:hover {
  border-color: #7f5af0; /* color al pasar el mouse */
}

/* Ícono a la izquierda */
.input-group .icon {
  color: #aaa;
  font-size: 18px;
  margin-right: 10px;
}

/* Select estilizado */
.input-group select {
  flex: 1;
  background: transparent;
  border: none;
  color: #000000;
  font-size: 15px;
  padding: 6px 4px;
  outline: none;
  appearance: none; /* oculta la flecha por defecto */
  cursor: pointer;
}

/* Flecha personalizada */
.input-group select::-ms-expand {
  display: none;
}

/* Opciones dentro del select */
.input-group option {
  background: #222;
  color: #fff;
}

/* === Adaptación para pantallas pequeñas === */
@media (max-width: 768px) {
  .input-group {
    padding: 10px;
    flex-direction: row;
  }

  .input-group .icon {
    font-size: 20px;
  }

  .input-group select {
    font-size: 16px;
  }
}
