:root {
  --primary-color: #ff7b02;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --accent-color: #ff7b02;
  --bg-gradient: radial-gradient(circle at top left, #f8fafc, #f1f5f9);
  --text-color: #1e293b;
  --card-bg: rgba(255, 255, 255, 0.95);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--bg-gradient);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background Animated Orbs */
body::before,
body::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.4;
  animation: orbMove 20s infinite alternate;
}

body::before {
  background: #ff7b02;
  top: -100px;
  left: -100px;
}

body::after {
  background: #ff7b02;
  bottom: -100px;
  right: -100px;
  animation-delay: -10s;
}

@keyframes orbMove {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(100px, 100px) scale(1.2);
  }
}

.loading-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 3rem 2.5rem;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.5);
  text-align: center;
  max-width: 450px;
  width: 90%;
  position: relative;
  overflow: hidden;
}

.brand-section {
  margin-bottom: 2rem;
}

.logo {
  height: 48px;
  width: auto;
  margin-bottom: 0.75rem;
}

.brand-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Progress Bar Loader */
.loader-container {
  width: 100%;
  height: 6px;
  background: #f1f5f9;
  border-radius: 10px;
  margin: 2rem 0 1.5rem;
  position: relative;
  overflow: hidden;
}

.loader-bar {
  position: absolute;
  height: 100%;
  width: 40%;
  background: var(--primary-gradient);
  border-radius: 10px;
  animation: progressMove 1.5s infinite ease-in-out;
}

@keyframes progressMove {
  0% {
    left: -40%;
  }
  100% {
    left: 100%;
  }
}

/* Spinner is replaced by bar but kept for backward compatibility if needed */
.spinner {
  display: none;
}

h2 {
  font-size: 1.75rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

p {
  color: #475569;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

.user-name {
  color: #ff7b02;
  font-weight: 700;
  border-bottom: 2px solid #e2e8f0;
}

.muted {
  color: #64748b;
  font-size: 0.95rem;
  margin-top: 1rem;
}

.error-wrap {
  text-align: center;
  padding: 40px 20px;
}

.error-wrap h1 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 0 0 0.5rem;
}

.error-wrap p {
  color: #666;
}

.button {
  margin-top: 1.5rem;
}

.footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.02em;
}
