/* Shared account forms only. No authentication, consent or provider behaviour changes. */
@layer glass {
 body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog){--auth-paper:#f7f3e9;--auth-ink:#2f3428;--auth-muted:#62684e;--auth-olive:#686e4c;--auth-line:#c5c6b3}
 body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog){background:#f7f3e9!important;color:#2f3428!important;border:1px solid #dedbcc!important;border-radius:3px!important;box-shadow:0 24px 80px rgb(28 34 22 / .28)!important;scrollbar-color:#a3a68d #eee8da!important}
 body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog)::before{background-image:url('/home/olive-logo.svg')!important}
 body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog)>h2{color:#2f3428!important;font-family:var(--sv-serif)!important;letter-spacing:-.035em!important;line-height:1.1!important}
 body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog) .auth-dialog{color:#2f3428!important}
 body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog) :is(.auth-lede,.muted,.hint,.tiny,.fk-label,.checkline,.checkline span,.social-signin__or){color:#62684e!important}
 body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog) .modal__close{color:#2f3428!important;border-color:#c5c6b3!important;background:transparent!important;border-radius:2px!important;min-width:44px!important;min-height:44px!important}
 body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog) .auth-path{border-color:#c5c6b3!important;background:#eee8da!important;border-radius:3px!important}
 body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog) .auth-path__option{background:transparent!important;color:#62684e!important;border-radius:2px!important;min-height:44px!important}
 body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog) .auth-path__option[aria-pressed=true]{background:#686e4c!important;color:#fff!important}
 body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog) .auth-dialog input:not([type=checkbox]):not([type=radio]){background:#fffcf5!important;color:#2f3428!important;-webkit-text-fill-color:#2f3428!important;caret-color:#2f3428!important;color-scheme:light;border:1px solid #a3a68d!important;border-radius:3px!important;box-shadow:none!important;min-height:48px!important}
 /* Autofilled values and password dots must use the same ink as typed text. */
 body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog) .auth-dialog input:not([type=checkbox]):not([type=radio]):is(:autofill,:-webkit-autofill){-webkit-text-fill-color:#2f3428!important;caret-color:#2f3428!important;box-shadow:0 0 0 1000px #fffcf5 inset!important}
 body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog) .auth-dialog input::placeholder{color:#70745f!important;-webkit-text-fill-color:#70745f!important;opacity:1!important}
 body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog) .auth-dialog :is(.btn--primary,button[type=submit]){background:#686e4c!important;border-color:#686e4c!important;color:#fff!important;border-radius:3px!important;min-height:48px!important;font-weight:500!important}
 body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog) .auth-dialog :is(a,.linkish){color:#4e5438!important;text-underline-offset:3px!important}
 body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog) .social-signin__button{background:#fffcf5!important;color:#2f3428!important;border-color:#a3a68d!important;border-radius:3px!important;min-height:48px!important}
 body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog) .auth-dialog :is(.field-error,[role=alert],.error){color:#8e3029!important}
 body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog) :focus-visible{outline:2px solid #686e4c!important;outline-offset:3px!important}
 body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog) .auth-dialog input[aria-invalid=true]{border-color:#8e3029!important}
 @media(max-width:600px){body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog){padding:26px 20px 22px!important;width:100%!important;min-width:0!important}body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog) .auth-dialog input:not([type=checkbox]):not([type=radio]){font-size:16px!important}}
 @media(prefers-reduced-motion:reduce){body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog),body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog) *{animation:none!important;transition:none!important}}
}

@layer glass {body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog) .auth-dialog .password-control__toggle{color:#62684e!important;background:transparent!important}body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog) .auth-dialog input[type=checkbox]{accent-color:#686e4c!important}}

/* A calm, editorial companion to the account form. It is decorative; the
   real form, labels and provider availability remain the source of truth. */
@layer glass {
 body.souvenna-auth-home .modal-backdrop[data-auth-context=home]:has(.auth-dialog){justify-content:center!important;gap:0!important}
 body.souvenna-auth-home .modal-backdrop[data-auth-context=home] .auth-feature{position:relative;flex:0 1 390px;height:min(650px,calc(100dvh - 150px));min-height:430px;overflow:hidden;border-radius:18px 0 0 18px;background:#3c4738;box-shadow:0 25px 70px rgb(28 34 22 / .24);pointer-events:none}
 body.souvenna-auth-home .auth-feature img{width:100%;height:100%;object-fit:cover}
 body.souvenna-auth-home .auth-feature::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(24,32,25,.78),transparent 62%)}
 body.souvenna-auth-home .auth-feature__copy{position:absolute;z-index:1;left:32px;right:32px;bottom:35px;color:white}
 body.souvenna-auth-home .auth-feature__copy span{font:600 10px/1.2 var(--sv-sans,sans-serif);letter-spacing:.17em}
 body.souvenna-auth-home .auth-feature__title{margin:12px 0 0;color:white;font:400 clamp(28px,3vw,39px)/1.06 var(--sv-serif,serif);letter-spacing:-.025em}
 body.souvenna-auth-home .modal-backdrop[data-auth-context=home] .modal:has(.auth-dialog){border-radius:0 18px 18px 0!important;box-shadow:0 25px 70px rgb(28 34 22 / .24)!important}
 body.souvenna-auth-home .modal-backdrop[data-auth-context=home] .auth-dialog :is(button,a,input){transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
 body.souvenna-auth-home .modal-backdrop[data-auth-context=home] .auth-dialog button:active{transform:scale(.985)}
 @media(max-width:800px){body.souvenna-auth-home .modal-backdrop[data-auth-context=home] .auth-feature{display:none}body.souvenna-auth-home .modal-backdrop[data-auth-context=home] .modal:has(.auth-dialog){border-radius:16px!important}}
 @media(prefers-reduced-motion:reduce){body.souvenna-auth-home .modal-backdrop[data-auth-context=home] .auth-dialog :is(button,a,input){transition:none!important}body.souvenna-auth-home .modal-backdrop[data-auth-context=home] .auth-dialog button:active{transform:none}}
}
@layer glass {
 body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog) .auth-dialog a.social-btn--apple{color:#fff!important;background:#000!important}
 body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog) .auth-dialog a.social-btn--facebook{color:#fff!important;background:#1666d8!important}
 body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog) .auth-dialog a.social-btn--google{color:#1f1f1f!important;background:#fff!important}
}

/* A portrait floats over the quiet account card, while all controls remain
   in the real dialog and use the same sign-in and account logic. */
@layer glass {
 body.souvenna-auth-home .modal-backdrop[data-auth-context=home]:has(.auth-dialog){padding:38px 24px!important;isolation:isolate}
 /* The portrait and form already provide surfaces; no extra backing slab. */
 body.souvenna-auth-home .modal-backdrop[data-auth-context=home]:has(.auth-dialog)::before{content:none}
 body.souvenna-auth-home .modal-backdrop[data-auth-context=home] .auth-feature{z-index:1;flex:0 1 340px;height:min(700px,calc(100dvh - 80px));min-height:450px;border-radius:20px!important;box-shadow:0 25px 55px rgb(27 34 25 / .28);margin-right:16px}
 body.souvenna-auth-home .modal-backdrop[data-auth-context=home] .auth-feature img.auth-feature__image{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;transition:opacity .38s ease;opacity:0}
 body.souvenna-auth-home [data-auth-role=couple] .auth-feature__image--couple,body.souvenna-auth-home [data-auth-role=vendor] .auth-feature__image--vendor{opacity:1!important}
 body.souvenna-auth-home .auth-feature::after{background:linear-gradient(0deg,rgba(18,29,22,.82),rgba(22,30,23,.05) 75%)}
 body.souvenna-auth-home .auth-feature__copy{left:30px;right:30px;bottom:36px}
 body.souvenna-auth-home .auth-feature__title{max-width:10ch;font-size:clamp(32px,3.3vw,45px)}
 body.souvenna-auth-home .modal-backdrop[data-auth-context=home] .modal:has(.auth-dialog){z-index:2;width:min(100%,460px)!important;max-height:calc(100dvh - 64px)!important;padding:30px 36px 28px!important;border-radius:20px!important;box-shadow:0 18px 55px rgb(28 34 22 / .13)!important}
 body.souvenna-auth-home [data-auth-context=home] .modal:has(.auth-dialog)::before{width:108px!important;height:42px!important;margin-bottom:14px!important}
 body.souvenna-auth-home [data-auth-context=home] .modal:has(.auth-dialog)>h2{font-size:34px!important;margin-bottom:13px!important}
 /* 13 Nov 2026: home/auth.css sets this heading with a font variable that only exists on the home page; here it came out
    empty, so the heading fell back to the 14px body size. The size is stated outright, from a selector that wins. */
 body.souvenna-auth-home .modal-backdrop[data-auth-context=home] .modal:has(.auth-dialog)>h2{font-size:34px!important;font-weight:400!important;line-height:1.1!important}
 /* The passkey button sat directly on the Email label. */
 body.souvenna-auth-home .modal-backdrop[data-auth-context=home] .auth-dialog .passkey-signin{margin-bottom:16px!important}
 body.souvenna-auth-home [data-auth-context=home] .auth-mode-switch{display:flex;gap:24px;border-bottom:1px solid #d9d8c9;margin-bottom:16px}
 body.souvenna-auth-home [data-auth-context=home] .auth-mode-switch__option{position:relative;min-height:44px!important;padding:0 1px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#62684e!important;font:500 14px/1 var(--sv-sans,sans-serif)!important;cursor:pointer}
 body.souvenna-auth-home [data-auth-context=home] .auth-mode-switch__option[aria-pressed=true]{color:#303828!important}
 body.souvenna-auth-home [data-auth-context=home] .auth-mode-switch__option[aria-pressed=true]::after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#686e4c}
 body.souvenna-auth-home [data-auth-context=home] .auth-dialog .auth-path{margin-bottom:8px!important}
 body.souvenna-auth-home [data-auth-context=home] .auth-dialog .auth-lede{margin:10px 0 14px!important}
 body.souvenna-auth-home [data-auth-context=home] .auth-dialog .social-signin{display:grid!important;grid-template-columns:minmax(0,1fr);gap:8px;margin:0 0 14px!important}
 body.souvenna-auth-home [data-auth-context=home] .auth-dialog .social-btn{width:180px!important;min-width:140px;min-height:44px!important;justify-self:center;padding:0 5px!important;border-radius:6px!important;font:500 12px/1.2 var(--sv-sans,sans-serif)!important;text-decoration:none!important}
 body.souvenna-auth-home [data-auth-context=home] .auth-dialog .social-btn__icon{width:20px!important;height:20px!important;object-fit:contain!important;flex:none}
 body.souvenna-auth-home [data-auth-context=home] .auth-dialog .social-btn--apple .social-btn__icon{width:31px!important;height:44px!important}
 /* Apple keeps its own button (HIG): system font, 19px title (43% of 44px), one line, the button
    grows to fit instead of wrapping the title (9 Nov 2026, Stephen saw it on three lines). */
 body.souvenna-auth-home .modal-backdrop[data-auth-context=home] .modal:has(.auth-dialog) .auth-dialog .social-btn--apple[data-provider-button=apple]{width:auto!important;min-width:180px!important;max-width:100%!important;white-space:nowrap!important;padding:0 18px 0 6px!important;gap:4px!important;font:500 19px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif!important}
 body.souvenna-auth-home [data-auth-context=home] .auth-dialog .social-btn--google .social-btn__icon{width:180px!important;height:40px!important}
 body.souvenna-auth-home .modal-backdrop[data-auth-context=home] .modal:has(.auth-dialog) .auth-dialog button.social-btn.social-btn--unavailable:disabled{opacity:.58!important;cursor:not-allowed}
 body.souvenna-auth-home .modal-backdrop[data-auth-context=home] .modal:has(.auth-dialog) .auth-dialog button.social-btn--apple:disabled{background:#000!important;color:#fff!important;border-color:#000!important}
 body.souvenna-auth-home .modal-backdrop[data-auth-context=home] .modal:has(.auth-dialog) .auth-dialog button.social-btn--google:disabled{background:transparent!important;color:#1f1f1f!important;border-color:transparent!important}
 body.souvenna-auth-home .modal-backdrop[data-auth-context=home] .modal:has(.auth-dialog) .auth-dialog button.social-btn--facebook:disabled{background:#1666d8!important;color:#fff!important;border-color:#1666d8!important}
 body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog) .auth-dialog .social-btn--google{width:182px!important;min-width:182px!important;min-height:44px!important;justify-self:center;padding:0!important;background:transparent!important;border-color:transparent!important}
 body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog) .auth-dialog .social-btn--google .social-btn__icon{width:180px!important;height:40px!important;object-fit:contain!important;flex:none!important}
 body:not([data-auth-refinement-skip]):has(.auth-dialog) .modal-backdrop:has(.auth-dialog) .modal:has(.auth-dialog) .auth-dialog .social-btn__caption--in-image{display:none!important}
 body.souvenna-auth-home [data-auth-context=home] .auth-provider-note,body.souvenna-auth-home [data-auth-context=home] .social-signin__or{grid-column:1/-1;margin:2px 0 0!important;color:#656957!important;font:400 11px/1.4 var(--sv-sans,sans-serif)!important;text-align:center}
 @media(max-width:800px){
  body.souvenna-auth-home .modal-backdrop[data-auth-context=home]:has(.auth-dialog){flex-direction:column!important;justify-content:flex-start!important;align-items:center!important;padding:18px 12px!important}
  body.souvenna-auth-home .modal-backdrop[data-auth-context=home]:has(.auth-dialog)::before{display:none}
  body.souvenna-auth-home .modal-backdrop[data-auth-context=home] .auth-feature{display:block!important;flex:none;width:min(100%,460px);height:140px;min-height:0;margin:0 0 -16px;border-radius:17px!important}
  body.souvenna-auth-home .auth-feature__copy{left:20px;bottom:23px}
  body.souvenna-auth-home .auth-feature__copy span{font-size:9px}
  body.souvenna-auth-home .auth-feature__title{font-size:25px;max-width:none;margin-top:5px}
  body.souvenna-auth-home .modal-backdrop[data-auth-context=home] .modal:has(.auth-dialog){width:min(100%,460px)!important;max-height:calc(100dvh - 142px)!important;padding:22px 20px 24px!important;border-radius:16px!important}
 }
 @media(max-height:620px) and (min-width:801px){body.souvenna-auth-home .modal-backdrop[data-auth-context=home] .auth-feature{min-height:0;height:calc(100dvh - 56px)}}
 @media(prefers-reduced-motion:reduce){body.souvenna-auth-home .auth-feature img.auth-feature__image{transition:none!important}}
 html[data-motion=reduced] body.souvenna-auth-home .auth-feature img.auth-feature__image{transition:none!important}
 /* The app's global form rules must not restyle the shared homepage dialog. */
 body.souvenna-app.souvenna-auth-home .modal-backdrop[data-auth-context=home] .modal:has(.auth-dialog) .auth-dialog .field{display:grid!important;gap:7px!important;margin:0!important}
 body.souvenna-app.souvenna-auth-home .modal-backdrop[data-auth-context=home] .modal:has(.auth-dialog) .auth-dialog .fk-label{font-size:13px!important;line-height:1.5!important;margin:0!important;translate:none!important;scale:none!important}
 body.souvenna-app.souvenna-auth-home .modal-backdrop[data-auth-context=home] .modal:has(.auth-dialog) .auth-dialog input:not([type=checkbox]):not([type=radio]){height:48px!important;min-height:48px!important;padding:12px 14px!important}
 body.souvenna-app.souvenna-auth-home .modal-backdrop[data-auth-context=home] .modal:has(.auth-dialog) .auth-dialog .checkline .hint{font-size:11px!important;line-height:1.5!important}
 body.souvenna-app.souvenna-auth-home .modal-backdrop[data-auth-context=home] .modal:has(.auth-dialog) .auth-dialog .checkline>span{padding:0!important}
 /* 9 Nov 2026, Stephen: the gap around each accept line was too big. The 44px tap target stays; the
    text sits in the middle of it and the lines follow each other without extra margin. */
 body.souvenna-app.souvenna-auth-home .modal-backdrop[data-auth-context=home] .modal:has(.auth-dialog) .auth-dialog .checkline{margin:0!important;align-items:center!important;font-size:12px!important;line-height:1.5!important}
 body.souvenna-app.souvenna-auth-home .modal-backdrop[data-auth-context=home] .modal:has(.auth-dialog) .auth-dialog .checkline input[type=checkbox]{margin-top:0!important}
 body.souvenna-app.souvenna-auth-home .modal-backdrop[data-auth-context=home] .modal:has(.auth-dialog) .auth-dialog fieldset{margin:0!important}
 body.souvenna-app.souvenna-auth-home .modal-backdrop[data-auth-context=home] .modal:has(.auth-dialog) .auth-dialog legend{margin:0!important}
 body.souvenna-app.souvenna-auth-home .modal-backdrop[data-auth-context=home] .modal:has(.auth-dialog) .auth-dialog .checkline input[type=checkbox]{appearance:auto!important;width:18px!important;height:18px!important;min-height:0!important;margin:2px 0 0!important;flex:0 0 18px!important;accent-color:#686e4c!important}
}
