/* RealmFive onboarding -- join.r5.ag */

:root {
  --rf-charcoal: #3c3936;
  --rf-green: #75be43;
  --rf-gray: #6e6d6b;
  --rf-light: #f5f5f4;
  --rf-white: #ffffff;
  --rf-red: #d94f4f;
  --rf-yellow: #e5a100;
}

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

body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--rf-light);
  color: var(--rf-charcoal);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.container {
  max-width: 480px;
  width: 100%;
}

.card {
  background: var(--rf-white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  margin-bottom: 1rem;
}

.logo {
  display: block;
  margin: 0 auto 1.5rem;
  height: 40px;
}

h1 {
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}

.subtitle {
  text-align: center;
  color: var(--rf-gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Status indicator */
.status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 8px;
  background: var(--rf-light);
  margin-bottom: 1rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.connecting {
  background: var(--rf-yellow);
  animation: pulse 1.5s ease-in-out infinite;
}

.status-dot.connected {
  background: var(--rf-green);
}

.status-dot.error {
  background: var(--rf-red);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.status-text {
  font-size: 0.9rem;
}

/* Steps */
.step {
  display: none;
}

.step.active {
  display: block;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--rf-green);
  color: var(--rf-white);
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

/* Credential display */
.credential-box {
  position: relative;
  background: var(--rf-charcoal);
  color: var(--rf-green);
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.85rem;
  padding: 1rem;
  border-radius: 8px;
  word-break: break-all;
  margin: 1rem 0;
}

.credential-box .copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--rf-white);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
}

.credential-box .copy-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Instructions */
.instructions {
  margin: 1rem 0;
}

.instructions li {
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
  line-height: 1.5;
}

.instructions code {
  background: var(--rf-light);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Platform tabs */
.platform-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.platform-tab {
  flex: 1;
  padding: 0.5rem;
  border: 2px solid var(--rf-light);
  border-radius: 8px;
  background: var(--rf-white);
  cursor: pointer;
  text-align: center;
  font-size: 0.85rem;
  transition: all 0.15s;
}

.platform-tab.active {
  border-color: var(--rf-green);
  background: rgba(117, 190, 67, 0.08);
}

.platform-content {
  display: none;
}

.platform-content.active {
  display: block;
}

/* Timer */
.timer {
  text-align: center;
  color: var(--rf-gray);
  font-size: 0.8rem;
  margin-top: 1rem;
}

.timer.urgent {
  color: var(--rf-red);
  font-weight: 600;
}

/* Error state */
.error-message {
  text-align: center;
  color: var(--rf-red);
  padding: 1rem;
}

.error-message .retry-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  background: var(--rf-green);
  color: var(--rf-white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Footer */
.footer {
  text-align: center;
  color: var(--rf-gray);
  font-size: 0.75rem;
  margin-top: 1rem;
}

.footer a {
  color: var(--rf-green);
  text-decoration: none;
}
