#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.28s ease;
  background:
    radial-gradient(1100px 800px at 18% -10%, rgba(26, 188, 156, .12), transparent 60%),
    radial-gradient(900px 700px at 120% 120%, rgba(52, 152, 219, .10), transparent 60%),
    linear-gradient(180deg, rgba(14, 24, 51, .25), rgba(14, 24, 51, .35));
  -webkit-backdrop-filter: blur(6px) saturate(115%);
  backdrop-filter: blur(6px) saturate(115%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .04),
    inset 0 -80px 120px rgba(0, 0, 0, .20);
  will-change: opacity, backdrop-filter;
}

#loading-screen::before {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
      rgba(0, 0, 0, 0) 55%,
      rgba(0, 0, 0, .25) 100%);
}

#loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

#loading-screen.simple-mode .loading-panel {
  display: none !important;
}

.loading-panel {
  text-align: center;
  padding: 30px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 20px rgba(26, 179, 148, 0.4);
  backdrop-filter: blur(6px);
}

.rotating-eb {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px auto;
  border: 4px solid #1abc9c;
  border-top: 4px solid transparent;
  border-radius: 50%;
  animation: spin 2s linear infinite, glow 8s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  color: #1abc9c;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 6px rgba(26, 179, 148, 0.3);
  text-shadow: 0 0 6px #1abc9c;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes glow {
  0% {
    color: #1abc9c;
    border-color: #1abc9c;
  }

  50% {
    color: #f39c12;
    border-color: #f39c12;
  }

  100% {
    color: #1abc9c;
    border-color: #1abc9c;
  }
}

.loading-text {
  color: #fff;
  font-size: 14px;
  margin-bottom: 12px;
  font-family: "Poppins", sans-serif;
  letter-spacing: 1px;
}

.progress-bar {
  width: 220px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto;
}

.progress-bar .progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #1abc9c, #2ecc71);
  animation: loadProgress 2s ease-in-out forwards;
}

@keyframes loadProgress {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

.lock-content .input-box {
  position: relative;
  text-align: left;
  margin-bottom: 16px;
}

.lock-content .input-box label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #ccc;
  margin-bottom: 6px;
  padding-left: 24px;
  position: relative;
}

.lock-content .input-box label i {
  position: absolute;
  left: 0;
  top: 1px;
  color: #e67e22;
  font-size: 14px;
}

.lock-content .btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 16px;
  padding: 10px 0;
  border-radius: 30px;
  width: 100%;
  backdrop-filter: blur(10px);
  transition: background 0.3s;
}

.lock-content .btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

#lock-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(31, 42, 54, 0.6), rgba(14, 24, 51, 0.85));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  font-family: 'Poppins', sans-serif;
}

.lock-wrapper {
  max-width: 420px;
  width: 90%;
  padding: 30px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 16px;
  box-shadow: 0 0 15px rgba(26, 188, 156, 0.4);
  backdrop-filter: blur(8px);
  text-align: center;
  animation: unblurFade 1.4s ease forwards;
}

@keyframes unblurFade {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: scale(0.97);
  }

  50% {
    opacity: 0.4;
    filter: blur(6px);
  }

  100% {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1);
  }
}

.lock-content .title {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.lock-content .subtitle {
  font-size: 14px;
  color: #ccc;
}

.rain-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.raindrop {
  position: absolute;
  top: -10px;
  width: 2.2px;
  height: 18px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
  animation: fall linear forwards;
  opacity: 0.9;
  backdrop-filter: blur(0.5px);
}

@keyframes fall {
  to {
    transform: translateY(110vh);
    opacity: 0;
  }
}

.lock-content input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 14px;
  outline: none;
  backdrop-filter: blur(5px);
}

.lock-content input::placeholder {
  color: #bbb;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
