/* Modern Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto; /* Allow vertical scrolling */
}

/* Animated Background */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.stars {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #ffffff, transparent),
    radial-gradient(
      1px 1px at 130px 80px,
      rgba(255, 255, 255, 0.6),
      transparent
    ),
    radial-gradient(2px 2px at 160px 30px, #ffffff, transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: sparkle 50s linear infinite;
}

.twinkling {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      1px 1px at 30px 40px,
      rgba(249, 115, 22, 0.8),
      transparent
    ),
    radial-gradient(1px 1px at 80px 20px, rgba(249, 115, 22, 0.6), transparent),
    radial-gradient(1px 1px at 150px 90px, rgba(249, 115, 22, 0.7), transparent);
  background-repeat: repeat;
  background-size: 300px 200px;
  animation: sparkle 100s linear infinite reverse;
}

@keyframes sparkle {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-100vh);
  }
}

/* Main Container */
.main-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
}

.glass-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

/* Logo Section */
.logo-section {
  margin-bottom: 2.5rem;
}

.logo-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  color: #f97316;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.logo-text {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Content */
.content {
  space-y: 2rem;
}

.title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #f1f5f9;
}

.highlight {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.message {
  margin-bottom: 2rem;
  space-y: 1rem;
}

.message p {
  font-size: 1rem;
  color: rgba(241, 245, 249, 0.8);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.message strong {
  color: #f97316;
  font-weight: 600;
}

.notification {
  color: #f97316 !important;
  font-weight: 500;
  padding: 1rem;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 12px;
  margin-top: 1rem !important;
}

/* Enhanced Progress Section */
.progress-section {
  margin-bottom: 3rem;
  position: relative;
}

.progress-text {
  font-size: 0.9rem;
  color: rgba(241, 245, 249, 0.8);
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(255, 255, 255, 0.1);
}

.progress-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
}

.progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    #f97316 0%,
    #fb923c 25%,
    #fdba74 50%,
    #fb923c 75%,
    #ea580c 100%
  );
  background-size: 200% 100%;
  border-radius: 8px;
  width: 0%;
  position: relative;
  animation:
    progress 4s ease-in-out infinite,
    shimmer 2s ease-in-out infinite;
  box-shadow:
    0 0 20px rgba(249, 115, 22, 0.6),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: slide 3s ease-in-out infinite;
}

@keyframes progress {
  0%,
  100% {
    width: 0%;
  }
  50% {
    width: 78%;
  }
}

@keyframes shimmer {
  0%,
  100% {
    background-position: 200% 0;
  }
  50% {
    background-position: -200% 0;
  }
}

@keyframes slide {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* Responsive Design */
@media (max-width: 640px) {
  .main-container {
    padding: 1.5rem 1rem;
  }

  .glass-card {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }

  .logo-icon {
    width: 60px;
    height: 60px;
  }

  .logo-text {
    font-size: 1.75rem;
  }

  .title {
    font-size: 1.875rem;
  }

  .message p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .glass-card {
    padding: 1.5rem 1rem;
    border-radius: 20px;
  }

  .logo-icon {
    width: 50px;
    height: 50px;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .title {
    font-size: 1.625rem;
    line-height: 1.3;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .logo-icon,
  .progress-fill,
  .stars,
  .twinkling {
    animation: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .glass-card {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ffffff;
  }

  .message p {
    color: #ffffff;
  }
}
