/* Customer authentication only; no homepage or admin selectors. */
.site-shell .auth-page { width: 100%; max-width: 480px; margin: 16px auto 24px; min-width: 0; }
.site-shell .auth-page .auth-card {
    padding: 36px; border: 1px solid var(--st-border); border-radius: 6px;
    background: var(--st-surface); box-shadow: none; overflow-wrap: anywhere;
}
.site-shell .auth-page .auth-heading { text-align: center; margin-bottom: 28px; }
.site-shell .auth-page .auth-heading h1 { font-size: 23px; font-weight: 800; line-height: 1.7; margin: 0; }
.site-shell .auth-page .auth-heading p { font-size: 13px; margin: 8px 0 0; }
.site-shell .auth-page .auth-logo { display: flex; justify-content: center; margin-bottom: 24px; }
.site-shell .auth-page .auth-icon {
    display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px;
    border-radius: 6px; background: var(--sf-mint); color: var(--sf-mint-ink);
}
.site-shell .auth-page .auth-methods {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
    padding: 5px; background: var(--st-surface-2); border-radius: 6px; margin-bottom: 24px;
}
.site-shell .auth-page .auth-methods .st-btn { padding: 10px 6px; min-width: 0; min-height: 44px; font-size: 12.5px; background: transparent; color: var(--st-text-2); white-space: normal; }
.site-shell .auth-page .auth-methods .is-selected { background: var(--sf-mint); color: var(--sf-mint-ink); }
.site-shell .auth-page .st-field { margin-bottom: 18px; min-width: 0; }
.site-shell .auth-page .st-label { display: block; font-size: 13px; margin-bottom: 7px; }
.site-shell .auth-page .st-input { width: 100%; min-width: 0; min-height: 48px; border-radius: 5px; padding: 11px 12px; font-size: 14px; }
.site-shell .auth-page .auth-phone { text-align: left; }
.site-shell .auth-page .auth-code { text-align: center; letter-spacing: 8px; font-size: 22px; font-weight: 700; }
.site-shell .auth-page .st-input.is-invalid { border-color: var(--st-danger); }
.site-shell .auth-page .st-field__error { display: block; font-size: 12px; margin: 6px 0 12px; }
.site-shell .auth-page .st-btn--block { min-height: 48px; height: auto; padding: 12px; white-space: normal; }
.site-shell .auth-page .st-btn--ghost { color: var(--st-primary); }
.site-shell .auth-page :is(.auth-help, .auth-footer) a { color: var(--st-primary); font-weight: 700; }
.site-shell .auth-page :is(.auth-help, .auth-footer) a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-shell .auth-page .auth-help { font-size: 12.5px; margin-bottom: 18px; }
.site-shell .auth-page .auth-footer { text-align: center; font-size: 13px; }
.site-shell .auth-page .st-divider { margin: 24px 0; background: var(--st-border); }
.site-shell .auth-page .st-alert { align-items: flex-start; border-radius: 5px; padding: 12px; margin-bottom: 18px; font-size: 13px; }
.site-shell .auth-page .st-alert > svg { flex-shrink: 0; margin-top: 3px; }
.site-shell .auth-page .auth-registration-notice { flex-wrap: wrap; }
.site-shell .auth-page .auth-registration-notice > div { min-width: 160px; }
.site-shell .auth-page .auth-registration-notice > a { margin-inline-start: auto; }
.site-shell .auth-page .auth-code-notice { background: var(--st-surface-2); border-radius: 5px; text-align: center; padding: 12px; margin-bottom: 18px; }
.site-shell .auth-page .auth-expired { color: var(--st-danger); font-weight: 700; }
.site-shell .auth-page .auth-code-notice p { margin: 0; }
.site-shell .auth-page .auth-code-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; margin-bottom: 18px; }
.site-shell .auth-page .auth-code-meta .st-btn { min-height: 40px; white-space: normal; }
.site-shell .auth-page .auth-secondary { text-align: center; margin-top: 12px; }
.site-shell .auth-page .auth-secondary .st-btn { min-height: 44px; font-size: 12.5px; }
@media (max-width: 767px) {
    .site-shell .auth-page { margin: 0 auto; }
    .site-shell .auth-page .auth-card { padding: 28px 20px; }
    .site-shell .auth-page .auth-heading h1 { font-size: 20px; }
    .site-shell .auth-page .st-input { font-size: 16px; }
    .site-shell .auth-page .auth-code { font-size: 22px; }
}
@media (max-width: 360px) {
    .site-shell .auth-page .auth-card { padding: 24px 14px; }
    .site-shell .auth-page .auth-methods .st-btn { font-size: 11.5px; gap: 4px; }
}

/* ToastHost is a sibling of StoreLayout's shell. Limit recovery feedback styles
   to a currently rendered customer auth page; never affect the admin host. */
.site-shell:has(.auth-page) ~ .vz-toasts {
    position: fixed; inset: auto 24px 24px auto; z-index: 300;
    width: min(380px, calc(100vw - 48px)); display: grid; gap: 10px;
    max-height: calc(100dvh - 48px); overflow-y: auto; font-family: var(--vz-font);
}
.site-shell:has(.auth-page) ~ .vz-toasts .vz-toast {
    display: flex; align-items: flex-start; gap: 10px; padding: 14px;
    border: 1px solid #a7e5d9; border-radius: 6px; background: #fff; color: #353535;
    box-shadow: 0 4px 18px #00000014; line-height: 1.8;
}
.site-shell:has(.auth-page) ~ .vz-toasts .vz-toast__icon { flex: 0 0 24px; color: #187e78; padding-top: 3px; }
.site-shell:has(.auth-page) ~ .vz-toasts .vz-toast__body { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.site-shell:has(.auth-page) ~ .vz-toasts .vz-toast__close { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; background: transparent; color: inherit; border: 0; border-radius: 5px; cursor: pointer; }
.site-shell:has(.auth-page) ~ .vz-toasts .vz-toast__close:focus-visible { outline: 2px solid #187e78; outline-offset: -2px; }
:root[data-theme="dark"] .site-shell:has(.auth-page) ~ .vz-toasts .vz-toast { background: #202729; color: #eef5f3; border-color: #46695f; }
:root[data-theme="dark"] .site-shell:has(.auth-page) ~ .vz-toasts .vz-toast__icon { color: #76d9c8; }
@media (max-width: 767px) {
    .site-shell:has(.auth-page) ~ .vz-toasts { inset: auto 16px calc(84px + env(safe-area-inset-bottom)) 16px; width: auto; max-height: calc(100dvh - 120px - env(safe-area-inset-bottom)); }
}
