/* Premium SignatureFlow login/register experience.
   Scoped under .sfa-* so it cannot affect the authenticated dashboard. */
:root {
  --sfa-ink: #1c122c;
  --sfa-muted: #70677e;
  --sfa-line: rgba(106, 43, 158, .15);
  --sfa-purple: #7c3aed;
  --sfa-purple-dark: #351052;
  --sfa-fuchsia: #d946ef;
  --sfa-soft: #f8f4fc;
  --sfa-green: #117a55;
}

.sfa-screen {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 5%, rgba(217,70,239,.16), transparent 30%),
    radial-gradient(circle at 90% 15%, rgba(124,58,237,.15), transparent 26%),
    linear-gradient(145deg, #fdfbff 0%, #f6effc 52%, #fbf7fd 100%);
  padding: 28px;
  color: var(--sfa-ink);
}
.sfa-orb { position: fixed; border-radius: 50%; filter: blur(95px); pointer-events: none; opacity: .55; }
.sfa-orb-one { width: 380px; height: 380px; left: -120px; top: -140px; background: #d946ef; }
.sfa-orb-two { width: 440px; height: 440px; right: -150px; bottom: -200px; background: #7c3aed; }
.sfa-layout {
  width: min(1200px, 100%);
  min-height: calc(100vh - 56px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr);
  border: 1px solid rgba(84, 32, 126, .12);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(61, 19, 96, .18);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 1;
}
.sfa-marketing {
  padding: 48px 50px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 5%, rgba(255,74,214,.24), transparent 28%),
    radial-gradient(circle at 15% 92%, rgba(142,73,255,.24), transparent 32%),
    linear-gradient(150deg, #1d0d31 0%, #38115d 45%, #6d28d9 78%, #b42bd0 118%);
  position: relative;
}
.sfa-marketing::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.sfa-marketing-inner { max-width: 650px; position: relative; z-index: 1; }
.sfa-marketing .sfa-brand { margin-bottom: 34px; color: #fff; }
.sfa-marketing .sfa-brand-mark { box-shadow: 0 10px 30px rgba(217,70,239,.34); }
.sfa-marketing .sfa-brand h1 { color: #fff; }
.sfa-brand { display: flex; align-items: center; gap: 11px; }
.sfa-brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--sfa-purple), var(--sfa-fuchsia));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 18px; flex-shrink: 0;
}
.sfa-brand h1 { font-size: 20px; margin: 0; font-weight: 800; letter-spacing: -.02em; color: var(--sfa-ink); }
.sfa-brand-primary { display: block; font-size: 20px; font-weight: 850; letter-spacing: -.045em; line-height: 1.08; }
.sfa-brand-signature { display: block; margin-top: 3px; font-size: 9px; font-weight: 550; letter-spacing: .05em; opacity: .68; }
.sfa-card-brand { display: none; margin-bottom: 24px; }
.sfa-eyebrow {
  display: inline-flex; padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.14);
  font-size: 12px; font-weight: 800; letter-spacing: .02em; margin-bottom: 16px;
}
.sfa-marketing h2 { font-size: clamp(36px, 4.2vw, 58px); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 18px; max-width: 620px; }
.sfa-hero-copy { max-width: 590px; font-size: 16px; line-height: 1.65; color: rgba(255,255,255,.82); margin: 0 0 18px; }
.sfa-price-pill { display: inline-flex; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); font-size: 13px; font-weight: 800; }
.sfa-value-block { margin-top: 34px; }
.sfa-value-block h3, .sfa-trust-block h3 { margin: 0 0 13px; font-size: 14px; }
.sfa-values { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sfa-value { display: flex; gap: 10px; min-height: 72px; padding: 13px; border-radius: 15px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.10); }
.sfa-check { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; flex: 0 0 auto; font-weight: 900; }
.sfa-value strong { display: block; font-size: 12.5px; margin-bottom: 3px; }
.sfa-value small { display: block; font-size: 11px; line-height: 1.45; color: rgba(255,255,255,.68); }
.sfa-trust-block { margin-top: 26px; }
.sfa-trust-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sfa-trust-head a { color: #fff; font-size: 11px; font-weight: 800; opacity: .86; }
.sfa-trust-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.sfa-trust-chip { padding: 7px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 750; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); }
.sfa-trust-block p { color: rgba(255,255,255,.62); font-size: 10px; line-height: 1.5; margin: 10px 0 0; }
.sfa-compare { margin-top: 23px; padding: 13px 14px; border-radius: 16px; background: rgba(18,7,31,.25); border: 1px solid rgba(255,255,255,.11); }
.sfa-compare summary { cursor: pointer; font-size: 11.5px; font-weight: 800; color: rgba(255,255,255,.92); }
.sfa-compare-head, .sfa-compare-row { display: grid; grid-template-columns: 1.35fr .8fr 1fr; gap: 9px; align-items: start; }
.sfa-compare-head { margin-top: 12px; padding: 8px 5px; font-size: 9.5px; color: rgba(255,255,255,.5); }
.sfa-compare-row { border-top: 1px solid rgba(255,255,255,.08); padding: 9px 5px; font-size: 9.5px; }
.sfa-compare-row strong { color: #fff; }
.sfa-compare-row small { font-size: 9px; color: rgba(255,255,255,.60); }
.sfa-disclaimer { font-size: 8.5px !important; color: rgba(255,255,255,.48) !important; line-height: 1.45 !important; margin: 10px 5px 0 !important; }
.sfa-auth-panel {
  min-width: 0;
  padding: 28px 38px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255,255,255,.94);
}
.sfa-auth-top { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.sfa-lang { display: inline-flex; padding: 3px; border-radius: 10px; background: #f1ebf7; }
.sfa-lang button { border: 0; background: transparent; color: #877c91; padding: 6px 9px; border-radius: 8px; font-size: 10px; font-weight: 900; cursor: pointer; }
.sfa-lang button.active { color: #fff; background: linear-gradient(135deg, var(--sfa-purple), var(--sfa-fuchsia)); box-shadow: 0 4px 12px rgba(124,58,237,.22); }
.sfa-card { width: 100%; max-width: 430px; margin: auto; background: transparent; padding: 8px 0 0; }
.sfa-form-title { font-size: 30px; line-height: 1.1; margin: 0 0 8px; letter-spacing: -.03em; color: var(--sfa-ink); }
.sfa-sub { font-size: 13px; color: var(--sfa-muted); margin: 0 0 20px; line-height: 1.55; }
.sfa-sub-tight { margin-top: -10px; }
.sfa-card label { display: block; font-size: 11.5px; margin: 13px 0 6px; color: #4c4059; font-weight: 750; }
.sfa-card input {
  width: 100%; padding: 11px 12px; border: 1px solid #d9cfdf; border-radius: 10px; font-size: 13px;
  font-family: inherit; color: var(--sfa-ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.sfa-card input:focus { outline: none; border-color: #a855f7; box-shadow: 0 0 0 3px rgba(168,85,247,.10); }
.sfa-card input:disabled { background: #f6f2f8; color: #7d7385; }
.sfa-btn { width: 100%; margin-top: 14px; padding: 11px 13px; border-radius: 10px; font-weight: 800; font-size: 13px; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.sfa-btn:hover:not(:disabled) { transform: translateY(-1px); }
.sfa-btn-primary { border: 0; color: #fff; background: linear-gradient(135deg, var(--sfa-purple) 0%, var(--sfa-fuchsia) 100%); box-shadow: 0 12px 24px rgba(124,58,237,.22); }
.sfa-btn-primary:hover:not(:disabled) { box-shadow: 0 14px 30px rgba(124,58,237,.30); }
.sfa-btn:disabled { opacity: .58; cursor: not-allowed; }
.sfa-btn-google { background: #fff; color: #2c2236; border: 1px solid #d9cfdf; margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 9px; }
.sfa-btn-google:hover:not(:disabled) { background: #fbf8fd; border-color: #cbbdd4; }
.sfa-google-g { width: 17px; height: 17px; flex-shrink: 0; display: inline-block; }
.sfa-divider { display: flex; align-items: center; text-align: center; color: #9a90a3; font-size: 10.5px; margin: 17px 0 3px; }
.sfa-divider::before, .sfa-divider::after { content: ''; flex: 1; border-bottom: 1px solid #e8e0ec; }
.sfa-divider span { padding: 0 9px; }
.sfa-turnstile { margin-top: 14px; display: flex; justify-content: center; min-height: 65px; }
.sfa-account-type { display: flex; gap: 8px; margin-top: 5px; }
.sfa-account-type-btn { flex: 1; padding: 9px; border: 1px solid #d9cfdf; border-radius: 10px; background: #fff; font-size: 12px; font-weight: 650; color: #655a70; cursor: pointer; transition: all .15s; }
.sfa-account-type-btn.active { border-color: #a855f7; background: #f7edff; color: #6d28d9; font-weight: 800; box-shadow: 0 0 0 2px rgba(168,85,247,.06); }
.sfa-no-card { margin: 10px 0 0; text-align: center; font-size: 10.5px; color: var(--sfa-green); font-weight: 750; }
.sfa-auth-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.sfa-link { font-size: 11.5px; color: #7c3aed; cursor: pointer; font-weight: 750; }
.sfa-link:hover { text-decoration: underline; }
.sfa-link-center { display: block; text-align: center; margin-top: 13px; }
.sfa-error { color: #b42318; font-size: 11px; margin-top: 10px; text-align: center; min-height: 15px; }
.sfa-loading-line { height: 4px; overflow: hidden; border-radius: 999px; background: #eee7f2; margin-top: 18px; }
.sfa-loading-line::after { content: ''; display: block; width: 45%; height: 100%; background: linear-gradient(90deg, var(--sfa-purple), var(--sfa-fuchsia)); animation: sfaLoading 1s ease-in-out infinite alternate; }
@keyframes sfaLoading { to { transform: translateX(120%); } }
.sfa-auth-footer { max-width: 430px; width: 100%; margin: 20px auto 0; padding-top: 15px; border-top: 1px solid #eee7f2; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; color: #9b91a3; font-size: 9.5px; }
.sfa-auth-footer a { color: #786e82; text-decoration: none; }
.sfa-auth-footer a:hover { color: #6d28d9; }
@media (max-width: 980px) {
  .sfa-screen { padding: 0; }
  .sfa-layout { min-height: 100vh; border-radius: 0; border: 0; grid-template-columns: 1fr; }
  .sfa-marketing { padding: 34px 30px; }
  .sfa-marketing h2 { font-size: 38px; max-width: 720px; }
  .sfa-values { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sfa-compare { display: none; }
  .sfa-auth-panel { padding: 28px 30px 34px; }
  .sfa-card { max-width: 560px; }
  .sfa-auth-footer { max-width: 560px; }
}
@media (max-width: 620px) {
  .sfa-marketing { display: none; }
  .sfa-screen, .sfa-layout { min-height: 100dvh; }
  .sfa-layout { box-shadow: none; }
  .sfa-auth-panel {
    min-height: 100dvh;
    justify-content: flex-start;
    padding: max(20px, env(safe-area-inset-top)) max(17px, env(safe-area-inset-right))
      calc(26px + env(safe-area-inset-bottom)) max(17px, env(safe-area-inset-left));
    background: linear-gradient(180deg, #fff 0%, #faf6fc 100%);
  }
  .sfa-card-brand { display: block; }
  .sfa-card { padding-top: 18px; }
  .sfa-form-title { font-size: 27px; }
  .sfa-auth-top { margin-bottom: 6px; }
  .sfa-card input { min-height: 48px; font-size: 16px; }
  .sfa-btn, .sfa-account-type-btn { min-height: 48px; }
  .sfa-lang button { min-width: 42px; min-height: 40px; }
  .sfa-auth-links { flex-wrap: wrap; gap: 9px; }
  .sfa-link { min-height: 38px; display: inline-flex; align-items: center; }
  .sfa-turnstile { max-width: 100%; overflow: hidden; }
}
