@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
p,h1,h2,h3,h4,h5,h5,ul,li,span,label,table,td,tr,th,input{
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.icon-animation {
  animation: moveIcon 3s linear infinite alternate;
}
.icon-animation-set-1 {
  animation: moveIconSet1 5s linear infinite alternate;
}
.alert-animation {
  animation: moveAlert 5s linear infinite alternate;
}

@keyframes moveIcon {
  from { transform: translateY(0); }
  to { transform: translateY(15px); } /* Adjust the distance (15px) as needed */
}
@keyframes moveIconSet1 {
  from { transform: translateY(0); }
  to { transform: translateY(10px); } /* Adjust the distance (15px) as needed */
}
@keyframes moveAlert {
  from { transform: translateY(0); }
  to { transform: translateY(50px); } /* Adjust the distance (15px) as needed */
}

.auth-page {
  min-height: 100vh;
  font-family: "Noto Sans Sinhala", "Noto Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(22, 101, 52, 0.16), transparent 34%),
    radial-gradient(circle at right 15%, rgba(245, 158, 11, 0.08), transparent 24%),
    linear-gradient(135deg, #f5f7f2 0%, #eef3ee 52%, #e8eff2 100%);
  color: #1f2937;
}

.auth-page h1,
.auth-page h2,
.auth-page h3,
.auth-page h4,
.auth-page h5,
.auth-page h6,
.auth-page p,
.auth-page span,
.auth-page label,
.auth-page a,
.auth-page button,
.auth-page input,
.auth-page small,
.auth-page li {
  font-family: "Noto Sans Sinhala", "Noto Sans", sans-serif;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.5rem 0;
}

.auth-card {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.12);
}

.auth-visual {
  position: relative;
  min-height: 100%;
  background-color: #123424;
  background-position: center;
  background-size: cover;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 16, 12, 0.16) 0%, rgba(10, 16, 12, 0.62) 100%),
    linear-gradient(135deg, rgba(18, 52, 36, 0.18), rgba(18, 52, 36, 0.04));
}

.auth-visual-content {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-visual-title {
  margin: 1rem 0 0.75rem;
  color: #fff;
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  line-height: 1.12;
  font-weight: 800;
  max-width: 15ch;
}

.auth-visual-copy {
  margin: 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  line-height: 1.7;
}

.auth-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(5px);
}

.auth-feature i {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.95rem;
}

.auth-feature span {
  font-size: 0.9rem;
  line-height: 1.4;
}

.auth-panel {
  background: #fff;
}

.auth-panel-inner {
  padding: clamp(1.5rem, 3vw, 3rem);
}

.auth-heading {
  margin-bottom: 0.35rem;
  color: #111827;
  font-size: 1.7rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-lead {
  margin-bottom: 0;
  color: #6b7280;
  line-height: 1.7;
}

.auth-alert {
  border: 0;
  border-radius: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
}

.auth-form .form-group {
  margin-bottom: 1rem;
}

.auth-label {
  margin-bottom: 0.45rem;
  color: #374151;
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-form .form-control,
.auth-form .input-group-text {
  min-height: 3rem;
  border-color: #d7e0d7;
}

.auth-form .form-control {
  border-radius: 0.75rem;
}

.auth-form .form-control:focus {
  border-color: #1f5e3d;
  box-shadow: 0 0 0 0.2rem rgba(31, 94, 61, 0.15);
}

.auth-form .input-group-text {
  min-width: 3rem;
  justify-content: center;
  background: #f5f7f3;
  color: #48604f;
  border-radius: 0.75rem;
}

.auth-password-toggle {
  border-color: #d7e0d7;
  color: #48604f;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus {
  background: #eef4ee;
  color: #1f5e3d;
}

.auth-button {
  min-height: 3rem;
  border: 0;
  border-radius: 0.85rem;
  font-weight: 800;
}

.auth-button .spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 0.16em;
}

.auth-footer-note {
  margin-top: 1rem;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
}

.auth-link {
  color: #1f5e3d;
  font-weight: 700;
  text-decoration: none;
}

.auth-link:hover {
  color: #174a30;
  text-decoration: underline;
}

.auth-otp-wrap {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 1.25rem;
}

.auth-otp {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100%, 20rem);
}

.auth-otp-input {
  width: 100%;
  height: 3.5rem;
  border: 1px solid #d7e0d7;
  border-radius: 0.85rem;
  background: #f9fbf8;
  color: #111827;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0;
}

.auth-otp-input:focus {
  border-color: #1f5e3d;
  box-shadow: 0 0 0 0.2rem rgba(31, 94, 61, 0.15);
  background: #fff;
  outline: none;
}

.auth-otp-input::placeholder {
  color: #b6c2b7;
}

.auth-support-box {
  padding: 0.95rem 1rem;
  border: 1px solid #e4ebe4;
  border-radius: 0.85rem;
  background: #f8faf7;
  color: #54635a;
  font-size: 0.9rem;
  line-height: 1.6;
}

.auth-action-row {
  display: grid;
  gap: 0.75rem;
}

/* Sidebar */
#accordionSidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  max-height: 100vh;
  width: 16rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1040;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.38) rgba(255, 255, 255, 0.08);
}

#accordionSidebar.toggled {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

#accordionSidebar .sidebar-brand {
  flex: 0 0 auto;
  min-height: 4.75rem;
  padding: 1rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#accordionSidebar .sidebar-brand img {
  max-width: 4.75rem;
  height: auto;
}

#accordionSidebar .sidebar-heading {
  margin: 1rem 1rem 0.4rem;
  padding: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#accordionSidebar .nav-item {
  margin: 0;
}

#accordionSidebar .nav-item .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.22rem 0.75rem;
  padding: 0.8rem 0.85rem;
  border-radius: 0.85rem;
  color: rgba(255, 255, 255, 0.92);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#accordionSidebar .nav-item .nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(2px);
}

#accordionSidebar .nav-item.active .nav-link {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

#accordionSidebar .nav-item .nav-link img {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  object-fit: contain;
}

#accordionSidebar .nav-item .nav-link span {
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 700;
}

#accordionSidebar .sidebar-divider {
  margin: 0.4rem 0.9rem;
  border-top-color: rgba(255, 255, 255, 0.12);
}

#accordionSidebar .collapse {
  margin: 0 0.75rem 0.45rem 2.75rem;
}

#accordionSidebar .collapse-inner {
  border-radius: 0.85rem;
  padding: 0.45rem 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.18);
}

#accordionSidebar .collapse-item {
  padding: 0.6rem 1rem;
  color: #1f2937;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#accordionSidebar .collapse-item:hover {
  background: #eef4ee;
  color: #14532d;
}

#accordionSidebar::-webkit-scrollbar {
  width: 6px;
}

#accordionSidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

#accordionSidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.34);
  border-radius: 999px;
}

#accordionSidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.55);
}

#content-wrapper {
  min-height: 100vh;
}

@media (min-width: 768px) {
  #content-wrapper {
    margin-left: 16rem;
  }
}

@media (max-width: 767.98px) {
  #accordionSidebar {
    width: 14rem;
  }

  #content-wrapper {
    margin-left: 0;
  }

  #accordionSidebar .nav-item .nav-link {
    margin: 0.25rem 0.5rem;
    padding: 0.8rem 0.85rem;
  }

  #accordionSidebar .collapse {
    margin-left: 2.5rem;
  }
}

@media (max-width: 575.98px) {
  #accordionSidebar {
    width: 12.5rem;
  }
}

@media (max-width: 991.98px) {
  .auth-shell {
    padding: 1rem 0;
  }

  .auth-card {
    border-radius: 0.85rem;
  }

  .auth-panel-inner {
    padding: 1.35rem;
  }

  .auth-heading {
    font-size: 1.5rem;
  }

  .auth-otp {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .auth-panel-inner {
    padding: 1.15rem;
  }

  .auth-button,
  .auth-form .form-control,
  .auth-form .input-group-text {
    min-height: 2.9rem;
  }

  .auth-otp-input {
    height: 3.2rem;
  }
}
