* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color: #ffffff;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Microsoft YaHei', Arial, sans-serif;
}

.connect-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #6677ee 0%, #7744aa 100%);
}

.connect-card {
  width: min(420px, 90vw);
  padding: 50px 40px;
  text-align: center;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  animation: fade-rise 0.5s ease both;
}

.connect-card h1 {
  margin-bottom: 12px;
  color: #1a1a2e;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.3;
}

.connect-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 24px;
  border: 4px solid #f3f3f3;
  border-top-color: #6677ee;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.progress-track {
  width: 100%;
  height: 6px;
  margin-bottom: 16px;
  overflow: hidden;
  background: #e9ecef;
  border-radius: 3px;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #6677ee, #7744aa);
  border-radius: inherit;
  animation: progress-grow 1.2s ease-out forwards;
}

.domain-box {
  padding: 10px 16px;
  color: #495057;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  background: #f8f9fa;
  border-radius: 8px;
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes progress-grow {
  0% {
    width: 0;
  }
  50% {
    width: 60%;
  }
  80% {
    width: 85%;
  }
  100% {
    width: 95%;
  }
}

@media (max-width: 520px) {
  .connect-page {
    padding: 16px;
  }

  .connect-card {
    padding: 40px 26px;
  }

  .connect-card h1 {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
