/* ==========================================================================
   VOUCHPIN — AUTHENTICATION (SIGN UP & LOGIN) STYLES
   ========================================================================== */

:root {
  --auth-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --auth-mono: 'JetBrains Mono', monospace;
  --auth-primary: #2563eb;
  --auth-primary-hover: #1d4ed8;
  --auth-dark: #0f172a;
  --auth-text: #1e293b;
  --auth-text-muted: #64748b;
  --auth-border: #e2e8f0;
  --auth-bg-light: #f8fafc;
}

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

body.auth-body {
  font-family: var(--auth-font);
  background: #ffffff;
  color: var(--auth-text);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Split Screen Layout */
.auth-wrapper {
  display: flex;
  flex-direction: row-reverse;
  width: 100vw;
  min-height: 100vh;
}

/* Right: Form Area */
.auth-form-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 48px;
  background: #ffffff;
  max-width: 640px;
  overflow-y: auto;
  border-left: 1px solid #f1f5f9;
}

@media (max-width: 1024px) {
  .auth-wrapper {
    flex-direction: column;
  }
  .auth-form-side {
    max-width: 100%;
    padding: 32px 24px;
    border-left: none;
  }
}

/* Header Brand */
.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--auth-dark);
}

.auth-brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.auth-brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-brand-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  margin-left: 4px;
}

.auth-back-link {
  font-size: 0.84rem;
  color: var(--auth-text-muted);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.auth-back-link:hover {
  color: var(--auth-primary);
}

/* Form Container */
.auth-form-container {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

/* Mode Switcher Tabs */
.auth-mode-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 28px;
}

.auth-mode-tab {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--auth-text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-mode-tab.active {
  background: #ffffff;
  color: var(--auth-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Headings */
.auth-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--auth-dark);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  line-height: 1.2;
}

.auth-desc {
  font-size: 0.95rem;
  color: var(--auth-text-muted);
  line-height: 1.5;
  margin-bottom: 28px;
}

/* Google OAuth Button */
.btn-google-oauth {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 18px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-family: var(--auth-font);
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  position: relative;
}

.btn-google-oauth:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.btn-google-oauth:active {
  transform: translateY(0);
}

.btn-google-oauth svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
}

.auth-divider-line {
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-divider-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Form Groups */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-label a {
  color: var(--auth-primary);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 600;
}

.form-label a:hover {
  text-decoration: underline;
}

.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-family: var(--auth-font);
  font-size: 0.92rem;
  color: var(--auth-dark);
  background: #ffffff;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-input::placeholder {
  color: #94a3b8;
}

.input-toggle-pwd {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-toggle-pwd:hover {
  color: #475569;
}

/* Checkbox & Terms */
.auth-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--auth-text-muted);
  line-height: 1.4;
}

.auth-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--auth-primary);
  margin-top: 2px;
  cursor: pointer;
}

/* Submit Button */
.btn-auth-submit {
  width: 100%;
  padding: 13px 20px;
  background: var(--auth-primary);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: var(--auth-font);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.btn-auth-submit:hover {
  background: var(--auth-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-auth-submit:active {
  transform: translateY(0);
}

/* Trust Pill Row */
.auth-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
  flex-wrap: wrap;
}

.auth-trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Footer text */
.auth-form-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--auth-text-muted);
}

.auth-form-footer a {
  color: var(--auth-primary);
  font-weight: 700;
  text-decoration: none;
}

.auth-form-footer a:hover {
  text-decoration: underline;
}

.auth-terms-note {
  margin-top: 24px;
  text-align: center;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.5;
}

.auth-terms-note a {
  color: #64748b;
  text-decoration: underline;
}

/* Left: Visual Showcase Side */
.auth-showcase-side {
  flex: 1.15;
  background: radial-gradient(circle at 15% 15%, #1e3a8a 0%, #0f172a 60%, #020617 100%);
  color: #ffffff;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .auth-showcase-side {
    display: none;
  }
}

.auth-showcase-side::before {
  content: "";
  position: absolute;
  top: -150px;
  left: -150px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-showcase-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: auto 0;
}

.auth-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(147, 197, 253, 0.3);
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-showcase-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  color: #ffffff;
}

.auth-showcase-title span {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Feature Checkmarks */
.auth-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.auth-benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.auth-benefit-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* Floating Testimonial Card */
.auth-testimonial-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.auth-test-stars {
  color: #fbbf24;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.auth-test-quote {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #f1f5f9;
  margin-bottom: 16px;
  font-style: italic;
}

.auth-test-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-test-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-test-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.auth-test-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.auth-test-role {
  font-size: 0.74rem;
  color: #94a3b8;
}

.auth-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.2);
  padding: 3px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

/* Showcase Footer Trust */
.auth-showcase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 0.82rem;
  color: #94a3b8;
  position: relative;
  z-index: 2;
}

.auth-metric-group {
  display: flex;
  gap: 28px;
}

.auth-metric-item strong {
  display: block;
  font-size: 1.15rem;
  color: #ffffff;
  font-weight: 800;
}

/* Simulated Google Auth Modal Overlay */
.google-sim-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.google-sim-modal-overlay.active {
  display: flex;
}

.google-sim-box {
  background: #ffffff;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  padding: 28px 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.google-sim-logo {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
}

.google-sim-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.google-sim-sub {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 20px;
}

.google-account-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  margin-bottom: 20px;
}

.google-account-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.google-account-row:hover {
  background: #f8fafc;
  border-color: #3b82f6;
  transform: translateY(-1px);
}

.google-acc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.google-acc-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}

.google-acc-email {
  font-size: 0.74rem;
  color: #64748b;
}

.google-sim-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 0;
}

.google-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   ONBOARDING STEPPER & MULTI-STEP FLOW STYLES
   ========================================================================== */

/* 4-Step Progress Bar */
.auth-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  gap: 6px;
}

.auth-step-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.73rem;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
}

.auth-step-item.active {
  color: #2563eb;
}

.auth-step-item.completed {
  color: #10b981;
}

.auth-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
}

.auth-step-item.active .auth-step-num {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.auth-step-item.completed .auth-step-num {
  background: #10b981;
  color: #ffffff;
}

.auth-step-sep {
  color: #cbd5e1;
  font-size: 0.72rem;
}

/* Step Views */
.step-container {
  display: none;
  animation: fadeIn 0.25s ease;
}

.step-container.active {
  display: block;
}

/* Step 2: Connect Business */
.biz-search-wrap {
  position: relative;
  margin-bottom: 20px;
}

.biz-search-wrap svg.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.biz-search-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-family: var(--auth-font);
  font-size: 0.92rem;
  color: #0f172a;
}

.biz-search-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.biz-list-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.biz-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.biz-card-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #ffffff;
}

.biz-card-option:hover {
  border-color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.biz-card-option.selected {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.biz-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.biz-card-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.biz-card-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.biz-card-addr {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 4px;
}

.biz-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
}

.biz-star-badge {
  color: #d97706;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.biz-radio-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0.76rem;
  font-weight: 800;
}

.biz-card-option.selected .biz-radio-check {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

/* Review Channels Source Badges */
.channels-connect-row {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.channel-chip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.channel-chip-toggle.active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #2563eb;
}

/* Step 3: See Widget */
.widget-celebrate-box {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.celebrate-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.celebrate-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 2px;
}

.celebrate-sub {
  font-size: 0.78rem;
  color: #047857;
}

/* Interactive Widget Display Box in Onboarding */
.onboarding-widget-frame {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

.onboarding-widget-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.onboarding-biz-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.onboarding-biz-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.onboarding-biz-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
}

.onboarding-biz-rating {
  font-size: 0.74rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.onboarding-reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 600px) {
  .onboarding-reviews-grid {
    grid-template-columns: 1fr;
  }
}

.onboarding-review-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
}

.onboarding-rev-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.onboarding-rev-author {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
}

.onboarding-rev-stars {
  color: #f59e0b;
  font-size: 0.72rem;
}

.onboarding-rev-text {
  font-size: 0.74rem;
  color: #475569;
  line-height: 1.45;
}

/* Action button row */
.onboarding-action-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-secondary-link {
  background: transparent;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
  text-align: center;
}

.btn-secondary-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

