#preloader {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 9999;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  transition: opacity 1s ease;
}

/* Container */
.preloader-container {
  display: flex;
  width: 100%;
  height: 100%;
}

/* LEFT IMAGE */
.preloader-left {
  width: 50%;
  background-image: url("../images/cyber.webp");
  background-size: cover;
  background-position: center;
  position: relative;
}

.preloader-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 128, 0.4);
  mix-blend-mode: multiply;
}

/* RIGHT SIDE */
.preloader-right {
  width: 50%;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px;
  text-align: center;
}

/* Logo */
.preloader-logo {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.preloader-logo img {
  width: 140px;
  height: auto;
}

/* Main text */
.preloader-content h1 {
  color: #1e3a8a;
  font-size: 28px;
  margin-bottom: 8px;
}

.preloader-content p {
  color: #444;
  margin-bottom: 20px;
}

/* Tip box */
#tip-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  min-height: 60px;
  max-width: 420px;
}

/* Footer text */
.preloader-footer {
  position: absolute;
  bottom: 20px;
  font-size: 14px;
  color: #aaa;
}

/* FADE OUT */
.preloader-hidden {
  opacity: 0;
  pointer-events: none;
}

/* MOBILE VIEW */
@media (max-width: 768px) {
  .preloader-left {
    display: none;
  }
  .preloader-right {
    width: 100%;
  }
}
