* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: #f9fafe;
  color: #333333;
  padding: 2rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

@media (max-width: 1000px) {
  body {
    flex-direction: column;
  }
}

h3 {
  color: #333333;
  text-align: center;
  margin-inline: 15px;
}

form {
  width: 80%;
  margin: 0 15px 0 15px;
  padding: 2rem;
  background-color: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

label {
  margin-bottom: 0.5rem;
  font-weight: bold;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #cccccc;
  border-radius: 5px;
}

input[type="submit"] {
  background-color: #c20c0c;
  color: #ffffff;
  border: none;
  padding: 0.75rem;
  border-radius: 5px;
  width: 100%;
  font-size: 1rem;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #a00a0a;
}

h3 {
  text-align: center;
  margin: 2rem 0 1rem;
  color: #333333;
}

/**
 * html5-qrcode-css
 * Github: https://github.com/Qiming-Liu/html5-qrcode-css
 **/

#qr-reader {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#reader {
  border: 0 !important;
}

#reader__dashboard_section_fsr span {
  display: none !important;
}

#reader__dashboard_section {
  padding: 0 !important;
}

#reader__dashboard_section_swaplink {
  text-decoration: none !important;
  border-radius: 2px;
  margin-top: 1rem;
  color: #fff;
  background-color: #1989fa;
  border: 1px solid #1989fa;
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  height: 2.5rem;
  width: 88%;
  line-height: 2.5rem;
  text-align: center;
  cursor: pointer;
  align-items: center;
  -webkit-appearance: none;
  -webkit-box-pack: center;
}

#reader__dashboard_section_csr button {
  text-decoration: none !important;
  border-radius: 2px;
  margin-top: 1rem;
  color: #fff;
  background-color: #c20c0c;
  border: 1px solid #c20c0c;
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  height: 2.5rem;
  width: 88% !important;
  line-height: 2.5rem;
  text-align: center;
  cursor: pointer;
  align-items: center;
  -webkit-appearance: none;
  -webkit-box-pack: center;
}

#reader__dashboard_section_csr span {
  margin-right: 0 !important;
}

#reader__dashboard_section_fsr input {
  text-decoration: none !important;
  border-radius: 2px;
  margin-top: 1rem;
  color: #fff;
  background-color: #07c160;
  border: 1px solid #07c160;
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  height: 2.5rem;
  width: 88% !important;
  line-height: 2.5rem;
  text-align: center;
  cursor: pointer;
  align-items: center;
  -webkit-appearance: none;
  -webkit-box-pack: center;
}

/* Hide the default file input */
#reader__filescan_input {
  display: none !important;
}

/* Style the span to look like a button */
#reader__dashboard_section_fsr span {
  display: inline-block !important;
  padding: 10px 20px;
  padding-left: 10px;
  background-color: #07c160;
  color: #ffffff;
  border: 1px solid #07c160;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
}

/* Hover effect for the span */
#reader__dashboard_section_fsr span:hover {
  background-color: #017f3e;
  border-color: #017f3e;
}

/* Add focus and active states for better accessibility */
#reader__dashboard_section_fsr span:active,
#reader__dashboard_section_fsr span:focus {
  background-color: #017f3e;
  border-color: #017f3e;
  outline: none;
}

#reader__camera_selection {
  background-color: #fff;
  height: 2.5rem;
  width: 88%;
  line-height: 2.5rem;
  border: 1px solid #1989fa;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  border-radius: 2px;
}