*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid #7b2929;
  outline-offset: 2px;
  border-radius: 4px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: #7b2929;
  box-shadow: 0 0 0 3px rgba(123, 41, 41, 0.2);
}

button:focus-visible,
a:focus-visible,
.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(123, 41, 41, 0.3);
}

html {
  scrollbar-width: thin;
  scrollbar-color: #7b2929 #e9d7d7;
}

html::-webkit-scrollbar {
  width: 12px;
}

html::-webkit-scrollbar-track {
  background: #e9d7d7;
  border-radius: 10px;
}

html::-webkit-scrollbar-thumb {
  background-color: #7b2929;
  border-radius: 10px;
  border: 3px solid #e9d7d7;
  transition: background-color 0.3s ease;
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f4d4a4, #ffffff);
  background-blend-mode: multiply;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  animation: changeBackground 300s infinite alternate;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-size: cover;
  background-position: center;
  animation: slideshow 60s infinite;
}

@keyframes slideshow {
  0%,
  100% {
    background-image: url("../img/login_slide/1.webp");
  }

  33% {
    background-image: url("../img/login_slide/2.webp");
  }

  66% {
    background-image: url("../img/login_slide/3.webp");
  }
}

@keyframes changeBackground {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: 100% 100%;
  }
}

.modal-header {
  border-bottom: none;
  padding: 2rem;
}

.modal-title .bi {
  font-size: 1.5rem;
}

#messageModal .modal-header {
  transition: background-color 0.3s ease;
}

#confirmModal .modal-header {
  background-color: #ffc107;
}

#confirmModalButton {
  color: #dc3545 !important;
  font-weight: 600;
}

.modal-header .btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.logo-footer {
  width: 18px;
  height: 20px;
}

.text-body-secondary {
  font-size: 0.85rem;
}

.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

@media (max-width: 767px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}

.b-example-divider {
  width: 100%;
  height: 3rem;
  background-color: rgba(0, 0, 0, 0.1);
  border: solid rgba(0, 0, 0, 0.15);
  border-width: 1px 0;
  box-shadow:
    inset 0 0.5em 1.5em rgba(0, 0, 0, 0.1),
    inset 0 0.125em 0.5em rgba(0, 0, 0, 0.15);
}

.b-example-vr {
  flex-shrink: 0;
  width: 1.5rem;
  height: 100vh;
}

.bi {
  vertical-align: -0.125em;
  fill: currentColor;
}

.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.bd-mode-toggle {
  z-index: 1500;
}

.bd-mode-toggle .dropdown-menu .active .bi {
  display: block !important;
}

.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-floating input {
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px;
  transition: all 0.3s ease;
}

.form-floating input:focus {
  border-color: #7b2929;
  box-shadow: 0 0 5px rgba(149, 0, 0, 0.5);
}

.btn-primary {
  background-color: #7b2929;
  border: none;
  border-radius: 10px;
  padding: 10px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #6b0000;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
}

.text-body-secondary {
  color: #7d6c6c !important;
}

.text-body-primary {
  color: #7b2929 !important;
}

.document-button {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  background-color: #7b2929;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  z-index: 1100;
}

.document-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.document-button.pulse {
  animation: pulse 2s infinite;
}

#togglePassword {
  z-index: 5;
  color: #212529;
  background: transparent;
  border: none;
}

#togglePassword:hover {
  color: #7b2929;
}

.form-floating.position-relative input {
  padding-right: 40px;
}

.form-control.is-valid,
.form-control.is-invalid,
.was-validated .form-control:valid,
.was-validated .form-control:invalid {
  background-image: none !important;
  padding-right: 12px !important;
}

.form-floating > .form-control.is-valid,
.form-floating > .form-control.is-invalid,
.form-floating > .was-validated .form-control:valid,
.form-floating > .was-validated .form-control:invalid {
  background-image: none !important;
  padding-right: 12px !important;
}

.form-control.is-valid,
.was-validated .form-control:valid {
  border-color: #198754;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
  border-color: #dc3545;
}

.fa-home {
  transition: all 0.3s ease;
  transform-origin: center;
}

.fa-home:hover {
  transform: scale(1.2);
  color: #a33535 !important;
  animation: pulseHome 1.5s infinite;
}

@keyframes pulseHome {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

.form-check-input:checked {
  background-color: #7b2929 !important;
  border-color: #7b2929 !important;
}
