  :root{
    --ink:#221f1a;
    --ink-soft:#847c72;
    --ink-faint:#b8afa2;
    --paper:#f9f6f0;
    --paper-card:#ffffff;
    --line:#eae3d6;
    --plum-1:#3c2350;
    --plum-2:#6a3f9e;
    --focus:#6a3f9e;
    --radius-card:22px;
    --radius-field:12px;
    --ease:cubic-bezier(.22,.61,.36,1);
    --card-height:min(446px, calc(100vh - 165px));
  }

  /* animatable theme tokens for the wholesaler stage */
  @property --stage-tint   { syntax:'<color>'; inherits:true; initial-value:#f7f1e4; }
  @property --stage-tint-2 { syntax:'<color>'; inherits:true; initial-value:#fbf8f3; }
  @property --stage-accent { syntax:'<color>'; inherits:true; initial-value:#c9a265; }
  @property --stage-soft   { syntax:'<color>'; inherits:true; initial-value:#efe3c9; }
  @property --stage-deep   { syntax:'<color>'; inherits:true; initial-value:#8a6b34; }
  @property --stage-glow   { syntax:'<color>'; inherits:true; initial-value:rgba(215,160,70,0.45); }

  *{box-sizing:border-box;}
  html,body{
    height:100%;
    margin:0;
    padding:0;
    overflow:hidden;
  }
  body{
    font-family:'Instrument Sans',sans-serif;
    color:var(--ink);
    background:var(--paper);
    -webkit-font-smoothing:antialiased;
  }
  ::selection{ background:#d8c6ee; }
  a{color:inherit;}
  button{font-family:inherit;}

  input:focus-visible,
  button:focus-visible,
  a:focus-visible{
    outline:2px solid var(--focus);
    outline-offset:3px;
    border-radius:8px;
  }

  .page{
    height:100vh;
    max-height:100vh;
    overflow:hidden;
    display:grid;
    grid-template-columns:40% 60%;
  }

  /* ============ LEFT — AUTH ============ */
  .auth{
    height:100vh;
    min-height:100vh;
    overflow-y:auto;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px 20px;
    background:
      radial-gradient(85% 65% at 100% 50%, color-mix(in srgb, var(--stage-glow, #c9a265) 20%, transparent), transparent 72%),
      radial-gradient(120% 90% at 15% 0%, #ffffff 0%, var(--paper) 62%);
    position:relative;
    transition:background 1.1s var(--ease);
  }
  .auth__inner{
    position:relative;
    width:100%;
    max-width:440px;
    display:flex;
    flex-direction:column;
    align-items:center;
    margin:auto 0;
  }

  .brand{
    position:relative;
    margin:0 auto 12px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px;
  }
  .brand__mark{ flex:none; }
  .brand__word{
    font-family:'Fraunces',serif;
    font-weight:600;
    font-size:26px;
    line-height:1.02;
    letter-spacing:.2px;
    color:var(--ink);
  }
  .brand__word small{
    display:block;
    font-family:'Inter',sans-serif;
    font-weight:600;
    font-size:11.5px;
    letter-spacing:5px;
    color:var(--ink-soft);
    margin-top:5px;
  }

  .auth__card{
    width:100%;
    height:auto;
    min-height:auto;
    max-height:none;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    background:var(--paper-card);
    border:1px solid var(--line);
    border-radius:var(--radius-card);
    padding:26px 28px 24px;
    box-shadow:0 1px 2px rgba(34,31,26,.03), 0 24px 48px -28px rgba(60,35,80,.18);
    margin-bottom:12px;
  }
  .auth__card h1{
    font-family:'Fraunces',serif;
    font-weight:500;
    font-size:26px;
    margin:0 0 4px;
  }
  .auth__sub{
    margin:0 0 14px;
    color:var(--ink-soft);
    font-size:13.5px;
    line-height:1.45;
  }

  .auth__footer{
    position:relative;
    margin:0 auto;
    text-align:center;
    width:100%;
  }

  .field-label{
    display:block;
    font-size:13px;
    font-weight:600;
    margin:0 0 8px;
    color:var(--ink);
  }
  .field-label .req{ color:#b0475c; margin-left:2px; }

  .field{
    position:relative;
    display:flex;
    align-items:center;
    background:#faf8f4;
    border:1px solid var(--line);
    border-radius:var(--radius-field);
    transition:border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
    margin-bottom:14px;
  }
  .field:focus-within{
    border-color:#c9b6e2;
    background:#fff;
    box-shadow:0 0 0 4px rgba(106,63,158,.09);
  }
  .field svg{ flex:none; margin-left:14px; color:var(--ink-faint); transition:color .2s; }
  .field:focus-within svg{ color:var(--plum-2); }
  .field input{
    width:100%;
    border:0;
    background:transparent;
    padding:13px 14px;
    font-size:14.5px;
    font-family:inherit;
    color:var(--ink);
  }
  .field input::placeholder{ color:var(--ink-faint); }
  .field input:focus{ outline:none; }
  .field input:focus-visible{ outline:none; }

  .eye-toggle{
    flex:none;
    background:none;
    border:0;
    padding:0 14px;
    cursor:pointer;
    color:var(--ink-faint);
    display:flex;
    align-items:center;
  }
  .eye-toggle:hover{ color:var(--ink-soft); }

  .auth__row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:18px;
  }
  .checkbox{
    display:flex;
    align-items:center;
    gap:9px;
    font-size:13.5px;
    color:var(--ink-soft);
    cursor:pointer;
    user-select:none;
  }
  .checkbox input{ position:absolute; opacity:0; width:18px; height:18px; margin:0; cursor:pointer; }
  .checkbox__box{
    width:18px; height:18px;
    border-radius:6px;
    border:1.5px solid #d6cdbd;
    background:#fff;
    display:flex; align-items:center; justify-content:center;
    transition:background .15s, border-color .15s;
    flex:none;
  }
  .checkbox__box svg{ opacity:0; transform:scale(.6); transition:opacity .15s, transform .15s; color:#fff; }
  .checkbox input:checked + .checkbox__box{ background:var(--plum-2); border-color:var(--plum-2); }
  .checkbox input:checked + .checkbox__box svg{ opacity:1; transform:scale(1); }
  .checkbox input:focus-visible + .checkbox__box{ outline:2px solid var(--focus); outline-offset:2px; }

  .link{
    font-size:13.5px;
    font-weight:600;
    color:var(--plum-2);
    text-decoration:none;
  }
  .link:hover{ text-decoration:underline; }

  .submit{
    width:100%;
    border:0;
    border-radius:var(--radius-field);
    padding:14px 16px;
    font-size:15px;
    font-weight:600;
    letter-spacing:.2px;
    color:#fff;
    background:linear-gradient(135deg,var(--plum-1),var(--plum-2) 68%,#8452b8);
    cursor:pointer;
    box-shadow:0 14px 24px -12px rgba(60,35,80,.55);
    transition:transform .15s var(--ease), box-shadow .15s var(--ease), filter .15s;
  }
  .submit:hover{ filter:brightness(1.06); box-shadow:0 18px 30px -12px rgba(60,35,80,.6); }
  .submit:active{ transform:translateY(1px); }

  .auth__foot{
    margin:12px 0 0;
    text-align:center;
    font-size:12px;
    color:var(--ink-faint);
    letter-spacing:.3px;
  }

  /* ============ RIGHT — WHOLESALER STAGE ============ */
  .stage{
    height:100vh;
    max-height:100vh;
    position:relative;
    overflow:hidden;
    background:
      radial-gradient(90% 110% at 76% 24%, var(--stage-glow, rgba(215, 160, 70, 0.45)) 0%, transparent 68%),
      radial-gradient(75% 75% at 20% 82%, var(--stage-soft, #efe3c9) 0%, transparent 65%),
      linear-gradient(155deg, var(--stage-tint-2, #fbf8f3), var(--stage-tint, #f7f1e4) 82%);
    transition:
      --stage-tint 1.1s var(--ease),
      --stage-tint-2 1.1s var(--ease),
      --stage-accent 1.1s var(--ease),
      --stage-soft 1.1s var(--ease),
      --stage-deep 1.1s var(--ease),
      --stage-glow 1.1s var(--ease);
  }

  .stage__particles{
    position:absolute; inset:0;
    pointer-events:none;
    z-index:2;
  }
  .spark{
    position:absolute;
    border-radius:50%;
    background:radial-gradient(circle, color-mix(in srgb, var(--stage-accent) 85%, white) 0%, transparent 70%);
    opacity:.35;
    filter:blur(.3px);
    animation:drift linear infinite;
    mix-blend-mode:multiply;
  }
  @keyframes drift{
    0%   { transform:translate(0,0) scale(1); opacity:0; }
    12%  { opacity:.4; }
    50%  { transform:translate(var(--dx,20px), calc(var(--dy,-40px)*0.5)) scale(1.15); }
    88%  { opacity:.4; }
    100% { transform:translate(calc(var(--dx,20px)*2), var(--dy,-90px)) scale(.9); opacity:0; }
  }

  .stage__track{
    position:relative;
    z-index:1;
    display:flex;
    height:100%;
    will-change:transform;
  }
  .stage__track.notransition{ transition:none !important; }

  .slide{
    position:relative;
    flex:0 0 100%;
    height:100%;
    max-height:100vh;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:0 2%;
    box-sizing:border-box;
  }

  .slide__glow{
    position:absolute;
    width:100%;
    max-width:920px;
    height:85%;
    border-radius:50%;
    filter:blur(65px);
    opacity:0.85;
    pointer-events:none;
    z-index:0;
    transform:scale(1.05);
  }

  .visual{
    position:relative;
    width:95%;
    max-width:860px;
    height:var(--card-height);
    max-height:var(--card-height);
    border-radius:22px;
    overflow:hidden;
    background:#ffffff;
    border:1px solid rgba(255,255,255,0.9);
    box-shadow:
      0 1px 0 rgba(255,255,255,.7) inset,
      0 28px 56px -20px color-mix(in srgb, var(--stage-deep) 42%, transparent);
    display:flex;
    flex-direction:column;
  }

  .visual__media{
    position:relative;
    width:100%;
    flex:1 1 auto;
    min-height:0;
    overflow:hidden;
    background:linear-gradient(155deg, color-mix(in srgb, var(--stage-soft) 70%, white), color-mix(in srgb, var(--stage-soft) 30%, white));
  }
  .visual__media img{
    position:absolute; inset:0;
    width:100%; height:100%;
    object-fit:cover;
    display:block;
  }
  .visual video{
    position:absolute; inset:0;
    width:100%; height:100%;
    object-fit:cover;
  }
  .visual__scene{
    position:absolute; inset:0;
    display:flex; align-items:center; justify-content:center;
  }
  .visual__scene svg{ width:64%; height:64%; opacity:.9; }
  .scene-shape{ animation:sway 14s ease-in-out infinite; transform-origin:center; }
  .scene-shape.alt{ animation-duration:18s; animation-delay:-4s; }
  @keyframes sway{
    0%,100%{ transform:translateY(0) rotate(0deg); }
    50%{ transform:translateY(-3%) rotate(1.2deg); }
  }

  .visual__sheen{
    position:absolute; inset:0;
    background:linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 48%, transparent 62%);
    background-size:220% 220%;
    animation:sheen 9s ease-in-out infinite;
    mix-blend-mode:screen;
    pointer-events:none;
  }
  @keyframes sheen{
    0%,100%{ background-position:0% 0%; }
    50%{ background-position:100% 100%; }
  }

  .visual__topbar{
    position:absolute;
    top:16px;
    left:18px;
    right:18px;
    z-index:3;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    pointer-events:none;
  }
  .visual__topbar > *{
    pointer-events:auto;
  }

  .visual__badge{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:6px 14px;
    border-radius:999px;
    background:rgba(20, 16, 26, 0.78);
    backdrop-filter:blur(14px) saturate(160%);
    -webkit-backdrop-filter:blur(14px) saturate(160%);
    border:1px solid color-mix(in srgb, var(--stage-accent) 60%, rgba(255,255,255,0.4));
    color:#fff8ed;
    font-size:11.5px;
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;
    box-shadow:0 6px 18px rgba(0,0,0,0.25);
    white-space:nowrap;
    flex-shrink:0;
  }
  .visual__badge-dot{
    width:6px;
    height:6px;
    border-radius:50%;
    background:var(--stage-accent, #e5be6b);
    box-shadow:0 0 8px var(--stage-accent, #ffd700);
    animation:pulse-badge 2s ease-in-out infinite;
  }
  @keyframes pulse-badge{
    0%,100%{ opacity:1; transform:scale(1); }
    50%{ opacity:0.35; transform:scale(0.8); }
  }

  .visual__tag-top{
    display:inline-flex;
    align-items:center;
    padding:5px 13px;
    border-radius:999px;
    background:rgba(255,255,255,0.85);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    border:1px solid rgba(255,255,255,0.9);
    color:var(--ink);
    font-size:11.5px;
    font-weight:600;
    letter-spacing:0.3px;
    box-shadow:0 4px 14px rgba(0,0,0,0.08);
    white-space:nowrap;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  /* ============ UNIFIED DOCK (ATTACHED FOOTER AT BOTTOM OF CARD) ============ */
  .visual__dock{
    position:relative;
    width:100%;
    z-index:4;
    padding:13px 22px;
    background:#ffffff;
    border-top:1px solid #ede5d8;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    transition:background .2s var(--ease);
  }

  .dock__content{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:5px;
  }
  .dock__header{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
  }
  .dock__title{
    font-family:'Fraunces',serif;
    font-weight:600;
    font-size:21px;
    color:var(--ink);
    margin:0;
    line-height:1.2;
    letter-spacing:-0.2px;
  }
  .dock__offer{
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-size:11.5px;
    font-weight:700;
    color:#7e4c05;
    background:linear-gradient(135deg, #fff2d3, #fedc9e);
    border:1px solid #efc56c;
    padding:3.5px 11px;
    border-radius:999px;
    letter-spacing:0.3px;
    box-shadow:0 2px 6px rgba(184, 134, 11, 0.15);
  }
  .dock__offer svg{ color:#c27803; }
  .dock__meta{
    display:flex;
    align-items:center;
    gap:14px;
    font-size:12.5px;
    color:var(--ink-soft);
  }
  .dock__location{
    display:inline-flex;
    align-items:center;
    gap:5px;
    color:var(--ink-soft);
    font-weight:500;
  }
  .dock__location svg{ color:color-mix(in srgb, var(--stage-deep) 80%, var(--ink) 20%); }

  .dock__btn{
    flex:none;
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:11px 20px;
    border-radius:999px;
    background:linear-gradient(135deg, color-mix(in srgb, var(--stage-deep) 85%, var(--ink) 15%), var(--ink));
    color:#ffffff;
    font-size:13px;
    font-weight:600;
    text-decoration:none;
    cursor:pointer;
    border:1px solid rgba(255,255,255,0.25);
    box-shadow:0 6px 18px -4px rgba(0,0,0,0.3);
    transition:transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
    white-space:nowrap;
  }
  .dock__btn svg{
    flex:none;
    transition:transform .25s var(--ease);
  }
  .dock__btn:hover{
    transform:translateY(-1px) scale(1.02);
    box-shadow:0 12px 24px -6px rgba(0,0,0,0.4);
    background:linear-gradient(135deg, color-mix(in srgb, var(--stage-accent) 95%, var(--stage-deep) 5%), var(--stage-deep));
  }
  .dock__btn:hover svg{
    transform:translateX(3px);
  }

  /* Carousel Arrows centered vertically on the advertisement */
  .stage__arrow{
    position:absolute;
    top:calc(50% - 14px);
    transform:translateY(-50%);
    z-index:10;
    width:42px;
    height:42px;
    border-radius:50%;
    border:1px solid rgba(255,255,255,0.85);
    background:rgba(255,255,255,0.72);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    color:var(--ink);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow:0 6px 18px rgba(0,0,0,0.1);
    transition:transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
  }
  .stage__arrow:hover{
    background:#ffffff;
    transform:translateY(-50%) scale(1.08);
    box-shadow:0 10px 24px rgba(0,0,0,0.16);
    color:var(--plum-1);
  }
  .stage__arrow:active{
    transform:translateY(-50%) scale(0.95);
  }
  .stage__arrow--prev{
    left:calc((100% - min(860px, 95%)) / 2 + 10px);
  }
  .stage__arrow--next{
    right:calc((100% - min(860px, 95%)) / 2 + 10px);
  }

  .stage__controls{
    position:absolute;
    left:0; right:0; bottom:10px;
    z-index:3;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px;
  }
  .dots{ display:flex; gap:8px; }
  .dot{
    width:8px; height:8px;
    border-radius:999px;
    border:0;
    padding:0;
    background:color-mix(in srgb, var(--stage-deep) 35%, white);
    cursor:pointer;
    transition:width .35s var(--ease), background .35s var(--ease);
  }
  .dot.is-active{ width:26px; background:color-mix(in srgb, var(--stage-deep) 80%, var(--ink) 20%); }

  .progress{
    width:160px; height:2px;
    border-radius:2px;
    background:color-mix(in srgb, var(--stage-deep) 18%, transparent);
    overflow:hidden;
  }
  .progress__bar{
    height:100%;
    width:0%;
    background:color-mix(in srgb, var(--stage-deep) 75%, var(--ink) 25%);
    animation:fill 6s linear forwards;
  }
  .progress__bar.paused{ animation-play-state:paused; }
  @keyframes fill{ from{ width:0%; } to{ width:100%; } }

  /* ============ RESPONSIVE: TABLETS & MOBILE ============ */
  @media (min-width:961px) and (max-width:1200px){
    .page{ grid-template-columns:40% 60%; }
    .auth{ padding:2vh 18px; }
    .auth__inner{ max-width:360px; }
    .auth__card{ padding:22px 22px; }
    .visual{ max-width:620px; }
    .stage__arrow--prev{ left:calc((100% - min(620px, 92%)) / 2 + 8px); }
    .stage__arrow--next{ right:calc((100% - min(620px, 92%)) / 2 + 8px); }
  }

  @media (max-width:960px){
    html, body{
      height:auto;
      min-height:100%;
      overflow-x:hidden;
      overflow-y:auto;
    }
    .page{
      height:auto;
      min-height:100vh;
      max-height:none;
      overflow:visible;
      display:flex;
      flex-direction:column;
    }
    .auth{
      height:auto;
      min-height:auto;
      max-height:none;
      overflow:visible;
      padding:44px 24px 36px;
    }
    .auth__inner{
      max-width:440px;
      margin:0 auto;
    }
    .brand{
      position:static;
      margin-bottom:18px;
    }
    .auth__card{
      height:auto;
      max-height:none;
      padding:28px 24px 22px;
    }
    .auth__footer{
      position:static;
      margin-top:14px;
    }
    
    .stage{
      height:auto;
      min-height:auto;
      max-height:none;
      overflow:hidden;
      padding:36px 20px 48px;
    }
    .slide{
      height:auto;
      max-height:none;
      padding:10px 0 20px;
    }
    .visual{
      height:auto;
      max-height:none;
    }
    .visual__media{
      aspect-ratio:16/10.5;
    }
    .visual__topbar{
      top:12px;
      left:14px;
      right:14px;
      gap:8px;
    }
    .visual{
      max-width:680px;
      margin:0 auto;
    }
    .stage__arrow{ top:calc(50% - 20px); }
    .stage__arrow--prev{ left:calc((100% - min(680px, 92%)) / 2 + 10px); }
    .stage__arrow--next{ right:calc((100% - min(680px, 92%)) / 2 + 10px); }
    .stage__controls{
      position:relative;
      bottom:auto;
      margin-top:24px;
    }
  }

  @media (max-width:768px){
    .visual__topbar{
      top:10px;
      left:12px;
      right:12px;
      flex-direction:column;
      align-items:flex-start;
      gap:6px;
    }
    .visual__badge{
      font-size:10px;
      padding:4.5px 11px;
      letter-spacing:0.6px;
    }
    .visual__tag-top{
      font-size:10px;
      padding:4.5px 10px;
      max-width:calc(100% - 16px);
      background:rgba(255,255,255,0.92);
    }
  }

  @media (max-width:640px){
    .auth{ padding:32px 16px 24px; }
    .auth__card{ padding:24px 18px; border-radius:18px; }
    .auth__card h1{ font-size:23px; }
    .brand{ margin-bottom:20px; }
    .brand__mark{ height:48px !important; }
    
    .stage{ padding:24px 12px 36px; }
    .stage__arrow{ width:34px; height:34px; top:calc(50% - 24px); }
    .stage__arrow svg{ width:16px; height:16px; }
    .stage__arrow--prev{ left:8px; }
    .stage__arrow--next{ right:8px; }
    .visual{ border-radius:18px; }
    .visual__media{ aspect-ratio:16/10.5; }
    .visual__topbar{
      top:8px;
      left:10px;
      right:10px;
      flex-direction:column;
      align-items:flex-start;
      gap:5px;
    }
    .visual__badge{
      font-size:9px;
      padding:4px 9px;
      letter-spacing:0.5px;
    }
    .visual__tag-top{
      font-size:9px;
      padding:3.5px 8px;
      max-width:calc(100% - 10px);
      background:rgba(255,255,255,0.92);
    }
    .visual__dock{
      padding:12px 14px;
      flex-direction:column;
      align-items:stretch;
      gap:10px;
    }
    .dock__header{
      flex-direction:column;
      align-items:flex-start;
      gap:6px;
    }
    .dock__title{ font-size:18px; }
    .dock__offer{
      font-size:10.5px;
      width:100%;
      justify-content:center;
      text-align:center;
    }
    .dock__meta{ font-size:11px; }
    .dock__btn{
      width:100%;
      justify-content:center;
      padding:10px;
      font-size:12px;
    }
  }

  @media (prefers-reduced-motion:reduce){
    .scene-shape, .visual__sheen, .spark{ animation:none !important; }
    .stage__track{ transition:none !important; }
    .stage{ transition:none !important; }
  }
