/* Variabel & base */
:root {
  --primary-color: #003265FF;
  --second-color: #FEC007FF;
  --third-color: #2196F2FF;
  --white-color: rgb(237, 237, 237);
  --surface: #0f172a;
  --elev: #dddddd;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --brand: #6366f1;
  --brand-2: #22d3ee;
  --hover: rgba(99, 102, 241, .12);
  --border: rgba(148, 163, 184, .18);
  --border-soft: rgba(148, 163, 184, .28);
  --ok: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  background-color: var(--primary-color);
  min-height: 100vh;
  color: var(--primary-color);
}

body.fade-in {
  animation: fadeIn 2s forwards;
}

body.fade-out {
  animation: fadeOut 1s forwards;
}



/* Loading */
#mzf-loading {
  position: relative;
  height: 50px;
  display: flex;
  align-items: center;
  margin: auto;
  z-index: 999;
  /* visibility: hidden; */
}

span#mzf-loading-wave {
  height: 30px;
  width: 7px;
  margin: 5px;
  background-color: #fff;
  animation: loading 1s linear infinite;
  z-index: 999;
}

span#mzf-loading-wave:nth-child(1) {
  animation-delay: 0.1s;
}

span#mzf-loading-wave:nth-child(2) {
  animation-delay: 0.2s;
}

span#mzf-loading-wave:nth-child(3) {
  animation-delay: 0.3s;
}

span#mzf-loading-wave:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes loading {
  0% {
    height: 0;
  }

  25% {
    height: 25px;
  }

  50% {
    height: 50px;
  }

  100% {
    height: 0;
  }
}

/* Layout utama */
#mzf-container-content {
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


#mzf-container-design {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background-image: url("../img/bg_landscape.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: block;
  /* z-index: -5; */
}

/* Top */
#mzf-top {
  display: flex;
  justify-content: center;
  width: 100%;
  position: fixed;
  top: 0;
  animation: fadeInDown 2s forwards;
  animation-delay: 200ms;
  z-index: 1;
}

#mzf-top-warp {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  flex: 1;
}

#mzf-top-warp img {
  height: auto;
  width: max(200px, 25%);
  object-fit: contain;
}

/* Awan */
#mzf-awan {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: absolute;
  opacity: 0;
  animation: fadeIn 2s forwards;
  animation-delay: 600ms;
  z-index: 1;
}

#mzf-awan-warp {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  height: auto;
}

#mzf-awan-warp img:nth-child(1) {
  height: auto;
  width: max(120px, 15%);
  transform: translate(clamp(-40%, 5vw, -30%), max(-180px, -300px));
  object-fit: contain;
}

#mzf-awan-warp img:nth-child(2) {
  height: auto;
  transform: translate(clamp(40%, 5vw, 10%), max(0vh, 5vh));
  width: max(90px, 12%);
  object-fit: contain;
}

/* Bottom */
#mzf-bottom {
  display: flex;
  position: fixed;
  width: 100%;
  bottom: 0;
  animation: fadeInUp 2s forwards;
  animation-delay: 200ms;
  z-index: 1;
}

#mzf-bottom-warp {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  flex: 1;
}

#mzf-bottom-warp img {
  height: auto;
  width: max(200px, 25%);
  object-fit: contain;
}

/* Header Styles */
#mzf-header {
  display: flex;
  justify-content: center;
  align-content: center;
}

#mzf-logo-login {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto;
  gap: 1em;
  width: 350px;
  z-index: 10;
}



#mzf-logo-top {
  height: auto;
  width: 20%;
  object-fit: contain;
}

#mzf-logo-bottom {
  height: auto;
  width: 100%;
  object-fit: contain;
}


/* FOOTER */
#mzf-footer {
  display: flex;
  position: fixed;
  width: 100%;
  bottom: 0;
  z-index: 10;
}

#mzf-footer-bottom {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 0;
  background-color: var(--second-color);
  text-align: center;
}

#mzf-footer-text {
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 0.6rem;
  padding: 3px 0px;
}

/* Elemen pembantu */
.mzf-space {
  flex: 0.1 1 100px;
}

/* Keyframes yang dipakai oleh index & JS */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}