/* Front Senior — Auth Token Capture */
/* Mobile-first, clean design */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: #f0f2f5;
  color: #1a1a2e;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  line-height: 1.5;
}

.container {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding: 40px 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

/* Icon circles */
.icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
}

.icon--loading {
  background: #e8f0fe;
  color: #2563eb;
}

.icon--success {
  background: #d1fae5;
  color: #059669;
}

.icon--error {
  background: #fee2e2;
  color: #dc2626;
}

/* Typography */
h1 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a2e;
}

p {
  color: #6b7280;
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.text-small {
  font-size: 0.8125rem;
  color: #9ca3af;
}

/* Spinner */
.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 20px auto;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  margin-top: 20px;
}

.btn:active {
  transform: scale(0.97);
}

.btn--whatsapp {
  background: #25d366;
  color: #ffffff;
}

.btn--whatsapp:hover {
  background: #1ebe57;
}

.btn--retry {
  background: #2563eb;
  color: #ffffff;
}

.btn--retry:hover {
  background: #1d4ed8;
}

/* Sections */
.section {
  display: none;
}

.section--visible {
  display: block;
}

.is-hidden {
  display: none;
}

/* Status badge */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.status-badge--pending {
  background: #fef3c7;
  color: #92400e;
}

.status-badge--success {
  background: #d1fae5;
  color: #065f46;
}

.status-badge--error {
  background: #fee2e2;
  color: #991b1b;
}

/* User info card */
.user-info {
  background: #f9fafb;
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
  text-align: left;
}

.user-info dt {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

.user-info dt:first-child {
  margin-top: 0;
}

.user-info dd {
  font-size: 0.9375rem;
  color: #1f2937;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 420px) {
  .container {
    padding: 32px 20px;
    border-radius: 12px;
  }

  h1 {
    font-size: 1.25rem;
  }
}
