/* Reset and Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Loading Screen */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Container */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  animation: fadeIn 0.6s ease-out;
}

/* Logo */
.logo-wrapper {
  margin-bottom: 2rem;
}

.app-logo {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: float 3s ease-in-out infinite;
}

/* Brand */
.brand-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.brand-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
}

/* Spinner */
.spinner {
  width: 50px;
  height: 50px;
  margin: 2rem auto;
}

.spinner-ring {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Loading Text */
.loading-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1rem;
  margin-bottom: 3rem;
}

/* Footer */
.footer-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: auto;
}

/* Animations */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .brand-title {
    font-size: 2rem;
  }
  
  .app-logo {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 1.75rem;
  }
  
  .brand-subtitle {
    font-size: 0.9rem;
  }
  
  .app-logo {
    width: 70px;
    height: 70px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .spinner-ring,
  .app-logo {
    animation: none;
  }
}
