* {
  box-sizing: border-box;
}

body {
     font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('../img/fondo.jpg') center/cover no-repeat fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
h1, h2, button, a {
  font-family: 'Poppins', sans-serif;
}

.form_login {
  background: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  width: 370px;
  text-align: center;
}

.logo_institucion {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 20px;
}

h2 {
  margin: 0 0 25px;
  font-weight: 600;
  font-size: 26px;
  color: #910814;
}

.input_group {
  position: relative;
  margin-bottom: 20px;
  text-align: left;
}

.input_group i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #910814;
  font-size: 18px;
}

.input_group input {
  width: 100%;
  padding: 14px 14px 14px 42px;
  font-size: 15px;
  border: none;
  border-bottom: 2px solid #ddd;
  outline: none;
  border-radius: 4px 4px 0 0;
  background-color: #f9f9f9;
  transition: border-color 0.3s;
}

.input_group input:focus {
  border-bottom: 2px solid #910814;
  background-color: #fff;
}

.actions {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  gap: 10px;
}

.btn {
  flex: 1;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-login {
  background: #910814;
  color: #fff;
}

.btn-login:hover {
  background: #6e000f;
}

.btn-cancel {
  background: transparent;
  color: #910814;
  border: 2px solid #910814;
}

.btn-cancel:hover {
  background: #910814;
  color: #fff;
}

@media (max-width: 420px) {
  .form_login {
    width: 90%;
    padding: 30px 20px;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    margin: 5px 0;
  }
}
