/* splashstreet-membership — Stripe-Checkout-inspired membership page */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #111827;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.page-wrapper {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Card */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
  padding: 2rem 1.5rem;
  width: 100%;
}

/* Logo */
.logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.logo {
  max-height: 72px;
  max-width: 200px;
  object-fit: contain;
}

/* Header */
.header-section {
  text-align: center;
  margin-bottom: 1.75rem;
}

.headline {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
  margin-bottom: 0.5rem;
}

.subheadline {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.5;
}

/* Form */
.form-section {
  width: 100%;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.35rem;
}

.required {
  color: #ef4444;
}

.form-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: #111827;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-input:focus {
  border-color: var(--brand-color, #2563eb);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-color, #2563eb) 15%, transparent);
}

.form-input::placeholder {
  color: #9ca3af;
}

/* Consent checkbox */
.consent-group {
  margin: 1.25rem 0;
}

.consent-label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--brand-color, #2563eb);
  flex-shrink: 0;
}

.consent-text {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.5;
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 0.8rem;
  background: var(--brand-color, #2563eb);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover:not(:disabled) {
  background: var(--brand-hover, #1d4ed8);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-secondary {
  width: 100%;
  padding: 0.7rem;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.btn-text {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0.5rem 0;
  text-align: center;
  width: 100%;
  margin-top: 0.5rem;
}

.btn-text:hover {
  color: #111827;
}

.btn-text strong {
  color: var(--brand-color, #2563eb);
}

/* Loader spinner */
.loader {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* Messages */
.error-message {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  text-align: center;
  line-height: 1.4;
}

.info-message {
  color: #059669;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  text-align: center;
  line-height: 1.4;
  font-weight: 500;
}

/* OTP Section */
.otp-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.otp-instruction {
  font-size: 0.95rem;
  color: #374151;
  margin-bottom: 0.25rem;
}

.otp-phone {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
}

.otp-inputs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.otp-digit {
  width: 48px;
  height: 56px;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  font-family: inherit;
  color: #111827;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.otp-digit:focus {
  border-color: var(--brand-color, #2563eb);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-color, #2563eb) 15%, transparent);
}

/* Success */
.success-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.success-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #111827;
}

.success-subtitle {
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.75rem 0 1rem;
  color: #9ca3af;
  font-size: 0.85rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

/* Status check */
.status-section {
  width: 100%;
}

/* Footer */
.footer-section {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0 0.25rem;
}

.expect-section {
  background: #f9fafb;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.expect-section h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.expect-section p {
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.6;
}

.powered-by {
  text-align: center;
  margin-bottom: 0.75rem;
}

.powered-by p {
  font-size: 0.8rem;
  color: #9ca3af;
}

.powered-by a {
  color: #6b7280;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.legal-links a {
  font-size: 0.8rem;
  color: #9ca3af;
  text-decoration: none;
}

.legal-links a:hover {
  color: #6b7280;
  text-decoration: underline;
}

.legal-links .dot {
  color: #d1d5db;
}

.legal-fine-print {
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 520px) {
  .page-wrapper {
    padding: 1rem 0.75rem 2rem;
  }

  .card {
    padding: 1.5rem 1.25rem;
    border-radius: 10px;
  }

  .headline {
    font-size: 1.3rem;
  }

  .otp-digit {
    width: 42px;
    height: 50px;
    font-size: 1.2rem;
  }
}
