
@import url('https://fonts.cdnfonts.com/css/firago');
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&display=swap');

:root {
  --white: #FFFFFF;
  --green: #38AD4E;
  --green-hover: #2E9341;
  --green-light: #4DBE63;
  --green-dark: #237D38;
  --green-darker: #1a5e2a;
  --green-50: #F4FAF3;
  --green-100: #E5F1E3;
  --green-600: #2E9341;

  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;

  --red-500: #EF4444;
  --red-50: #FEF2F2;
  --amber-500: #F59E0B;

  --shadow-sm: 0 1px 2px 0 rgba(15,23,42,.05);
  --shadow-md: 0 4px 16px -4px rgba(15,23,42,.08);
  --shadow-lg: 0 12px 40px -8px rgba(15,23,42,.18), 0 0 0 1px rgba(15,23,42,.05);
  --shadow-cta: 0 4px 14px -2px rgba(56,173,78,.30);

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-2xl: 18px;

  --ease: cubic-bezier(.4,0,.2,1);
}

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

html, body {
  font-family: 'FiraGO', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--slate-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============================================
   PAGE LAYOUT — split screen
   ============================================ */
.fb-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.fb-auth-left {
  display: flex;
  flex-direction: column;
  padding: 36px 48px;
  background: var(--white);
  position: relative;
  overflow-y: auto;
}

.fb-auth-left-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
}

.fb-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.fb-back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--slate-500);
  font-weight: 500;
  transition: color .15s var(--ease);
}
.fb-back-home:hover { color: var(--green); }
.fb-back-home svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.fb-auth-form-wrap {
  width: 100%;
  max-width: 360px;
  margin: 48px auto;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fb-auth-left-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--slate-400);
  margin-top: auto;
  padding-top: 24px;
}

.fb-footer-links {
  display: flex;
  gap: 18px;
}

.fb-footer-links a {
  color: var(--slate-500);
  transition: color .15s var(--ease);
}
.fb-footer-links a:hover { color: var(--green); }

/* ============================================
   RIGHT PANEL — gradient + grain + testimonials
   ============================================ */
.fb-auth-right {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(77,190,99,.55) 0%, transparent 38%),
    radial-gradient(circle at 88% 78%, rgba(35,125,56,.45) 0%, transparent 42%),
    radial-gradient(circle at 60% 35%, rgba(56,173,78,.35) 0%, transparent 50%),
    linear-gradient(135deg, #38AD4E 0%, #237D38 30%, #134a22 60%, #0F172A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  isolation: isolate;
}

/* Floating glow orbs */
.fb-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  opacity: .55;
  z-index: 0;
}
.fb-orb-1 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, #4DBE63 0%, transparent 70%);
  top: -80px; left: -80px;
  animation: orbFloat1 18s ease-in-out infinite;
}
.fb-orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #38AD4E 0%, transparent 70%);
  bottom: -120px; right: -100px;
  animation: orbFloat2 22s ease-in-out infinite;
}
.fb-orb-3 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, #a3e635 0%, transparent 70%);
  top: 45%; left: 60%;
  opacity: .25;
  animation: orbFloat3 26s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 30px); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, -20px); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 25px) scale(1.1); }
}

/* Grain texture overlay using SVG noise */
.fb-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.85'/%3E%3C/svg%3E");
}

/* Subtle dot pattern overlay */
.fb-dots {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .12;
  background-image: radial-gradient(circle, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Testimonial container */
.fb-testimonial-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  color: var(--white);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.fb-testimonial-wrap.is-dragging { cursor: grabbing; }
.fb-testimonial-wrap.is-dragging .fb-testimonial { user-select: none; }

.fb-testimonial-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px 14px;
  border-radius: 100px;
  margin-bottom: 36px;
}
.fb-testimonial-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4DBE63;
  box-shadow: 0 0 0 4px rgba(77,190,99,.3);
}

/* Quote mark decoration */
.fb-quote-mark {
  font-family: 'Caveat', 'Brush Script MT', cursive;
  font-weight: 700;
  font-size: 160px;
  line-height: 0.6;
  color: rgba(255,255,255,.32);
  margin-bottom: -12px;
  user-select: none;
  letter-spacing: -0.06em;
  transform: translateX(-6px);
  text-shadow: 0 4px 32px rgba(56,173,78,.25);
}

/* Testimonial slides */
.fb-testimonial {
  display: none;
  animation: fbFade .6s var(--ease);
}
.fb-testimonial.is-active { display: block; }

@keyframes fbFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fb-quote {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.fb-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fb-author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4DBE63, #237D38);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 17px;
  border: 2px solid rgba(255,255,255,.2);
  flex-shrink: 0;
}

.fb-author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fb-author-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.fb-author-role {
  font-size: 13px;
  color: rgba(255,255,255,.7);
}

/* Pagination dots */
.fb-dots-nav {
  display: flex;
  gap: 8px;
  margin-top: 40px;
}

.fb-dots-nav button {
  height: 4px;
  width: 24px;
  border: none;
  border-radius: 2px;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  transition: background .25s var(--ease), width .25s var(--ease);
  padding: 0;
}
.fb-dots-nav button:hover { background: rgba(255,255,255,.5); }
.fb-dots-nav button.is-active {
  background: var(--white);
  width: 36px;
}

/* Trust badge bottom */
.fb-trust-badge {
  position: absolute;
  bottom: 32px;
  left: 48px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.7);
  font-size: 12px;
}

/* ============================================
   FORM — Fair Business style
   ============================================ */
.fb-form-title {
  font-size: var(--fs-4xl);   /* v1.2.91: 28 → 32 via token */
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.fb-form-subtitle {
  font-size: 15px;
  color: var(--slate-500);
  margin-bottom: 32px;
  line-height: 1.5;
}

.fb-form-subtitle strong {
  color: var(--slate-900);
  font-weight: 600;
}

.fb-form-group {
  position: relative;
  margin-bottom: 16px;
}

.fb-form-group label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--slate-400);
  pointer-events: none;
  transition: all .2s var(--ease);
  background: var(--white);
  padding: 0 4px;
  z-index: 1;
  font-weight: 400;
}

.fb-form-group.focused label,
.fb-form-group.filled label {
  top: 0;
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.fb-form-group input[type="text"],
.fb-form-group input[type="email"],
.fb-form-group input[type="password"] {
  width: 100%;
  height: 50px;
  padding: 6px 14px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  color: var(--slate-900);
  background: var(--white);
  outline: none;
  transition: all .2s var(--ease);
}

.fb-form-group input[type="text"]:hover,
.fb-form-group input[type="email"]:hover,
.fb-form-group input[type="password"]:hover {
  border-color: var(--slate-300);
}

.fb-form-group input[type="text"]:focus,
.fb-form-group input[type="email"]:focus,
.fb-form-group input[type="password"]:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(56,173,78,.15);
}

.fb-form-group input.error { border-color: var(--red-500); }
.fb-form-group input.error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.15); }

/* Password toggle */
.fb-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--slate-400);
  border-radius: var(--radius-xs);
  transition: color .15s var(--ease), background .15s var(--ease);
}
.fb-password-toggle:hover {
  color: var(--green);
  background: var(--green-50);
}
.fb-password-toggle svg { width: 18px; height: 18px; display: block; }

/* Email locked state */
.fb-email-locked {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--green-50);
  border: 1.5px solid var(--green-100);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.fb-email-locked-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}
.fb-email-locked-icon svg { width: 16px; height: 16px; stroke-width: 2; stroke: currentColor; fill: none; }

.fb-email-locked-text {
  flex: 1;
  font-size: 14px;
  color: var(--slate-900);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fb-email-edit {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--slate-500);
  border-radius: var(--radius-xs);
  transition: all .15s var(--ease);
  flex-shrink: 0;
}
.fb-email-edit:hover { color: var(--green); background: var(--white); }
.fb-email-edit svg { width: 16px; height: 16px; display: block; stroke-width: 2; stroke: currentColor; fill: none; }

/* Buttons */
.fb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s var(--ease);
  outline: none;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.fb-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.fb-btn:disabled { opacity: .6; cursor: not-allowed; }

.fb-btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-cta);
}

.fb-btn-primary:hover:not(:disabled) {
  background: var(--green-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -2px rgba(56,173,78,.4);
}

.fb-btn-primary:active:not(:disabled) {
  transform: translateY(0);
  background: var(--green-dark);
}

.fb-btn-primary:focus-visible:not(:disabled) {
  box-shadow: var(--shadow-cta), 0 0 0 3px rgba(56,173,78,.25);
}

.fb-btn-secondary {
  background: var(--white);
  color: var(--slate-900);
  border: 1.5px solid var(--slate-200);
}

.fb-btn-secondary:hover:not(:disabled) {
  border-color: var(--green);
  background: var(--green-50);
  color: var(--green);
}

.fb-btn-secondary svg { color: var(--green); }

/* Divider */
.fb-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
  font-size: 12px;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.fb-divider::before,
.fb-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--slate-200);
}

/* OTP Inputs */
.fb-otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.fb-otp-inputs input {
  width: 100%;
  max-width: 56px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  outline: none;
  transition: all .2s var(--ease);
  background: var(--white);
  color: var(--slate-900);
  font-family: inherit;
  padding: 0;
}

.fb-otp-inputs input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(56,173,78,.15);
}

.fb-otp-inputs input.filled {
  border-color: var(--green);
  background: var(--green-50);
  color: var(--green-dark);
}

/* Timer */
.fb-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--slate-500);
  margin-bottom: 18px;
}

.fb-timer svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.fb-timer-value { font-weight: 600; color: var(--slate-900); font-variant-numeric: tabular-nums; }
.fb-timer.expired { color: var(--red-500); }
.fb-timer.expired .fb-timer-value { color: var(--red-500); }

/* Options row */
.fb-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  margin-top: 4px;
}

.fb-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fb-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-xs);
  cursor: pointer;
  accent-color: var(--green);
  flex-shrink: 0;
}

.fb-checkbox label {
  position: static;
  transform: none;
  font-size: 13px;
  color: var(--slate-600);
  cursor: pointer;
  background: transparent;
  padding: 0;
  font-weight: 400;
}

.fb-link {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition: color .15s var(--ease);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.fb-link:hover { color: var(--green-hover); text-decoration: underline; }

.fb-back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--slate-500);
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  font-weight: 500;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: all .15s var(--ease);
}

.fb-back-link:hover { color: var(--green); background: var(--green-50); }
.fb-back-link svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Messages */
.fb-message {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.fb-message svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.fb-message.success { background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-dark); }
.fb-message.error { background: var(--red-50); border: 1px solid #fecaca; color: #b91c1c; }

/* Bottom of card */
.fb-form-footer {
  text-align: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--slate-100);
  font-size: 14px;
  color: var(--slate-500);
}

.fb-form-footer a {
  color: var(--green);
  font-weight: 600;
}
.fb-form-footer a:hover { color: var(--green-hover); text-decoration: underline; }

/* Resend */
.fb-resend-row {
  text-align: center;
  font-size: 13px;
  color: var(--slate-500);
  margin-bottom: 4px;
}

.fb-resend-btn {
  color: var(--green);
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  transition: color .15s var(--ease);
}

.fb-resend-btn:hover:not(:disabled) { color: var(--green-hover); text-decoration: underline; }
.fb-resend-btn:disabled { color: var(--slate-400); cursor: not-allowed; }

/* States */
.fb-state { display: none; }
.fb-state.active {
  display: block;
  animation: fbStateIn .35s var(--ease);
}

@keyframes fbStateIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Honeypot */
.fb-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Account-type segmented toggle */
.fb-account-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-bottom: 24px;
}

.fb-account-toggle-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--white);
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 0 0 1px rgba(15,23,42,.04);
  transition: transform .28s var(--ease);
  z-index: 0;
}

.fb-account-toggle.is-business .fb-account-toggle-indicator {
  transform: translateX(100%);
}

.fb-account-toggle button {
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  padding: 10px 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  transition: color .2s var(--ease);
  white-space: nowrap;
}

.fb-account-toggle button:hover {
  color: var(--slate-700);
}

.fb-account-toggle button.is-active {
  color: var(--green-dark);
  font-weight: 600;
}

.fb-account-toggle button.is-active:hover {
  color: var(--green-dark);
}

.fb-account-toggle button svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s var(--ease);
}

.fb-account-toggle button.is-active svg {
  transform: scale(1.05);
}

/* Conditional field reveal — slides down when shown */
.fb-conditional-field {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  transition:
    max-height .4s var(--ease),
    opacity .25s var(--ease) .05s,
    padding-top .4s var(--ease);
}

.fb-conditional-field.is-shown {
  max-height: 220px;     /* room for two stacked form groups */
  opacity: 1;
  padding-top: 8px;       /* breathing room so floating labels don't clip */
}

.fb-conditional-field .fb-form-group {
  margin-bottom: 16px;
}

/* Password Strength */
.fb-password-strength { margin-top: -8px; margin-bottom: 16px; }

.fb-strength-bar {
  height: 3px;
  background: var(--slate-100);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.fb-strength-fill {
  height: 100%;
  width: 0%;
  transition: all .3s var(--ease);
  border-radius: 2px;
}

.fb-strength-fill.weak { width: 33%; background: var(--red-500); }
.fb-strength-fill.medium { width: 66%; background: var(--amber-500); }
.fb-strength-fill.strong { width: 100%; background: var(--green); }

.fb-strength-text { font-size: 12px; color: var(--slate-500); }
.fb-strength-text.weak { color: var(--red-500); }
.fb-strength-text.medium { color: var(--amber-500); }
.fb-strength-text.strong { color: var(--green); }

/* Spinner */
.fb-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: fbSpin .8s linear infinite;
}

.fb-btn-secondary .fb-spinner {
  border-color: var(--slate-200);
  border-top-color: var(--green);
}

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

/* Status icon for empty/success states */
.fb-status-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.fb-status-icon.success { background: var(--green-50); color: var(--green); }
.fb-status-icon.error { background: var(--red-50); color: var(--red-500); }
.fb-status-icon svg {
  width: 32px; height: 32px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px) {
  .fb-auth { grid-template-columns: 1fr; }
  .fb-auth-right { display: none; }
  .fb-auth-left { padding: 24px; }
  .fb-auth-form-wrap { margin: 24px auto; }
}

@media (max-width: 480px) {
  .fb-auth-left { padding: 20px 18px; }
  .fb-form-title { font-size: 24px; }
  .fb-otp-inputs input { max-width: 44px; height: 50px; font-size: 18px; }
  .fb-auth-left-footer { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ============================================
   PROTOTYPE TOOLBAR
   ============================================ */
.proto-toolbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: rgba(15,23,42,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  border-radius: 100px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;
  border: 1px solid rgba(255,255,255,.1);
}

.proto-toolbar-label {
  font-size: 10px;
  color: #94A3B8;
  padding: 6px 10px 6px 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  align-self: center;
  white-space: nowrap;
}

.proto-toolbar button,
.proto-toolbar a {
  background: transparent;
  color: #cbd5e1;
  border: none;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s var(--ease);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.proto-toolbar button:hover,
.proto-toolbar a:hover { background: rgba(255,255,255,.08); color: #fff; }
.proto-toolbar button.active { background: var(--green); color: #fff; }

@media (max-width: 700px) {
  .proto-toolbar { top: auto; bottom: 12px; left: 12px; right: 12px; transform: none; justify-content: center; flex-wrap: wrap; }
  .proto-toolbar-label { display: none; }
}

