@import url('./sani_theme.css');
:root{--account-navy:var(--sani-primary-deep);--account-ink:var(--sani-ink);--account-blue:var(--sani-primary);--account-muted:var(--sani-muted);--account-white:var(--sani-white);--account-line:var(--sani-line);--account-surface:var(--sani-surface-soft);--account-ease:var(--sani-ease)}
*,*::before,*::after{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:'DM Sans',Arial,sans-serif;color:var(--account-ink);background:var(--account-white)}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--sani-accent);outline-offset:3px}[hidden]{display:none!important}
/* Wine themed interpretation of the split-screen reference; no layout changes to the storefront. */
.sani-auth-page{min-height:100dvh;padding:clamp(10px,2.5vw,26px);display:grid;place-items:center;background:var(--account-surface)}
.auth-layout{width:min(100%,1440px);height:min(920px,calc(100dvh - clamp(20px,5vw,52px)));min-height:620px;display:grid;grid-template-columns:minmax(0,1.07fr) minmax(390px,.93fr);overflow:hidden;border-radius:22px;background:var(--account-white);box-shadow:0 25px 90px rgba(17,30,52,.12)}
.auth-story{position:relative;min-width:0;display:flex;flex-direction:column;justify-content:space-between;padding:clamp(28px,4vw,65px);background:var(--account-navy) url('../pics/sani-vineyard-table.webp') center center/cover no-repeat;color:white;isolation:isolate}
.auth-story__shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(11,20,36,.75),rgba(11,20,36,.32) 85%),linear-gradient(0deg,rgba(11,20,36,.5),transparent 50%);z-index:-1}
.auth-story__brand{font:600 29px Georgia,serif;letter-spacing:.18em;width:max-content}.auth-story__brand small{font:700 10px 'DM Sans',sans-serif;letter-spacing:.24em;margin-left:7px}.auth-story__copy{max-width:565px;animation:auth-enter .7s var(--account-ease) both}.auth-story__copy span,.auth-story__foot{font:700 10px 'DM Sans',sans-serif;letter-spacing:.28em}.auth-story__copy h1{font:400 clamp(48px,5vw,78px)/1.02 Georgia,serif;letter-spacing:-.042em;margin:18px 0}.auth-story__copy h1 em{font-weight:400;color:#e7cdd2}.auth-story__copy p{font-size:clamp(13px,1.3vw,17px);line-height:1.7;max-width:400px}.auth-story__foot{opacity:.86}
.auth-panel{overflow:auto;overscroll-behavior:contain;display:grid;place-items:center;padding:clamp(26px,4vw,60px);background:var(--account-white)}.auth-panel__inner{width:min(100%,410px);animation:auth-enter .55s var(--account-ease) .07s both}.auth-mobile-brand{display:none}
.auth-tabs{display:inline-flex;gap:4px;border:1px solid var(--account-line);padding:4px;border-radius:100px;margin-bottom:clamp(23px,3.5vh,44px);background:var(--account-surface)}.auth-tabs a{padding:10px 24px;border-radius:100px;font-size:12px;font-weight:700;color:var(--account-muted);transition:background .2s,color .2s,box-shadow .2s}.auth-tabs a[aria-selected='true']{background:var(--account-white);color:var(--account-navy);box-shadow:0 3px 12px rgba(24,39,68,.10)}
.auth-eyebrow{font-size:10px;font-weight:800;color:var(--sani-accent);letter-spacing:.24em;margin:0 0 13px}.auth-panel h2{font:400 clamp(32px,3vw,43px)/1.14 Georgia,serif;letter-spacing:-.035em;margin:0 0 9px}.auth-subline{margin:0 0 30px;color:var(--account-muted);font-size:13px;line-height:1.65}.auth-form{display:grid;gap:8px}.auth-form>label:not(.auth-check){font-size:11px;font-weight:700;margin-top:9px}.sani-auth-field{width:100%;min-width:0;min-height:48px;padding:12px 14px;border:1px solid var(--account-line);border-radius:10px;background:var(--account-white);font-size:13px;color:var(--account-ink);transition:border-color .2s,box-shadow .2s}.sani-auth-field:focus{outline:none;border-color:var(--account-blue);box-shadow:0 0 0 3px rgba(38,58,102,.10)}.sani-auth-field::placeholder{color:#9097a3}.auth-form .errorlist{list-style:none;margin:0;padding:2px 0;color:var(--sani-danger);font-size:11px;line-height:1.5}.auth-errors{font-size:12px;color:var(--sani-danger);background:#fff4f6;padding:11px;border-radius:8px}
.auth-check{display:flex;gap:12px;align-items:center;font-size:12px;font-weight:500;color:var(--account-muted);margin:13px 0 7px}.auth-check input{width:16px;height:16px;accent-color:var(--account-blue)}.auth-submit{position:relative;display:flex;justify-content:center;align-items:center;gap:10px;border:0;min-height:52px;width:100%;background:var(--account-blue);color:white;font-size:12px;font-weight:700;border-radius:10px;margin-top:18px;transition:transform .2s,background .2s,box-shadow .2s}.auth-submit:hover{transform:translateY(-1px);background:var(--account-navy);box-shadow:0 13px 25px rgba(29,47,78,.16)}.auth-submit:disabled{cursor:wait;opacity:.9}.auth-submit.is-loading::after,.dash-order__edit button.is-loading::after{content:'';width:13px;height:13px;border-radius:50%;border:2px solid rgba(255,255,255,.5);border-top-color:white;animation:auth-spin .7s linear infinite}.auth-submit span{font-size:24px;line-height:0}.auth-switch{font-size:12px;color:var(--account-muted);text-align:center;margin:22px 0 0}.auth-switch a,.auth-privacy a{color:var(--account-blue);font-weight:700}.auth-privacy{font-size:10px;color:var(--account-muted);margin:34px 0 0;line-height:1.5;text-align:center}
/* Accessible, responsive staff dashboard. */
.sani-dashboard-page{background:var(--account-surface);min-height:100dvh;display:flex;flex-direction:column}.dash-header{height:80px;display:flex;align-items:center;justify-content:space-between;gap:15px;background:var(--account-white);border-bottom:1px solid var(--account-line);padding:0 clamp(18px,5vw,78px)}.dash-brand{font:600 26px Georgia,serif;letter-spacing:.16em;white-space:nowrap}.dash-brand small{font:700 9px 'DM Sans',sans-serif;letter-spacing:.25em}.dash-top-links{display:flex;align-items:center;gap:clamp(12px,3vw,32px);font-size:12px;font-weight:700}.dash-top-links form{margin:0}.dash-top-links button{background:transparent;border:1px solid var(--account-line);padding:11px 17px;border-radius:9px;color:var(--account-blue);font-size:12px}.dash-shell{width:min(1300px,100%);flex:1;margin:0 auto;padding:clamp(24px,4vw,58px) clamp(15px,4vw,45px)}.dash-eyebrow{font-size:10px;font-weight:800;letter-spacing:.19em;color:var(--sani-accent)}.dash-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:5px 0 24px}.dash-intro h1,.dash-customer h1{font:400 clamp(40px,5vw,70px)/1 Georgia,serif;letter-spacing:-.05em;margin:8px 0}.dash-intro h1 em,.dash-customer h1 em{font-weight:400;color:var(--account-blue)}.dash-intro p{font-size:13px;color:var(--account-muted)}.dash-staff-label{font:700 10px 'DM Sans',sans-serif;letter-spacing:.11em;background:var(--account-white);border:1px solid var(--account-line);border-radius:100px;padding:12px 15px;white-space:nowrap}.dash-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:28px 0 42px}.dash-stats>div{background:white;border:1px solid var(--account-line);border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:15px}.dash-stats small{color:var(--account-muted);font:700 10px 'DM Sans',sans-serif;letter-spacing:.12em}.dash-stats strong{font:500 44px Georgia,serif}.dash-table-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px}.dash-table-heading h2{font:400 29px Georgia,serif;margin:0}.dash-table-heading form{display:flex;gap:8px}.dash-table-heading input{width:min(260px,55vw);padding:12px;border:1px solid var(--account-line);border-radius:9px}.dash-table-heading button,.dash-order__edit button,.dash-shop-button{padding:12px 17px;border:0;background:var(--account-blue);border-radius:9px;color:white;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:9px}.dash-orders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.dash-order{background:var(--account-white);border:1px solid var(--account-line);border-radius:16px;padding:20px;min-width:0;transition:box-shadow .2s,transform .2s}.dash-order:hover{box-shadow:var(--sani-shadow);transform:translateY(-2px)}.dash-order__top,.dash-order__details{display:flex;justify-content:space-between;gap:12px;align-items:center}.dash-order__top strong{font-size:16px}.dash-order__top small{display:block;margin-top:5px;font-size:11px;color:var(--account-muted)}.dash-price{font:500 24px Georgia,serif;white-space:nowrap}.dash-order__contact{display:flex;flex-direction:column;gap:5px;margin-top:16px;font-size:12px;overflow-wrap:anywhere}.dash-order__contact span:first-child{font-weight:800}.dash-order__details{justify-content:flex-start;flex-wrap:wrap;margin:15px 0;border-bottom:1px solid var(--account-line);padding-bottom:14px;color:var(--account-muted);font-size:11px}.dash-order__details span{background:var(--account-surface);border-radius:5px;padding:6px 8px}.dash-order__edit{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:end}.dash-order__edit label{font-size:10px;font-weight:700}.dash-order__edit select{display:block;width:100%;margin-top:7px;padding:12px 6px;border:1px solid var(--account-line);background:white;border-radius:7px;font-size:11px}.dash-order__edit button{min-height:41px;white-space:nowrap}.dash-pages{display:flex;align-items:center;justify-content:center;gap:20px;margin:30px auto;font-size:12px}.dash-pages a{color:var(--account-blue);font-weight:800}.dash-fineprint{display:block;color:var(--account-muted);font-size:11px;line-height:1.7;margin-top:30px}.dash-customer{max-width:750px;min-height:460px;display:flex;flex-direction:column;justify-content:center}.dash-customer p{max-width:390px;color:var(--account-muted);line-height:1.65}.dash-shop-button{width:max-content;margin-top:15px;padding:16px 25px}.dash-footer{padding:23px clamp(18px,5vw,78px);font-size:10px;letter-spacing:.14em;display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--account-line);color:var(--account-muted)}.dash-empty,.dash-messages{padding:24px;background:white;border:1px solid var(--account-line);border-radius:12px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@keyframes auth-enter{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}@keyframes auth-spin{to{transform:rotate(360deg)}}
[data-sani-reveal]{animation:auth-enter .6s var(--account-ease) both}
@media(max-width:900px){.auth-layout{grid-template-columns:1fr 1fr}.auth-story{padding:34px}.auth-story__copy h1{font-size:49px}.auth-panel{padding:25px}.dash-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.sani-auth-page{display:block;padding:0}.auth-layout{width:100%;height:auto;min-height:100dvh;display:flex;flex-direction:column;border-radius:0;overflow:visible;box-shadow:none}.auth-story{min-height:200px;height:26dvh;max-height:270px;flex:none;padding:22px 25px;background-position:50% 49%}.auth-story__brand,.auth-story__foot{display:none}.auth-story__copy span,.auth-story__copy p{display:none}.auth-story__copy h1{font-size:clamp(30px,7vw,47px);max-width:320px;margin:0}.auth-panel{overflow:visible;display:block;flex:1;margin-top:-24px;padding:26px 27px 34px;background:white;border-radius:25px 25px 0 0;position:relative;z-index:1}.auth-mobile-brand{display:block;font:600 22px Georgia,serif;letter-spacing:.15em;margin-bottom:22px}.auth-mobile-brand small{font:700 8px 'DM Sans',sans-serif}.auth-panel__inner{max-width:450px;margin:auto}.auth-tabs{margin-bottom:20px}.auth-panel h2{font-size:34px}.auth-subline{margin-bottom:17px}.sani-auth-field{min-height:44px}.auth-form{gap:5px}.auth-submit{margin-top:13px}.auth-privacy{margin-top:17px}.dash-header{height:72px}.dash-top-links>a:nth-child(2){display:none}.dash-orders{grid-template-columns:1fr}.dash-stats{gap:9px}.dash-stats>div{padding:17px}.dash-stats strong{font-size:34px}.dash-table-heading{flex-direction:column;align-items:stretch}.dash-table-heading form{width:100%}.dash-table-heading input{width:100%;flex:1;min-width:0}.dash-order__edit{grid-template-columns:1fr 1fr}.dash-order__edit button{grid-column:1/-1}.dash-footer{flex-wrap:wrap}.dash-intro{align-items:flex-start;flex-direction:column}}
@media(max-width:360px){.auth-story{min-height:160px}.auth-panel{padding:23px 19px}.auth-story__copy h1{font-size:30px}.auth-panel h2{font-size:29px}.dash-top-links{gap:8px}.dash-brand{font-size:20px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

/* SANI two-fix patch: mobile account page scrolls as a whole */
/* This stylesheet is loaded only by the login/register and dashboard pages. */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--account-blue) var(--account-surface);
}
html::-webkit-scrollbar, .auth-panel::-webkit-scrollbar { width: 7px; }
html::-webkit-scrollbar-track, .auth-panel::-webkit-scrollbar-track {
  background: var(--account-surface);
}
html::-webkit-scrollbar-thumb, .auth-panel::-webkit-scrollbar-thumb {
  background: var(--account-blue);
  border-radius: 12px;
  border: 1px solid var(--account-surface);
}
.auth-panel { scrollbar-color: var(--account-blue) var(--account-surface); scrollbar-width: thin; }
@media (max-width: 700px) {
  html { height: auto !important; overflow-y: auto !important; overscroll-behavior-y: auto; }
  body.sani-auth-page {
    display: block !important;
    height: auto !important;
    min-height: 100dvh;
    overflow: visible !important;
    overscroll-behavior-y: auto;
  }
  body.sani-auth-page .auth-layout {
    display: flex;
    flex-direction: column;
    height: auto !important;
    min-height: 100dvh;
    max-height: none !important;
    overflow: visible !important;
  }
  body.sani-auth-page .auth-story {
    height: clamp(250px, 45svh, 420px) !important;
    min-height: clamp(250px, 45svh, 420px) !important;
    max-height: none !important;
    flex: 0 0 auto;
    background-position: center 55%;
  }
  body.sani-auth-page .auth-panel {
    display: block;
    position: relative;
    flex: 1 0 auto;
    height: auto !important;
    max-height: none !important;
    min-height: 0;
    margin-top: 0 !important;
    overflow: visible !important;
    overscroll-behavior-y: auto !important;
    border-radius: 25px 25px 0 0;
  }
  body.sani-auth-page .auth-panel__inner { overflow: visible !important; }
}

/* Targeted account refinement: visible image on mobile, one natural page scroll. */
.auth-google-divider{display:flex;align-items:center;gap:12px;margin:22px 0 14px;color:var(--account-muted);font-size:12px;}
.auth-google-divider::before,.auth-google-divider::after{content:"";height:1px;flex:1;background:var(--account-line);}
.auth-google{width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;gap:11px;border:1px solid var(--account-line);background:var(--account-white);color:var(--account-ink);border-radius:11px;font:600 12px 'DM Sans',Arial,sans-serif;}
.auth-google[disabled]{cursor:not-allowed;opacity:.8;}
.auth-google small{color:var(--account-muted);font-weight:500;font-size:10px;}
@media(max-width:700px){
  body.sani-auth-page .auth-story{height:clamp(285px,46svh,420px)!important;min-height:clamp(285px,46svh,420px)!important;}
  body.sani-auth-page .auth-panel{margin-top:0!important;overflow:visible!important;}
  body.sani-auth-page{overflow-x:hidden!important;}
}
