/* ==============================
   ESTILOS DEL LOGIN
   ============================== */
body.login {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Fondo con el logo */
body.login::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/utu.png'); 
  background-repeat: repeat;
  background-size: 10%; 
  background-position: center;
  opacity: 0.1; 
  z-index: -1; 
}

/* ==============================
   ENCABEZADO
   ============================== */
.encabezado {
  background-color: #144F7D;
  padding: 20px;
  text-align: center;
  border-bottom: 4px solid #0e3f63;
}
.encabezado .logo {
  height: 80px;
}

/* ==============================
   CONTENEDOR LOGIN
   ============================== */
.contenedor-login {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

/* Caja del login */
.login-box {
  background: #f4f4f4;
  border: 2px solid #144F7D;
  border-radius: 10px;
  padding: 30px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-box h2 {
  color: #144F7D;
  margin-bottom: 20px;
  text-align: center;
}
.login-box label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}
.login-box input[type="text"],
.login-box input[type="password"] {
  width: 95%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #cabc71;
  border-radius: 5px;
  font-size: 16px;
}

/* ==============================
   BOTÓN LOGIN
   ============================== */
.btn-login {
  margin-top: 20px;
  width: 100%;
  background-color: #144F7D;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
}
.btn-login:hover {
  background-color: #0e3f63;
  transform: scale(1.05);
}

/* ==============================
   MENSAJES
   ============================== */
.error-msg {
  margin-top: 10px;
  font-size: 0.9rem;
  text-align: center;
}

/* ==============================
   ENLACES EXTRA
   ============================== */
.extra-links {
  margin-top: 15px;
  text-align: center;
  font-size: 0.9rem;
}
.extra-links a {
  color: #144F7D;
  font-weight: bold;
  text-decoration: none;
  margin: 0 5px;
}
.extra-links a:hover {
  color: #f0c000;
}

/* ==============================
   FOOTER
   ============================== */
footer {
  background-color: #1A4D75;  
  color: #e8ebdf;             
  text-align: center;
  padding: 15px;
  margin-top: auto;
}

footer .logo-footer {
  max-height: 40px;
  display: block;
  margin: 0 auto 10px;
}

footer .footer-info p {
  margin: 5px 0;
}

/* Links del footer */
footer a,
footer a:link,
footer a:visited {
  color: #fff !important;     
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #f0c000 !important;    
  text-decoration: underline;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 600px) {
  .encabezado .logo {
    height: 60px;
  }

  .login-box {
    padding: 20px;
  }

  .login-box input[type="text"],
  .login-box input[type="password"] {
    font-size: 14px;
    padding: 8px;
  }

  .btn-login {
    padding: 8px;
    font-size: 14px;
  }

  footer {
    font-size: 0.8rem;
    padding: 10px;
  }
}
