html,
body {
  height: 100%;
  font-family: "Inter", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #555555;
  color: #fff;
}

/* Komponen Umum: Navbar */
.navbar-bps {
  background-color: rgba(34, 93, 148, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.navbar-brand {
  display: flex;
  align-items: center;
}
.navbar-brand img {
  height: 40px;
  margin-right: 15px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  color: #fff;
}
.brand-text .line-1,
.brand-text .line-2 {
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-style: italic;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-text .line-1 {
  font-size: 1.1rem;
}
.brand-text .line-2 {
  font-size: 1.1rem;
}
.navbar-text {
  color: #fff !important;
  font-weight: bold !important;
}

/* Komponen Umum: Tombol Oranye */
.btn-bps-action {
  background-color: #f8941e;
  border-color: #f8941e;
  color: #fff;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-bps-action:hover {
  background-color: #e6830d;
  border-color: #e6830d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.navbar .btn-bps-action {
  padding: 6px 18px;
  font-size: 0.9rem;
  box-shadow: none;
}

/* Komponen Umum: Footer */
.footer-bps {
  background-color: #222;
  padding: 1rem 0;
  font-size: 0.9rem;
  text-align: center;
  color: #ccc;
}

/* Halaman Utama*/
.hero-section {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../images/bps_kalteng.jpg");
  background-size: cover;
  background-position: center;
  padding: 2rem;
}
.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}
.hero-section p {
  font-size: 1.25rem;
  font-weight: 400;
  max-width: 700px;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* Komponen Halaman Utama: Help FAB */
.help-fab {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1050;
  cursor: pointer;
}
.help-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease-in-out;
  animation: pulse-animation 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}
.help-icon img {
  width: 90%;
  height: auto;
}
.help-info {
  position: absolute;
  bottom: 65px;
  right: 0;
  background-color: #fff;
  color: #333;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  width: 260px;
  text-align: left;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.help-fab:hover .help-info {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}
.help-fab:hover .help-icon {
  transform: scale(1.1);
  animation-play-state: paused;
}
.help-info::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 17px;
  border-width: 10px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}
.help-info h6 {
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 700;
  color: #225d94;
}
.help-info p {
  margin-bottom: 5px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}
@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 93, 148, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(34, 93, 148, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 93, 148, 0);
  }
}

/* Class khusus untuk body halaman login, agar tidak mengganggu layout halaman lain */
.body-login {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background-color: rgba(255, 255, 255, 0.98);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  border: none;
  color: #333;
}
.login-header {
  background-color: #225d94;
  color: white;
  padding: 2rem;
  text-align: center;
}
.login-header img {
  max-width: 80px;
  margin-bottom: 1rem;
}
.login-card .form-control:focus {
  border-color: #f8941e;
  box-shadow: 0 0 0 0.25rem rgba(248, 148, 30, 0.25);
}
.btn-login {
  background-color: #f8941e;
  border-color: #f8941e;
  font-weight: 600;
  padding: 0.75rem;
  transition: all 0.3s ease;
}
.btn-login:hover {
  background-color: #e6830d;
  border-color: #e6830d;
  transform: translateY(-2px);
}
.back-link {
  text-decoration: none;
  color: #6c757d;
  transition: color 0.2s;
}
.back-link:hover {
  color: #225d94;
}

/* Responsif untuk Navbar dan Tombol Oranye */
@media (max-width: 575.98px) {
  .brand-text .line-1,
  .brand-text .line-2 {
    font-size: 0.7rem;
  }
  .navbar-brand img {
    margin-right: 8px;
  }
  .navbar .btn-bps-action {
    padding: 5px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 420px) {
  .brand-text .line-1,
  .brand-text .line-2 {
    font-size: 0.65rem;
  }
  .navbar-brand img {
    margin-right: 6px;
  }
  .navbar .btn-bps-action {
    padding: 4px 10px;
    font-size: 0.65rem;
  }
}

@media (max-width: 375px) {
  .brand-text .line-1,
  .brand-text .line-2 {
    font-size: 0.6rem;
  }
  .navbar-brand img {
    margin-right: 5px;
  }
  .navbar .btn-bps-action {
    padding: 4px 10px;
    font-size: 0.6rem;
  }
}
