/* =====================================================
   LOGIN PAGE
   ===================================================== */

.login-body {
  margin: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  background: #f3f5f7;

  font-family: Arial, sans-serif;
}


/* =====================================================
   LOGISTIČKA POZADINA
   ===================================================== */

.login-visual {
  position: fixed;
  inset: 0;

  width: 80%;
  height: 100%;

  overflow: hidden;

  pointer-events: none;

  z-index: 0;
}


/* =====================================================
   NASLOV
   ===================================================== */

.logistics-title {
  position: absolute;

  left: 10%;
  top: 10%;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

.logistics-title span {
  color: #de6835;

  font-size: 13px;
  font-weight: 800;

  letter-spacing: 3px;
}

.logistics-title strong {
  max-width: 390px;

  color: #17324d;

  font-size: 31px;
  line-height: 1.15;
  font-weight: 700;
}


/* =====================================================
   SVE IKONICE
   ===================================================== */

.logistics-icon {
  position: absolute;

  color: #de6835;

  opacity: 0.13;
}

.logistics-icon svg {
  display: block;

  width: 100%;
  height: 100%;

  fill: none;

  stroke: currentColor;

  stroke-width: 2.5;

  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =====================================================
   PAKET
   ===================================================== */

.package-1 {
  left: 10%;
  top: 32%;

  width: 95px;
  height: 95px;

  opacity: 0.18;

  transform: rotate(-7deg);
}


/* =====================================================
   BARCODE
   ===================================================== */

.barcode-1 {
  left: 31%;
  top: 35%;

  width: 115px;
  height: 70px;

  opacity: 0.13;

  transform: rotate(7deg);
}


/* =====================================================
   VAGA
   ===================================================== */

.scale-1 {
  left: 39%;
  top: 58%;

  width: 80px;
  height: 70px;

  opacity: 0.16;
}


/* =====================================================
   DIMENZIJE
   ===================================================== */

.dimension-1 {
  left: 51%;
  top: 24%;

  width: 70px;
  height: 70px;

  opacity: 0.10;
}


/* =====================================================
   SKENER
   ===================================================== */

.scanner-1 {
  left: 23%;
  top: 66%;

  width: 65px;
  height: 65px;

  opacity: 0.10;

  transform: rotate(-8deg);
}


/* =====================================================
   KONTROLA
   ===================================================== */

.check-1 {
  left: 51%;
  top: 70%;

  width: 65px;
  height: 65px;

  opacity: 0.09;
}


/* =====================================================
   LOKACIJA
   ===================================================== */

.location-1 {
  left: 55%;
  top: 43%;

  width: 55px;
  height: 65px;

  opacity: 0.12;
}


/* =====================================================
   ETIKETA
   ===================================================== */

.label-1 {
  left: 7%;
  top: 70%;

  width: 85px;
  height: 70px;

  opacity: 0.08;

  transform: rotate(-6deg);
}


/* =====================================================
   KAMION
   ===================================================== */

.truck-1 {
  left: 45%;
  top: 49%;

  width: 105px;
  height: 70px;

  opacity: 0.13;
}


/* =====================================================
   STATISTIKA
   ===================================================== */

.chart-1 {
  left: 30%;
  top: 79%;

  width: 70px;
  height: 60px;

  opacity: 0.07;
}


/* =====================================================
   TOK POŠILJKE
   ===================================================== */

.logistics-flow {
  position: absolute;

  height: 2px;

  background: #de6835;

  opacity: 0.08;

  transform-origin: left center;
}

.flow-1 {
  width: 240px;

  left: 20%;
  top: 51%;

  transform: rotate(-10deg);
}

.flow-2 {
  width: 210px;

  left: 38%;
  top: 63%;

  transform: rotate(18deg);
}

.flow-3 {
  width: 170px;

  left: 27%;
  top: 76%;

  transform: rotate(-8deg);
}

/* =====================================================
   LOGIN CARD
   ===================================================== */

.login-card {
  position: relative;

  z-index: 10;

  width: 100%;
  max-width: 280px;

  margin-left: auto;
  margin-right: 16%;

  padding: 30px;

  box-sizing: border-box;

  background: rgba(255, 255, 255, 0.97);

  border-radius: 20px;

  border: 1px solid rgba(220, 225, 230, 0.9);

  box-shadow:
    0 12px 40px rgba(15, 45, 70, 0.12),
    0 25px 70px rgba(0, 0, 0, 0.08);
}


/* =====================================================
   HEADING
   ===================================================== */

.login-heading {
  margin-top: 0;
  margin-bottom: 16px;

  text-align: center;

  font-size: 22px;
  font-weight: 800;

  color: #17324d;

  letter-spacing: 0.5px;
}


/* =====================================================
   FORM
   ===================================================== */

.login-form {
  display: grid;

  gap: 14px;
}

.login-form input {
  box-sizing: border-box;

  width: 100%;

  background: #ffffff;

  color: #263746;

  border-radius: 14px;

  border: 1px solid #d5dde4;

  padding: 11px 14px;

  font-size: 15px;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.login-form input::placeholder {
  color: #8a98a5;
}

.login-form input:focus {
  outline: none;

  border-color: #8a98a5;

  box-shadow:
    0 0 0 3px rgba(53, 84, 222, 0.16);
}


/* =====================================================
   BUTTON
   ===================================================== */

/* =====================================================
   BUTTON
   ===================================================== */

.login-form button {
  margin-top: 10px;
  padding: 13px 14px;
  border-radius: 15px;
  border: 2px solid #ffffff;
  background: #3978a8;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow:
    0 5px 14px rgba(57, 120, 168, 0.3);
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.login-form button:hover {
  transform: translateY(-1px);
  background: #2f6894;
  box-shadow:
    0 8px 20px rgba(57, 120, 168, 0.3);
}

.login-form button:active {
  transform: translateY(0);
}

/* =====================================================
   ERROR
   ===================================================== */

.login-error {
  color: #2b30c0;

  font-size: 14px;

  font-weight: 600;

  text-align: center;

  margin-top: 8px;
}


.login-logo-corner {
  position: fixed;

  bottom: 28px;
  left: 20px;

  width: 200px;
  height: auto;

  z-index: 20;

  padding: 8px 12px;

  box-sizing: border-box;

  border-radius: 10px;

  background: rgba(255, 255, 255, 0.45);

  opacity: 0.9;

  filter:
    drop-shadow(0 2px 4px rgba(23, 50, 77, 0.10));
}

/* =====================================================
   SPINNER
   ===================================================== */

.login-spinner {
  position: fixed;

  inset: 0;

  background: rgba(255, 255, 255, 0.72);

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  z-index: 3000;
}

.spinner {
  width: 44px;
  height: 44px;

  border-radius: 50%;

  border: 4px solid rgba(222, 104, 53, 0.20);

  border-top-color: #de6835;

  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* =====================================================
   MESSAGE BOX
   ===================================================== */

.login-msgbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 35, 50, 0.48);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 14%;
  box-sizing: border-box;
  z-index: 4000;
}

.login-msgbox.hidden {
  display: none;
}

.login-msgbox-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 360px;
  padding: 22px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: msgboxFadeIn 0.25s ease-out;
}

.login-msgbox-inner p {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  line-height: 1.4;
}

.login-msgbox-inner button {
  margin-top: 4px;
  padding: 9px 22px;
  border: none;
  border-radius: 10px;
  background: #374151;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.login-msgbox-inner button:hover {
  background: #374151;
}
@keyframes msgboxFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* =====================================================
   UTIL
   ===================================================== */

.hidden {
  display: none;
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 900px) {

  .login-visual {
    width: 100%;

    opacity: 0.40;
  }

  .logistics-title {
    left: 7%;
    top: 12%;
  }

  .logistics-title strong {
    font-size: 25px;

    max-width: 300px;
  }

  .login-card {
    margin-left: auto;
    margin-right: auto;

    max-width: 300px;
  }
}


@media (max-width: 600px) {

  .login-body {
    justify-content: center;
  }

  .login-visual {
    width: 100%;

    opacity: 0.25;
  }

  .logistics-title {
    left: 7%;
    top: 10%;
  }

  .logistics-title span {
    font-size: 11px;

    letter-spacing: 2px;
  }

  .logistics-title strong {
    font-size: 22px;

    max-width: 250px;
  }

  .login-card {
    width: calc(100% - 40px);

    max-width: 330px;

    margin: 0;

    padding: 28px 25px;
  }

  .login-logo-corner {
    width: 140px;

    left: 15px;
    bottom: 15px;
  }
}