@font-face {
  font-family: "Kollektif";
  src: url("font/Kollektif.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --brand: #324738;
  --sand: #d7cdba;
  --ink: #1c1c1c;
  --negro-gris: #333333;
}

* {
  font-family: "Kollektif", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
}

.bg-custom {
  background-color: var(--sand) !important;
}

.kadchi-custom {
  width: 100%;
}

.login {
  border: 2px solid var(--brand);
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  max-width: 1200px;
  width: 100%;
}

.logo img {
  width: 35%;
  height: auto;
}

.btn-demo {
  font-size: 16px;
  border: 1px solid var(--brand);
  color: var(--brand);
  background-color: #fff;
  border-radius: 5px;
  padding: 5px 12px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-demo:hover {
  background-color: var(--brand);
  color: #fff;
}

h1 {
  font-size: 48px;
  font-weight: 800;
  color: var(--brand);
  margin: 0;
}
h2 {
  font-size: 22px;
  color: var(--negro-gris);
  font-weight: 400;
}

.bg {
  position: relative;
  background-color: var(--brand);
  background-image: url("img/lateral-bg.png");
  background-size: cover;
  background-position: center;
  min-height: 100%;
  overflow: hidden;
}

.kadchi-custom .row {
  height: 100%;
}

.login-form .input-group-text {
  background: var(--brand);
  border: 1px solid var(--ink);
  border-right: 0;
  color: #fff;
  font-size: 18px;
}
.login-form .form-control {
  font-size: 18px;
  border: 1px solid var(--ink);
  border-left: 0;
  border-radius: 0 0.25rem 0.25rem 0;
  padding: 10px 12px;
}
.login-form .form-control::placeholder {
  color: #666;
}

.toggle-password {
  cursor: pointer;
}
.login-form .input-group .toggle-password {
  border-left: 0;
  border-right: 1px solid var(--ink);
}

.forgot {
  color: #555;
  text-decoration: underline;
  font-size: 16px;
}

.btn-primary-brand {
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
}
.btn-primary-brand:hover {
  filter: brightness(0.95);
    background: var(--sand) !important;
    border: 1px solid var(--sand) !important;
}

.btn-outline-brand {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
}
.btn-outline-brand:hover {
   background: var(--sand) !important;
  border: 1px solid var(--sand) !important;
}

#loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--sand);
  z-index: 9999;
  transition: opacity 0.35s ease;
}
#loader .loader-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 18px;
  border: 2px solid var(--brand);
  border-radius: 30px;
  background: #fff;
  transform: scale(1.3);
}

@keyframes spin-pulse {
  0% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
#loader .spin {
  width: 44px;
  height: 44px;
  animation: spin-pulse 1500ms linear infinite;
}
#loader .spin-lateral {
  width: 104px;
  height: 104px;
  display: block;
}

@media (max-width: 767.98px) {
  body.bg-custom {
    background-color: #fff !important;
  }
  .login {
    min-height: 100vh;
    border: none;
    border-radius: 0;
  }
  .kadchi-custom .row {
    height: 100%;
  }
  .login-form .d-flex {
    justify-content: center !important;
  }
  .login-form .btn {
    width: 100%;
    max-width: 280px;
  }
  .login-form .d-flex.gap-3 {
    gap: 12px;
  }
  .logo img {
    width: 55%;
    height: auto;
  }
}
