/* ==========================================================
   SAM-IA — Marketing CSS (landing + login)
   Auto-generated from prototypes/v2.html. Manual edits OK
   but tracking the prototype is useful when we iterate.
   ========================================================== */

@import url('/static/fonts/fonts.css');

/* =====================================================
     V2 — Rifinitura su token SAM + display typography
     Eccezione consapevole alla regola "system fonts only":
     la landing è asset marketing, non l'app clinica.
     ===================================================== */
  :root {
    --ff-display: 'Fraunces', 'Times New Roman', serif; /* hero, section titles */
    --ff-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }

  * { box-sizing: border-box; }
  body {
    background: var(--sam-bg);
    margin: 0;
    font-family: var(--ff-ui);
    color: var(--sam-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }



  /* ============================================================
     LANDING — A+B refined
     ============================================================ */
  .landing { background: var(--sam-card-bg); }

  /* ===== Header ===== */
  .landing-header {
    max-width: 1240px; margin: 0 auto;
    padding: 24px 40px;
    display: flex; align-items: center; justify-content: space-between;
  }
  .brand-mark {
    display: flex; align-items: center; gap: 12px;
  }
  .brand-wordmark {
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: 22px;
    color: #1F2528;
    letter-spacing: -0.015em;
  }
  .brand-wordmark .dot { color: var(--sam-green); }
  .brand-wordmark .ia { color: #5D686D; font-weight: 400; margin-left: 1px; }

  .landing-header nav {
    display: flex; gap: 32px; align-items: center;
    font-size: 14px;
  }
  .landing-header nav a {
    color: var(--sam-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
  }
  .landing-header nav a:hover { color: var(--sam-text-primary); }
  .landing-header .login-link {
    color: var(--sam-green-dark);
    font-weight: 600;
    padding: 8px 18px;
    border: 1px solid var(--sam-green-border);
    border-radius: var(--sam-r-pill);
    background: rgba(29,158,117,0.04);
  }
  .landing-header .login-link:hover { background: var(--sam-green-50); }

  /* ===== HERO with mesh gradient ===== */
  .hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 120px;
  }
  /* Mesh gradient — multiple radial gradients overlaid */
  .hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(at 20% 30%, rgba(29,158,117,0.10) 0%, transparent 50%),
      radial-gradient(at 80% 20%, rgba(55,138,221,0.06) 0%, transparent 55%),
      radial-gradient(at 70% 80%, rgba(83,74,183,0.05) 0%, transparent 50%),
      radial-gradient(at 30% 90%, rgba(186,117,23,0.04) 0%, transparent 45%);
    z-index: 0;
  }
  /* Subtle noise texture */
  .hero::after {
    content: '';
    position: absolute; inset: 0;
    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.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    z-index: 0;
    opacity: 0.6;
    mix-blend-mode: multiply;
    pointer-events: none;
  }
  .hero-inner {
    position: relative; z-index: 1;
    max-width: 1240px; margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 80px;
    align-items: center;
  }
  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sam-green-dark);
    font-weight: 600;
    margin-bottom: 28px;
    padding: 6px 14px;
    background: rgba(29,158,117,0.08);
    border: 1px solid rgba(29,158,117,0.15);
    border-radius: var(--sam-r-pill);
  }
  .hero-eyebrow::before {
    content: ''; width: 6px; height: 6px;
    background: var(--sam-green); border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(29,158,117,0.18);
  }
  .hero h1 {
    font-family: var(--ff-display);
    font-size: 68px;
    line-height: 1.02;
    font-weight: 400;
    color: var(--sam-text-primary);
    margin: 0 0 28px 0;
    letter-spacing: -0.025em;
  }
  .hero h1 em {
    font-style: italic;
    font-weight: 500;
    color: var(--sam-green-dark);
    position: relative;
    white-space: nowrap;
  }
  .hero h1 em::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 6px;
    height: 8px;
    background: rgba(29,158,117,0.15);
    z-index: -1;
    border-radius: 2px;
  }
  .hero-sub {
    font-size: 19px;
    line-height: 1.55;
    color: var(--sam-text-secondary);
    margin: 0 0 40px 0;
    max-width: 520px;
    font-weight: 400;
  }
  .cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
  .btn-primary {
    background: linear-gradient(180deg, #22B084 0%, var(--sam-green-dark) 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: var(--sam-r-md);
    font-family: var(--ff-ui);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow:
      0 1px 0 rgba(255,255,255,0.2) inset,
      0 8px 20px -4px rgba(29,158,117,0.45),
      0 2px 4px rgba(29,158,117,0.2);
    transition: transform 0.15s, box-shadow 0.15s;
    letter-spacing: -0.005em;
  }
  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.2) inset,
      0 12px 24px -4px rgba(29,158,117,0.55),
      0 4px 8px rgba(29,158,117,0.25);
  }
  .btn-ghost {
    background: rgba(255,255,255,0.6);
    color: var(--sam-text-primary);
    border: 1px solid var(--sam-border);
    padding: 15px 26px;
    border-radius: var(--sam-r-md);
    font-family: var(--ff-ui);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.15s;
  }
  .btn-ghost:hover { border-color: var(--sam-text-primary); background: white; }
  .hero-trust {
    margin-top: 36px;
    display: flex; gap: 28px;
    font-size: 13px;
    color: var(--sam-text-tertiary);
  }
  .hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
  .hero-trust svg { color: var(--sam-green); }

  /* ===== HERO mockup (right) — refined with realistic light ===== */
  .hero-mockup {
    position: relative;
    perspective: 1600px;
  }
  .mock-window {
    position: relative;
    background: var(--sam-card-bg);
    border-radius: 14px;
    overflow: hidden;
    transform: rotateY(-8deg) rotateX(4deg) translateZ(0);
    transform-origin: center center;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.6) inset,
      0 30px 60px -20px rgba(20, 50, 40, 0.35),
      0 18px 36px -18px rgba(20, 50, 40, 0.25),
      0 4px 12px rgba(0, 0, 0, 0.05);
  }
  /* light reflection */
  .mock-window::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, transparent 100%);
    pointer-events: none;
    z-index: 5;
    opacity: 0.5;
    mix-blend-mode: overlay;
  }
  .mock-titlebar {
    height: 36px;
    background: linear-gradient(180deg, #FBFCFC 0%, #EEF1F0 100%);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex; align-items: center;
    padding: 0 14px;
    gap: 8px;
  }
  .mock-dot {
    width: 12px; height: 12px; border-radius: 50%;
    box-shadow: 0 0 0 0.5px rgba(0,0,0,0.08);
  }
  .mock-dot.r { background: linear-gradient(180deg, #FF6B5C, #E24B4A); }
  .mock-dot.y { background: linear-gradient(180deg, #FFC857, #EF9F27); }
  .mock-dot.g { background: linear-gradient(180deg, #6FE07A, #4DC75C); }
  .mock-title {
    font-size: 12px;
    color: var(--sam-text-secondary);
    margin: 0 auto;
    font-weight: 500;
  }
  .mock-body { padding: 22px; min-height: 380px; background: white; }
  .mock-section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sam-text-muted);
    font-weight: 600;
    margin: 0 0 10px 0;
  }
  .mock-row { display: flex; gap: 12px; margin-bottom: 18px; }
  .mock-kpi {
    flex: 1;
    background: linear-gradient(180deg, #FAFCFB 0%, #F4F8F6 100%);
    border-radius: 10px;
    padding: 14px;
    border: 1px solid rgba(29,158,117,0.08);
  }
  .mock-kpi-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--sam-text-muted);
    letter-spacing: 0.08em;
    font-weight: 600;
  }
  .mock-kpi-value {
    font-family: var(--ff-display);
    font-size: 26px;
    font-weight: 500;
    color: var(--sam-text-primary);
    font-variant-numeric: tabular-nums;
    margin-top: 4px;
    letter-spacing: -0.02em;
  }
  .mock-kpi-value .small { font-size: 13px; font-weight: 400; color: var(--sam-text-tertiary); margin-left: 4px; font-family: var(--ff-ui); }
  .mock-kpi-trend {
    margin-top: 8px;
    display: flex; align-items: center; gap: 6px;
    font-size: 11px;
    color: var(--sam-success-text);
    font-weight: 600;
  }
  .mock-table {
    background: linear-gradient(180deg, #FAFBFC 0%, #F4F6F8 100%);
    border-radius: 10px;
    padding: 14px;
    border: 1px solid var(--sam-border-soft);
  }
  .mock-tr {
    display: flex; gap: 8px; padding: 8px 0;
    align-items: center; font-size: 12px;
  }
  .mock-tr + .mock-tr { border-top: 1px solid rgba(0,0,0,0.04); }
  .mock-day { width: 50px; font-weight: 600; color: var(--sam-text-primary); font-size: 12px; }
  .pill {
    display: inline-flex; align-items: center;
    padding: 3px 9px;
    border-radius: var(--sam-r-pill);
    font-size: 10px; font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  .pill-prot { background: #DCEAFA; color: #1B4F8A; }
  .pill-cho  { background: #FBE2CB; color: #7E3712; }
  .pill-fat  { background: #E2DBF5; color: #312A6B; }
  .pill-fib  { background: #D1EAD5; color: #1F5824; }

  /* Floating sparkles around mockup */
  .hero-spark {
    position: absolute;
    pointer-events: none;
    z-index: 2;
  }
  .hero-spark.s1 { top: -20px; left: -30px; }
  .hero-spark.s2 { bottom: 40px; right: -40px; }
  .hero-spark.s3 { top: 50%; right: -60px; }

  /* ===== Logos strip (social proof) ===== */
  .logos-strip {
    background: white;
    border-top: 1px solid var(--sam-border-soft);
    border-bottom: 1px solid var(--sam-border-soft);
    padding: 36px 0;
  }
  .logos-strip-inner {
    max-width: 1240px; margin: 0 auto;
    padding: 0 40px;
    display: flex; align-items: center; gap: 56px;
  }
  .logos-strip-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sam-text-muted);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .logos-row { display: flex; gap: 48px; flex-wrap: wrap; align-items: center; opacity: 0.55; }
  .logos-row span {
    font-family: var(--ff-display);
    font-size: 18px;
    color: var(--sam-text-secondary);
    letter-spacing: -0.01em;
  }

  /* ===== 3 PILLARS — with custom illustrations ===== */
  .pillars {
    max-width: 1240px; margin: 0 auto;
    padding: 128px 40px;
  }
  .section-eyebrow {
    text-align: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sam-green-dark);
    font-weight: 600;
    margin-bottom: 16px;
  }
  .section-title {
    font-family: var(--ff-display);
    font-size: 48px;
    font-weight: 400;
    color: var(--sam-text-primary);
    letter-spacing: -0.02em;
    margin: 0 auto 20px;
    text-align: center;
    max-width: 760px;
    line-height: 1.1;
  }
  .section-title em { font-style: italic; color: var(--sam-green-dark); }
  .section-sub {
    font-size: 18px;
    color: var(--sam-text-secondary);
    margin: 0 auto 72px;
    max-width: 580px;
    line-height: 1.5;
    text-align: center;
  }
  .pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  .pillar {
    padding: 36px 32px;
    background: var(--sam-card-bg);
    border: 1px solid var(--sam-border-hairline);
    border-radius: 18px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
  }
  .pillar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(29,158,117,0.4), transparent);
    opacity: 0;
    transition: opacity 0.2s;
  }
  .pillar:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -16px rgba(20,50,40,0.18);
    border-color: rgba(29,158,117,0.2);
  }
  .pillar:hover::before { opacity: 1; }
  .pillar-illustration {
    width: 100%;
    height: 140px;
    margin-bottom: 24px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #F4F8F6 0%, #FAFCFB 100%);
    border-radius: 12px;
    border: 1px solid rgba(29,158,117,0.06);
  }
  .pillar h3 {
    font-family: var(--ff-display);
    font-size: 22px;
    margin: 0 0 12px 0;
    color: var(--sam-text-primary);
    font-weight: 500;
    letter-spacing: -0.01em;
  }
  .pillar p {
    font-size: 15px;
    color: var(--sam-text-secondary);
    line-height: 1.55;
    margin: 0;
  }

  /* ===== PROOF — refined ===== */
  .proof {
    background:
      linear-gradient(135deg, #FAFCFB 0%, #EEF5F1 100%);
    padding: 88px 40px;
    border-top: 1px solid var(--sam-border-soft);
    border-bottom: 1px solid var(--sam-border-soft);
    position: relative;
    overflow: hidden;
  }
  .proof::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(29,158,117,0.06) 0%, transparent 70%);
  }
  .proof-inner {
    position: relative;
    max-width: 1100px; margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
  }
  .proof-card {
    padding: 24px 16px;
  }
  .proof-num {
    font-family: var(--ff-display);
    font-size: 56px;
    font-weight: 400;
    color: var(--sam-text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    line-height: 1;
  }
  .proof-num .unit { color: var(--sam-green-dark); font-style: italic; }
  .proof-label {
    font-size: 13px;
    color: var(--sam-text-secondary);
    margin-top: 12px;
    line-height: 1.45;
    font-weight: 500;
  }

  /* ===== WORKFLOW STEPPER ===== */
  .workflow {
    max-width: 1240px; margin: 0 auto;
    padding: 128px 40px;
  }
  .stepper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    position: relative;
  }
  .stepper::before {
    content: ''; position: absolute;
    top: 28px; left: 6%; right: 6%;
    height: 2px;
    background: linear-gradient(90deg,
      var(--sam-green) 0%, var(--sam-green) 25%,
      rgba(29,158,117,0.3) 100%);
    z-index: 0;
  }
  .step {
    position: relative; z-index: 1;
    text-align: center;
    padding: 0 8px;
  }
  .step-num {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--sam-green);
    color: var(--sam-green-dark);
    font-family: var(--ff-display);
    font-weight: 500;
    font-size: 22px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px -2px rgba(29,158,117,0.25);
  }
  .step h4 {
    font-family: var(--ff-display);
    font-size: 18px;
    margin: 0 0 8px 0;
    color: var(--sam-text-primary);
    font-weight: 500;
  }
  .step p {
    font-size: 14px;
    color: var(--sam-text-muted);
    margin: 0;
    line-height: 1.45;
  }

  /* ===== DARK ACCENT BAND — manifesto ===== */
  .dark-band {
    background:
      radial-gradient(at 30% 30%, #1A3D32 0%, #0E2520 60%);
    color: white;
    padding: 120px 40px;
    position: relative;
    overflow: hidden;
  }
  .dark-band::before {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(at 80% 70%, rgba(29,158,117,0.25) 0%, transparent 50%),
      radial-gradient(at 20% 80%, rgba(83,74,183,0.15) 0%, transparent 50%);
  }
  .dark-band-inner {
    position: relative;
    max-width: 880px; margin: 0 auto;
    text-align: center;
  }
  .dark-band h2 {
    font-family: var(--ff-display);
    font-size: 56px;
    font-weight: 400;
    color: white;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 28px 0;
  }
  .dark-band h2 em {
    font-style: italic;
    color: #5BD0A3;
  }
  .dark-band p {
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin: 0;
  }

  /* ===== PRICING — refined ===== */
  .pricing { background: var(--sam-bg-alt); padding: 128px 40px; }
  .pricing-inner { max-width: 1140px; margin: 0 auto; }
  .price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 64px;
  }
  .price-card {
    background: var(--sam-card-bg);
    border-radius: 18px;
    padding: 40px 32px;
    border: 1px solid var(--sam-border-hairline);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .price-card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(0,0,0,0.1); }
  .price-card.featured {
    border: none;
    box-shadow:
      0 0 0 2px var(--sam-green),
      0 24px 48px -16px rgba(29,158,117,0.3);
    background: linear-gradient(180deg, white 0%, #FAFCFB 100%);
  }
  .price-badge {
    position: absolute; top: -14px; left: 32px;
    background: linear-gradient(180deg, #22B084, var(--sam-green-dark));
    color: white;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--sam-r-pill);
    box-shadow: 0 4px 12px -2px rgba(29,158,117,0.4);
  }
  .price-name {
    font-family: var(--ff-display);
    font-size: 24px;
    font-weight: 500;
    color: var(--sam-text-primary);
    margin: 0;
    letter-spacing: -0.01em;
  }
  .price-tag {
    font-family: var(--ff-display);
    font-size: 52px;
    font-weight: 400;
    color: var(--sam-text-primary);
    margin: 20px 0 8px;
    letter-spacing: -0.03em;
    line-height: 1;
  }
  .price-tag .currency { font-size: 22px; vertical-align: top; color: var(--sam-text-secondary); margin-right: 4px; }
  .price-tag .period { font-size: 15px; color: var(--sam-text-secondary); font-weight: 400; font-family: var(--ff-ui); }
  .price-desc { font-size: 14px; color: var(--sam-text-muted); margin: 0 0 24px; line-height: 1.5; }
  .price-features {
    list-style: none; padding: 0; margin: 24px 0 28px;
    border-top: 1px solid var(--sam-border-soft);
    padding-top: 24px;
  }
  .price-features li {
    font-size: 14px;
    color: var(--sam-text-body);
    padding: 8px 0 8px 28px;
    position: relative;
  }
  .price-features li::before {
    content: '';
    position: absolute;
    left: 4px; top: 13px;
    width: 14px; height: 14px;
    background: var(--sam-green-50);
    border-radius: 50%;
  }
  .price-features li::after {
    content: '';
    position: absolute;
    left: 7px; top: 17px;
    width: 7px; height: 4px;
    border-left: 2px solid var(--sam-green-dark);
    border-bottom: 2px solid var(--sam-green-dark);
    transform: rotate(-45deg);
  }
  .price-cta {
    width: 100%;
    margin-top: 8px;
    padding: 13px;
    background: white;
    border: 1px solid var(--sam-border);
    border-radius: var(--sam-r-md);
    color: var(--sam-text-primary);
    font-family: var(--ff-ui);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
  }
  .price-cta:hover { border-color: var(--sam-text-primary); }
  .price-card.featured .price-cta {
    background: linear-gradient(180deg, #22B084 0%, var(--sam-green-dark) 100%);
    color: white;
    border: none;
    box-shadow: 0 6px 16px -4px rgba(29,158,117,0.4);
  }

  /* ===== FOOTER ===== */
  .landing-footer {
    background: #0F1A16;
    color: #B8C5C0;
    padding: 64px 40px 32px;
  }
  .footer-inner {
    max-width: 1240px; margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 64px;
  }
  .landing-footer h5 {
    color: white;
    font-size: 11px;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
  }
  .landing-footer a {
    color: #98A8A2;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    font-size: 14px;
    transition: color 0.15s;
  }
  .landing-footer a:hover { color: white; }
  .footer-bottom {
    max-width: 1240px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
    color: #6B7872;
    display: flex; justify-content: space-between;
  }

  /* ============================================================
     LOGIN — Split Cockpit (full-bleed)
     ============================================================ */
  .login-section {
    background: var(--sam-bg);
    padding: 0;
  }
  .login-page {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--sam-card-bg);
  }

  /* ----- LEFT panel — rich green with subtle pattern ----- */
  .login-left {
    background:
      radial-gradient(at 0% 0%, #22B088 0%, transparent 50%),
      radial-gradient(at 100% 100%, #0A7558 0%, transparent 60%),
      linear-gradient(135deg, #1D9E75 0%, #0E8F6A 100%);
    color: white;
    padding: 64px 8vw 64px 8vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
  }
  /* Limita la colonna di testo dentro il pannello sinistro per leggibilita' */
  .login-left > * { max-width: 520px; }
  /* Topographic line pattern */
  .login-left::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.08'%3E%3Ccircle cx='200' cy='200' r='80'/%3E%3Ccircle cx='200' cy='200' r='120'/%3E%3Ccircle cx='200' cy='200' r='160'/%3E%3Ccircle cx='200' cy='200' r='200'/%3E%3Ccircle cx='200' cy='200' r='240'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 600px 600px;
    background-position: -100px -100px;
  }
  .login-left::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 70%);
    bottom: -200px; right: -200px;
  }
  .login-brand {
    display: flex; align-items: center; gap: 14px;
    z-index: 1; position: relative;
  }
  .login-brand-text {
    font-family: var(--ff-display);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: white;
  }
  .login-brand-text .dot { color: #5BD0A3; }
  .login-brand-text .ia {
    color: rgba(255,255,255,0.72);
    font-weight: 400;
    margin-left: 1px;
  }
  .login-manifesto {
    z-index: 1; position: relative;
    margin: 64px 0;
  }
  .login-manifesto h2 {
    font-family: var(--ff-display);
    font-size: 44px;
    line-height: 1.1;
    font-weight: 400;
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
    color: white;
  }
  .login-manifesto h2 em {
    font-style: italic;
    color: #B8F0DC;
  }
  .login-manifesto p {
    font-size: 17px;
    line-height: 1.55;
    color: rgba(255,255,255,0.85);
    max-width: 440px;
    margin: 0;
  }
  .login-news {
    z-index: 1; position: relative;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 22px 26px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .login-news-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.65);
    font-weight: 600;
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 10px;
  }
  .login-news-label::before {
    content: '';
    width: 6px; height: 6px;
    background: #5BD0A3;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(91,208,163,0.25);
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }
  .login-news-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 10px;
  }
  .login-news-list li {
    font-size: 14px;
    color: rgba(255,255,255,0.92);
    padding-left: 22px;
    position: relative;
    line-height: 1.4;
  }
  .login-news-list li::before {
    content: '→';
    position: absolute; left: 0;
    color: rgba(255,255,255,0.45);
    font-weight: 600;
  }
  /* Avviso beta: paragrafo unico, piu' lirico delle bullet */
  .login-news-body {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.88);
    margin: 0;
  }
  .login-trust {
    z-index: 1; position: relative;
    display: flex; gap: 28px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
  }
  .login-trust span {
    display: inline-flex; align-items: center; gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
  }

  /* ----- RIGHT login form ----- */
  .login-right {
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    padding: 64px 8vw;
    position: relative;
    background:
      linear-gradient(135deg, white 0%, #FAFCFB 100%);
  }
  /* Card "piatta": niente chrome macOS, niente bordi visibili.
     Solo un'area di lavoro con respiro intorno e shadow soft. */
  .login-card {
    background: transparent;
    width: 100%;
    max-width: 400px;
    border: none;
    box-shadow: none;
    overflow: visible;
  }
  .login-card-body { padding: 0; }
  .login-card-body h3 {
    font-family: var(--ff-display);
    font-size: 28px;
    color: var(--sam-text-primary);
    margin: 0 0 8px 0;
    font-weight: 500;
    letter-spacing: -0.01em;
  }
  .login-card-body .greeting {
    font-size: 14px;
    color: var(--sam-text-muted);
    margin: 0 0 32px 0;
  }
  .field { margin-bottom: 20px; }
  .field label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sam-text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
  }
  /* `.field input` originale (prototipo): stile per <input> raw.
     Esclude gli input dentro Quasar q-field (gestiti dall'override
     in auth_ui.py _PAGE_HEAD), altrimenti si crea un doppio bordo:
     uno su .q-field__control e un altro sull'<input> interno. */
  .field > input,
  .field input:not(.q-field__native) {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--sam-border);
    border-radius: var(--sam-r-md);
    font-family: var(--ff-ui);
    font-size: 14px;
    background: white;
    color: var(--sam-text-primary);
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .field > input::placeholder,
  .field input:not(.q-field__native)::placeholder { color: var(--sam-text-hint); }
  .field > input:focus,
  .field input:not(.q-field__native):focus {
    outline: none;
    border-color: var(--sam-green);
    box-shadow: 0 0 0 4px rgba(29, 158, 117, 0.10);
  }
  .field-row {
    display: flex; align-items: center; justify-content: space-between;
    margin: 12px 0 28px 0;
    font-size: 13px;
  }
  .field-row label {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--sam-text-secondary);
    cursor: pointer;
    font-weight: 500;
  }
  .field-row a { color: var(--sam-green-dark); text-decoration: none; font-weight: 500; }
  .field-row a:hover { text-decoration: underline; }
  .login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(180deg, #22B084 0%, var(--sam-green-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--sam-r-md);
    font-family: var(--ff-ui);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow:
      0 1px 0 rgba(255,255,255,0.2) inset,
      0 6px 16px -4px rgba(29, 158, 117, 0.4);
    transition: transform 0.1s, box-shadow 0.15s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
  }
  .login-btn:hover {
    transform: translateY(-1px);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.2) inset,
      0 8px 20px -4px rgba(29, 158, 117, 0.5);
  }
  .login-status {
    margin-top: 32px;
    font-size: 11px;
    color: var(--sam-text-tertiary);
    display: flex; align-items: center; gap: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
  }
  .login-status .status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--sam-green);
    box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.18);
    animation: pulse 2s ease-in-out infinite;
  }

  /* responsive */
  @media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; gap: 56px; }
    .hero h1 { font-size: 44px; }
    .pillar-grid, .price-grid, .proof-inner { grid-template-columns: 1fr; }
    .stepper { grid-template-columns: 1fr; gap: 32px; }
    .stepper::before { display: none; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .login-page { grid-template-columns: 1fr; }
    .login-manifesto h2 { font-size: 32px; }
    .dark-band h2 { font-size: 36px; }
    .section-title { font-size: 36px; }
  }
