@font-face {
    font-family: "SignPainter";
    src: local("SignPainter-HouseScript"), local("SignPainter HouseScript"), local("SignPainter");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

.brebox-vendor-auth-page,
.brebox-vendor-auth-page * {
    box-sizing: border-box;
}

html:has(.brebox-vendor-auth-page),
body.brebox-vendor-auth-page {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
    color: #000;
    color-scheme: light;
    background: #fff;
    font-family: "Open Sans", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.brebox-vendor-auth-page,
.vendor-signup-page {
    --auth-navy: #00486c;
    --auth-navy-hover: #003854;
    --auth-teal: #008e97;
    --auth-lime: #cdf600;
    --auth-border: #d1d5db;
    --auth-placeholder: #9ca3af;
    --auth-danger: #ff4250;
}

.brebox-vendor-auth-page #phpdebugbar-openhandler,
.brebox-vendor-auth-page #phpdebugbar,
.brebox-vendor-auth-page .phpdebugbar-openhandler {
    display: none !important;
}

.vendor-auth-shell {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 419px minmax(0, 1fr);
    align-items: stretch;
    background: #fff;
}

.vendor-auth-body--login .vendor-auth-shell {
    min-height: 100vh;
}

.vendor-auth-aside {
    min-width: 0;
    padding: 47px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    background: #f3f8f7;
}

.vendor-auth-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
}

.vendor-auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    background: transparent;
    transition: opacity .18s ease;
    width: 100%;
}

.vendor-auth-logo:hover,
.vendor-auth-logo:focus-visible {
    opacity: 0.8;
}

.vendor-auth-logo img {
    width: 130px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.vendor-auth-intro {
    width: 100%;
    min-height: 245px;
}

.vendor-auth-eyebrow {
    display: block;
    margin: 0 0 12px;
    color: var(--auth-teal);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    text-transform: uppercase;
}

.vendor-auth-promise {
    width: 260px;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #000;
    font-size: 40px;
    font-weight: 800;
    line-height: 48px;
    letter-spacing: -.3px;
}

.vendor-auth-people {
    position: relative;
    z-index: 0;
}

.vendor-auth-people::before {
    content: "";
    position: absolute;
    left: 2px;
    right: 8px;
    bottom: 5px;
    height: 13px;
    background: #cdf600;
    opacity: .4;
    z-index: -1;
}

.vendor-auth-script {
    width: 218px;
    height: 58px;
    margin-top: 7px;
    color: var(--auth-teal);
    font-family: "SignPainter", "Yellowtail", "Mistral", "Brush Script MT", cursive;
    font-size: 55px;
    font-weight: 400;
    line-height: 58px;
    letter-spacing: -.4px;
    white-space: nowrap;
}

.vendor-auth-intro p {
    width: 342px;
    max-width: 100%;
    margin: 0;
    color: rgba(0, 0, 0, .7);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -.16px;
}

.vendor-auth-links {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.vendor-auth-link,
.vendor-auth-link:link,
.vendor-auth-link:visited {
    width: 100%;
    height: 46px;
    padding: 13px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-radius: 6px;
    color: #000;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: -.16px;
    text-decoration: none;
    transition: background-color .18s ease, box-shadow .18s ease;
}

.vendor-auth-link:hover,
.vendor-auth-link:focus-visible {
    color: #000;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
    text-decoration: none;
}

.vendor-auth-link__label {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.vendor-auth-link__label > svg {
    width: 20px;
    height: 20px;
    flex: none;
    color: var(--auth-teal);
}

.vendor-auth-link > svg {
    width: 13px;
    height: 13px;
    flex: none;
}

.vendor-auth-main {
    min-width: 0;
    min-height: 0;
    padding: 100px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #fff;
}

.vendor-auth-panel {
    width: 400px;
    max-width: 100%;
    background: #fff;
}

.vendor-auth-panel--login {
    width: 550px;
}

.vendor-auth-flow,
.vendor-auth-request,
.vendor-auth-inbox {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
}

.vendor-auth-inbox[hidden],
.vendor-auth-request[hidden],
.vendor-auth-toast[hidden] {
    display: none !important;
}

.vendor-auth-home,
.vendor-auth-home:link,
.vendor-auth-home:visited,
.vendor-auth-back,
.vendor-auth-back:link,
.vendor-auth-back:visited,
.vendor-auth-register,
.vendor-auth-register:link,
.vendor-auth-register:visited {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--auth-navy);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: -.16px;
    text-decoration: none;
}

.vendor-auth-home:hover,
.vendor-auth-home:focus-visible,
.vendor-auth-back:hover,
.vendor-auth-back:focus-visible,
.vendor-auth-register:hover,
.vendor-auth-register:focus-visible {
    color: var(--auth-navy-hover);
    text-decoration: underline;
}

.vendor-auth-home i,
.vendor-auth-back i,
.vendor-auth-register i {
    font-size: 18px;
}

.vendor-auth-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.vendor-auth-heading h1 {
    margin: 0;
    color: #000;
    font-size: 32px;
    font-weight: 700;
    line-height: 38px;
    letter-spacing: -.2px;
}

.vendor-auth-heading p {
    width: 100%;
    margin: 0;
    color: rgba(0, 0, 0, .8);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -.16px;
}

.vendor-auth-heading strong {
    font-weight: 700;
}

.vendor-auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    background: #fff;
}

.vendor-auth-field {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
}

.vendor-auth-field label {
    margin: 0;
    color: rgba(0, 0, 0, .8);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: -.16px;
}

.vendor-auth-field input {
    width: 100%;
    height: 48px;
    min-height: 48px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    outline: none;
    color: #111827;
    background: #fff !important;
    box-shadow: none;
    font: 400 14px/20px "Open Sans", Arial, sans-serif;
    letter-spacing: -.16px;
    color-scheme: light;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.vendor-auth-field input::placeholder {
    color: var(--auth-placeholder);
    opacity: 1;
}

.vendor-auth-field input:hover {
    border-color: #9ca3af;
}

.vendor-auth-field input:focus {
    border-color: var(--auth-navy);
    box-shadow: none;
}

.vendor-auth-field input:-webkit-autofill,
.vendor-auth-field input:-webkit-autofill:hover,
.vendor-auth-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: #111827;
    box-shadow: 0 0 0 1000px #fff inset !important;
    transition: background-color 9999s ease-out 0s;
}

.vendor-auth-field.has-error input,
.vendor-auth-field input[aria-invalid="true"] {
    border-color: var(--auth-danger);
    box-shadow: none;
}

.vendor-auth-error {
    min-height: 0;
    margin: 0;
    color: var(--auth-danger);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

.vendor-auth-error:empty {
    display: none;
}

.vendor-auth-password {
    position: relative;
    display: block;
}

.vendor-auth-password input {
    padding-right: 48px;
}

.vendor-auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    color: #000;
    background: transparent;
    cursor: pointer;
}

.vendor-auth-password-toggle:hover,
.vendor-auth-password-toggle:focus-visible {
    color: var(--auth-navy);
    background: #f3f8f7;
}

.vendor-auth-field small {
    margin: 0;
    color: #4b5563;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: -.12px;
}

.vendor-auth-options {
    min-height: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vendor-auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(0, 0, 0, .8);
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -.16px;
    cursor: pointer;
}

.brebox-vendor-auth-page .brebox-auth-checkbox,
.vendor-signup-page .brebox-auth-checkbox {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    display: inline-block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    min-height: 16px;
    margin: 2px 0 0;
    padding: 0;
    border: 1px solid #bfcfda;
    border-radius: 4px;
    background: #fff;
    opacity: 1;
    cursor: pointer;
}

.brebox-auth-checkbox:checked {
    border-color: var(--auth-navy) !important;
    background-color: var(--auth-navy) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.brebox-auth-checkbox:focus-visible {
    outline: 2px solid var(--auth-navy);
    outline-offset: 2px;
}

.brebox-auth-checkbox[aria-invalid="true"] {
    border-color: #b42335;
}

.vendor-auth-forgot,
.vendor-auth-forgot:link,
.vendor-auth-forgot:visited {
    color: var(--auth-navy);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: -.16px;
    text-decoration: none;
}

.vendor-auth-forgot:hover,
.vendor-auth-forgot:focus-visible {
    color: var(--auth-navy-hover);
    text-decoration: underline;
}

.vendor-auth-primary {
    width: 100%;
    height: 50px;
    min-height: 50px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--auth-navy);
    border-radius: 48px;
    color: #fff;
    background: var(--auth-navy);
    font: 700 15px/20px "Open Sans", Arial, sans-serif;
    letter-spacing: -.16px;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.vendor-auth-primary:hover:not(:disabled),
.vendor-auth-primary:focus-visible:not(:disabled),
.vendor-auth-primary:active:not(:disabled) {
    border-color: var(--auth-navy-hover);
    background: var(--auth-navy-hover);
    box-shadow: none;
}

.vendor-auth-primary:disabled {
    cursor: wait;
    opacity: .68;
}

.vendor-auth-divider {
    height: 16px;
    margin: 0;
    color: rgba(75, 85, 99, .8);
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: -.12px;
    text-align: center;
    text-transform: uppercase;
}

.vendor-auth-socials {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.vendor-auth-social,
.vendor-auth-social:link,
.vendor-auth-social:visited {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    color: #000;
    background: #fff;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.vendor-auth-social:hover,
.vendor-auth-social:focus-visible {
    border-color: var(--auth-navy);
    box-shadow: 0 4px 12px rgba(0, 72, 108, .12);
}

.vendor-auth-social img {
    width: 24px;
    max-height: 27px;
    object-fit: contain;
}

.vendor-auth-register {
    align-self: center;
}

.vendor-auth-back {
    align-self: center;
}

.vendor-auth-back--left {
    align-self: flex-start;
}

.vendor-auth-status {
    min-height: 0;
    margin: -12px 0 0;
    color: var(--auth-danger);
    font-size: 12px;
    line-height: 16px;
    text-align: center;
}

.vendor-auth-status:empty {
    display: none;
}

/* Author-level flex/grid rules must not reveal the inactive login mode. */
.brebox-vendor-auth-page [hidden] {
    display: none !important;
}

.vendor-auth-otp {
    display: grid;
    gap: 16px;
    margin-top: 8px;
}

.vendor-auth-otp .vendor-auth-heading h1 {
    font-size: 20px;
}

.vendor-auth-otp .vendor-auth-heading p {
    margin-bottom: 0;
}

.vendor-auth-otp-toggle,
.vendor-auth-otp-channels .vendor-otp-channel {
    justify-content: center;
    gap: 8px;
}

.vendor-auth-otp-toggle {
    width: 100%;
}

.vendor-auth-otp-channels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.vendor-auth-otp-channels .vendor-otp-channel {
    width: 100%;
}

.vendor-otp-channel.active {
    border-color: var(--auth-navy);
    background: #e2effa;
    color: var(--auth-navy);
}

#vendor-otp-code-wrap {
    display: grid;
    gap: 16px;
}

.vendor-auth-otp .vendor-auth-status {
    margin: 0;
}

.vendor-auth-otp__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.vendor-auth-otp__footer .vendor-auth-forgot {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.vendor-auth-toast {
    position: fixed;
    z-index: 10000;
    top: 30px;
    right: 30px;
    width: 378px;
    max-width: calc(100vw - 40px);
    min-height: 83px;
    padding: 19px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 20px;
    align-items: start;
    gap: 16px;

}

.vendor-auth-toast,
.brebox-vendor-signup-page #toast-container > .toast-success {
    border: 1px solid #36c7b5;
    border-radius: 12px;
    color: #2f3f53;
    background: #f3fffa;
    box-shadow: 0 4px 16px rgba(16, 11, 39, .08);
}

.vendor-auth-toast__icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #fff;
    background: #4cc7b7;
    font-size: 12px;
}

.vendor-auth-toast__copy {
    min-width: 0;
}

.vendor-auth-toast__copy strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}

.vendor-auth-toast__copy span {
    display: block;
    font-size: 12px;
    line-height: 19px;
}

.vendor-auth-toast__close {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    color: #8b98a8;
    background: transparent;
    font-size: 22px;
    line-height: 18px;
    cursor: pointer;
}

.vendor-auth-hidden-captcha {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.vendor-auth-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.vendor-auth-page-message {
    margin: 0;
    color: var(--auth-danger);
    font-size: 12px;
    line-height: 16px;
}

.brebox-vendor-auth-page a:focus-visible,
.brebox-vendor-auth-page button:focus-visible {
    outline: 2px solid var(--auth-navy);
    outline-offset: 2px;
}

@media (max-width: 1100px) {
    .vendor-auth-shell {
        grid-template-columns: 360px minmax(0, 1fr);
    }

    .vendor-auth-aside {
        padding-inline: 36px;
    }

    .vendor-auth-main {
        padding-inline: 36px;
    }
}

@media (max-width: 900px) {
    .vendor-auth-shell,
    .vendor-auth-body--login .vendor-auth-shell {
        min-height: 100vh;
        grid-template-columns: minmax(0, 1fr);
    }

    .vendor-auth-aside {
        min-height: auto;
        padding: 28px 32px;
        gap: 28px;
    }

    .vendor-auth-brand {
        display: grid;
        grid-template-columns: 148px minmax(0, 1fr);
        align-items: start;
        gap: 32px;
    }

    .vendor-auth-intro {
        min-height: 0;
    }

    .vendor-auth-eyebrow {
        margin-bottom: 7px;
    }

    .vendor-auth-promise {
        width: auto;
        margin-bottom: 8px;
        display: block;
        font-size: 28px;
        line-height: 35px;
    }

    .vendor-auth-people {
        margin-left: 6px;
    }


    .vendor-auth-script {
        display: block;
        width: 180px;
        height: 44px;
        margin-top: 1px;
        font-size: 38px;
        line-height: 44px;
    }

    .vendor-auth-intro p {
        width: auto;
        margin-top: 3px;
    }

    .vendor-auth-links {
        flex-direction: row;
    }

    .vendor-auth-link {
        flex: 1 1 0;
    }

    .vendor-auth-main {
        min-height: auto;
        padding: 56px 32px 72px;
        align-items: flex-start;
    }

    .vendor-auth-desktop-break {
        display: none;
    }
}

@media (max-width: 620px) {
    .vendor-auth-aside {
        padding: 24px;
    }

    .vendor-auth-brand {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .vendor-auth-promise {
        font-size: 27px;
        line-height: 34px;
    }

    .vendor-auth-script {
        font-size: 37px;
        line-height: 43px;
    }

    .vendor-auth-links {
        flex-direction: column;
        gap: 6px;
    }

    .vendor-auth-link {
        flex: none;
    }

    .vendor-auth-main {
        padding: 40px 24px 56px;
    }

    .vendor-auth-heading h1 {
        font-size: 27px;
        line-height: 34px;
    }

    .vendor-auth-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .vendor-auth-toast {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 390px) {
    .vendor-auth-aside,
    .vendor-auth-main {
        padding-inline: 18px;
    }

    .vendor-auth-heading h1 {
        font-size: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brebox-vendor-auth-page *,
    .brebox-vendor-auth-page *::before,
    .brebox-vendor-auth-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* Both vendor entry points share a viewport-sized sidebar and a scrolling form. */
@media (min-width: 901px) {
    .vendor-auth-shell,
    .vendor-auth-body--login .vendor-auth-shell,
    .vendor-signup-page,
    .vendor-signup-page.is-step-two {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    .vendor-auth-aside {
        min-height: 0;
        padding-block: clamp(16px, 5vh, 47px);
        gap: clamp(16px, 5vh, 48px);
    }

    .vendor-auth-main,
    .vendor-signup-page .vendor-signup-main {
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        padding-block: clamp(32px, 8vh, 100px);
    }

    .vendor-auth-panel,
    .vendor-signup-main > .vendor-signup-form {
        flex-shrink: 0;
        margin-block: auto;
    }
}

@media (min-width: 901px) and (max-height: 700px) {
    .vendor-auth-brand { gap: 20px; }
    .vendor-auth-intro { min-height: 0; }
    .vendor-auth-promise { font-size: 32px; line-height: 38px; }
    .vendor-auth-script { height: 46px; font-size: 44px; line-height: 46px; }
}

@media (min-width: 901px) and (max-height: 540px) {
    .vendor-auth-brand { gap: 8px; }
    .vendor-auth-aside { padding-block: 8px; gap: 8px; }
    .vendor-auth-eyebrow { margin-bottom: 4px; }
    .vendor-auth-promise { font-size: 26px; line-height: 30px; }
    .vendor-auth-script { height: 34px; font-size: 32px; line-height: 34px; margin-top: 0; }
    .vendor-auth-intro p { font-size: 12px; line-height: 16px; }
}

.brebox-vendor-signup-page #toast-container.toast-top-right {
    top: 30px;
    right: 30px;
}

.brebox-vendor-signup-page #toast-container > .toast-success {
    width: 378px;
    max-width: calc(100vw - 40px);
    min-height: 83px;
    padding: 19px 44px 19px 60px;
    background-image: none !important;
    opacity: 1;
    font-family: "Open Sans", Arial, sans-serif;
}

.brebox-vendor-signup-page #toast-container > .toast-success::before {
    content: "";
    position: absolute;
    top: 19px;
    left: 19px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    color: #fff;
    background: #4cc7b7 url('../img/lucide/check-white.svg') center / 16px 16px no-repeat;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
}

.brebox-vendor-signup-page #toast-container .toast-title {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 20px;
}

.brebox-vendor-signup-page #toast-container .toast-message {
    font-size: 12px;
    line-height: 19px;
}

.brebox-vendor-signup-page #toast-container .toast-close-button {
    position: absolute;
    top: 19px;
    right: 19px;
    color: #8b98a8;
    text-shadow: none;
}

@media (max-width: 620px) {
    .brebox-vendor-signup-page #toast-container.toast-top-right {
        top: 20px;
        right: 20px;
    }
}

@media (min-width: 901px) and (max-height: 420px) {
    .vendor-auth-intro p { display: none; }
    .vendor-auth-links { gap: 4px; }
    .vendor-auth-link { height: 40px; padding-block: 10px; }
}
