/* Polished isolated storefront login — V13 */

.mm-login-page,
.mm-login-page *,
.mm-login-page *::before,
.mm-login-page *::after{
    box-sizing:border-box;
}

.mm-login-page{
    --login-text:#171412;
    --login-muted:#756e69;
    --login-border:#ddd5cf;
    --login-accent:#1fbfc4;
    --login-accent-dark:#16aeb3;
    --login-danger:#b42318;
    min-height:72vh;
    padding:70px 0 88px;
    background:
        radial-gradient(circle at 50% 0%,rgba(245,239,234,.78),transparent 34%),
        #fff;
    color:var(--login-text);
}

.mm-login-wrap{
    width:min(100% - 32px,720px);
    margin:0 auto;
}

.mm-login-card{
    width:100%;
    padding:46px 54px 42px;
    border:1px solid #ece6e1;
    border-radius:24px;
    background:rgba(255,255,255,.96);
    box-shadow:0 18px 54px rgba(53,40,32,.08);
}

.mm-login-heading{
    margin-bottom:34px;
    text-align:center;
}

.mm-login-eyebrow{
    display:block;
    margin-bottom:9px;
    color:#a74832;
    font-size:10px;
    line-height:1;
    font-weight:750;
    letter-spacing:.22em;
}

.mm-login-heading h1{
    margin:0;
    font-family:Georgia,"Times New Roman",serif;
    font-size:44px;
    line-height:1.05;
    font-weight:600;
    letter-spacing:-.025em;
}

.mm-login-heading p{
    margin:14px auto 0;
    color:var(--login-muted);
    font-size:15px;
    line-height:1.6;
}

.mm-login-form{
    width:100%;
}

.mm-login-field{
    margin-bottom:17px;
}

.mm-login-field label{
    display:block;
    margin:0 0 8px;
    color:#2b2724;
    font-size:11px;
    line-height:1.2;
    font-weight:700;
    letter-spacing:.04em;
}

.mm-login-input-wrap{
    position:relative;
}

.mm-login-input-icon{
    position:absolute;
    left:16px;
    top:50%;
    z-index:2;
    width:22px;
    height:22px;
    display:grid;
    place-items:center;
    transform:translateY(-50%);
    color:#8b837d;
    pointer-events:none;
}

.mm-login-input-icon svg{
    width:20px;
    height:20px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.7;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.mm-login-field input{
    width:100%;
    height:58px;
    padding:0 52px 0 50px;
    border:1px solid var(--login-border);
    border-radius:14px;
    outline:none;
    background:#fff;
    color:var(--login-text);
    font:inherit;
    font-size:14px;
    line-height:1.4;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.mm-login-field input::placeholder{
    color:#a39a94;
    opacity:1;
}

.mm-login-field input:hover{
    border-color:#c9bbb1;
}

.mm-login-field input:focus{
    border-color:var(--login-accent);
    box-shadow:0 0 0 4px rgba(31,191,196,.11);
}

.mm-login-field input.is-invalid{
    border-color:var(--login-danger);
    background:#fffafa;
    box-shadow:0 0 0 3px rgba(180,35,24,.07);
}

.mm-password-toggle{
    position:absolute;
    right:10px;
    top:50%;
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    padding:0;
    border:0;
    border-radius:10px;
    background:transparent;
    color:#6f6862;
    transform:translateY(-50%);
    cursor:pointer;
}

.mm-password-toggle:hover{
    background:#f5f2ef;
    color:#191512;
}

.mm-password-toggle svg{
    width:20px;
    height:20px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.7;
}

.mm-login-field-error{
    display:block;
    min-height:18px;
    margin-top:6px;
    color:var(--login-danger);
    font-size:11px;
    line-height:1.35;
}

.mm-login-options{
    margin:2px 0 24px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    font-size:12px;
}

.mm-login-remember{
    position:relative;
    display:flex;
    align-items:center;
    gap:9px;
    cursor:pointer;
    user-select:none;
}

.mm-login-remember input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.mm-checkmark{
    width:18px;
    height:18px;
    display:grid;
    place-items:center;
    border:1px solid #c9c0ba;
    border-radius:5px;
    background:#fff;
    transition:.2s ease;
}

.mm-login-remember input:checked + .mm-checkmark{
    border-color:var(--login-accent);
    background:var(--login-accent);
}

.mm-login-remember input:checked + .mm-checkmark::after{
    content:"";
    width:7px;
    height:4px;
    border-left:2px solid #fff;
    border-bottom:2px solid #fff;
    transform:rotate(-45deg) translateY(-1px);
}

.mm-login-forgot,
.mm-login-register a{
    color:#8c5c50;
    text-decoration:none;
}

.mm-login-forgot:hover,
.mm-login-register a:hover{
    text-decoration:underline;
}

.mm-login-submit{
    width:100%;
    height:58px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    border:0;
    border-radius:14px;
    background:linear-gradient(135deg,var(--login-accent),#31c9ce);
    color:#fff;
    font:inherit;
    font-size:14px;
    line-height:1;
    font-weight:700;
    letter-spacing:.08em;
    cursor:pointer;
    box-shadow:0 10px 24px rgba(31,191,196,.18);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}

.mm-login-submit svg{
    width:18px;
    height:18px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.9;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.mm-login-submit:hover{
    filter:brightness(.98);
    transform:translateY(-1px);
    box-shadow:0 13px 28px rgba(31,191,196,.24);
}

.mm-login-submit:active{
    transform:translateY(0);
}

.mm-login-divider{
    position:relative;
    margin:28px 0 20px;
    text-align:center;
}

.mm-login-divider::before{
    content:"";
    position:absolute;
    left:0;
    right:0;
    top:50%;
    height:1px;
    background:#eee8e3;
}

.mm-login-divider span{
    position:relative;
    z-index:1;
    padding:0 12px;
    background:#fff;
    color:#a39a94;
    font-size:11px;
}

.mm-login-register{
    margin:0;
    text-align:center;
    color:#6f6862;
    font-size:12px;
    line-height:1.5;
}

.mm-login-alert,
.mm-login-success{
    margin:0 0 22px;
    padding:14px 16px;
    border-radius:12px;
    font-size:12px;
    line-height:1.45;
}

.mm-login-alert{
    display:flex;
    gap:10px;
    align-items:flex-start;
    border:1px solid #f0c6bf;
    background:#fff6f4;
    color:#8f3024;
}

.mm-login-alert-icon{
    width:22px;
    height:22px;
    flex:0 0 auto;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#b42318;
    color:#fff;
    font-weight:800;
}

.mm-login-alert p{
    margin:1px 0 0;
}

.mm-login-alert p + p{
    margin-top:4px;
}

.mm-login-success{
    border:1px solid #c7e5d6;
    background:#f4fbf7;
    color:#25674a;
}

@media(max-width:760px){
    .mm-login-page{
        padding:44px 0 60px;
    }

    .mm-login-wrap{
        width:min(100% - 24px,620px);
    }

    .mm-login-card{
        padding:34px 24px 30px;
        border-radius:20px;
    }

    .mm-login-heading{
        margin-bottom:28px;
    }

    .mm-login-heading h1{
        font-size:38px;
    }

    .mm-login-heading p{
        font-size:13px;
    }

    .mm-login-field input,
    .mm-login-submit{
        height:54px;
    }
}

@media(max-width:480px){
    .mm-login-page{
        padding:28px 0 44px;
    }

    .mm-login-wrap{
        width:calc(100% - 18px);
    }

    .mm-login-card{
        padding:28px 16px 24px;
        border-radius:17px;
    }

    .mm-login-heading h1{
        font-size:34px;
    }

    .mm-login-options{
        align-items:flex-start;
        flex-direction:column;
        gap:12px;
    }

    .mm-login-field input{
        padding-left:46px;
    }

    .mm-login-input-icon{
        left:14px;
    }
}

@media(prefers-reduced-motion:reduce){
    .mm-login-field input,
    .mm-password-toggle,
    .mm-checkmark,
    .mm-login-submit{
        transition:none!important;
    }
}


/* =========================================================
   LOGIN PAGE — COLLECTIONS CIRCULAR SLIDER V14
   ========================================================= */

.mm-login-collections{
    position:relative;
    width:100%;
    padding:14px 54px 24px;
    /* Separate the collection divider from the login card in normal flow. */
    margin-bottom:clamp(20px, 3vw, 40px);
    border-top:1px solid #ece8e5;
    border-bottom:1px solid #ddd7d2;
    background:#fff;
    overflow:hidden;
}

.mm-login-collection-track{
    display:flex;
    align-items:flex-start;
    gap:24px;
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    padding:0 2px 4px;
    scroll-snap-type:x mandatory;
    scroll-behavior:smooth;
    overscroll-behavior-inline:contain;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
}

.mm-login-collection-track::-webkit-scrollbar{
    display:none;
}

.mm-login-collection-card{
    flex:0 0 190px;
    min-width:190px;
    max-width:190px;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    color:#111;
    text-decoration:none;
    scroll-snap-align:start;
    outline:none;
}

.mm-login-collection-media{
    display:block;
    width:190px;
    height:190px;
    overflow:hidden;
    border-radius:50%;
    background:#f2efec;
    border:1px solid #eee8e3;
    box-shadow:0 3px 14px rgba(30,24,20,.04);
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;
}

.mm-login-collection-media img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    object-position:center;
    transition:transform .38s cubic-bezier(.2,.65,.25,1);
}

.mm-login-collection-placeholder{
    display:grid;
    place-items:center;
    width:100%;
    height:100%;
    background:linear-gradient(145deg,#f9f0ea,#eadbd1);
    color:#a74832;
    font:600 50px/1 Georgia,"Times New Roman",serif;
}

.mm-login-collection-name{
    display:block;
    width:100%;
    margin-top:10px;
    color:#111;
    font-size:15px;
    line-height:1.25;
    font-weight:650;
    transition:color .2s ease;
}

.mm-login-collection-card:focus-visible{
    border-radius:14px;
    box-shadow:0 0 0 3px rgba(167,72,50,.14);
}

@media (hover:hover) and (pointer:fine){
    .mm-login-collection-card:hover .mm-login-collection-media{
        transform:translateY(-3px);
        border-color:#d8cbc2;
        box-shadow:0 10px 24px rgba(45,34,28,.10);
    }

    .mm-login-collection-card:hover .mm-login-collection-media img{
        transform:scale(1.045);
    }

    .mm-login-collection-card:hover .mm-login-collection-name{
        color:#a74832;
    }
}

.mm-login-collection-arrow{
    position:absolute;
    top:50%;
    z-index:8;
    width:46px;
    height:46px;
    margin-top:-30px;
    display:grid;
    place-items:center;
    padding:0;
    border:1px solid #ded8d3;
    border-radius:50%;
    background:#fff;
    color:#111;
    box-shadow:0 5px 18px rgba(36,29,25,.08);
    cursor:pointer;
    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease,
        opacity .2s ease;
}

.mm-login-collection-arrow svg{
    width:20px;
    height:20px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.mm-login-collection-prev{
    left:0;
}

.mm-login-collection-next{
    right:0;
}

.mm-login-collection-arrow:hover:not(:disabled),
.mm-login-collection-arrow:focus-visible:not(:disabled){
    background:#111;
    color:#fff;
    transform:scale(1.04);
}

.mm-login-collection-arrow:disabled{
    opacity:.28;
    cursor:default;
    pointer-events:none;
}

.mm-login-collection-arrow[hidden]{
    display:none!important;
}

@media(max-width:1200px){
    .mm-login-collection-card{
        flex-basis:160px;
        min-width:160px;
        max-width:160px;
    }

    .mm-login-collection-media{
        width:160px;
        height:160px;
    }
}

@media(max-width:760px){
    .mm-login-collections{
        padding:12px 14px 18px;
    }

    .mm-login-collection-track{
        gap:14px;
        padding:0 0 4px;
        scroll-padding-left:0;
    }

    .mm-login-collection-card{
        flex-basis:116px;
        min-width:116px;
        max-width:116px;
    }

    .mm-login-collection-media{
        width:116px;
        height:116px;
    }

    .mm-login-collection-name{
        margin-top:8px;
        font-size:11px;
    }

    .mm-login-collection-arrow{
        display:none!important;
    }
}

@media(max-width:420px){
    .mm-login-collection-card{
        flex-basis:96px;
        min-width:96px;
        max-width:96px;
    }

    .mm-login-collection-media{
        width:96px;
        height:96px;
    }
}


/* =========================================================
   LOGIN CATEGORY VISIBILITY / ALIGNMENT FIX V15
   The Login page must show every published Admin category.
   ========================================================= */
.mm-login-collections{
    padding-top:24px;
    padding-bottom:28px;
}

.mm-login-collection-track{
    align-items:flex-start;
}

.mm-login-collection-all{
    display:grid;
    place-items:center;
    border:2px solid #b84b35;
    background:#fbf0eb;
}

.mm-login-collection-all svg{
    width:56px;
    height:56px;
    fill:none;
    stroke:#b84b35;
    stroke-width:2.1;
}

.mm-login-collection-card-all .mm-login-collection-name{
    color:#b04731;
}

@media(max-width:760px){
    .mm-login-collections{
        padding:18px 14px 22px;
    }

    .mm-login-collection-track{
        gap:14px;
        padding-inline:2px;
    }
}

@media(max-width:420px){
    .mm-login-collection-all svg{
        width:40px;
        height:40px;
    }
}

/* BARBET_GUEST_CHECKOUT_LOGIN_20261027 — scoped to the customer login page. */
.mm-login-page .barbet-guest-checkout {
    display: grid;
    gap: 10px;
    margin-top: 24px;
    padding: 22px;
    background: #fff8fb;
    border: 1px solid #eed7e1;
    border-radius: 18px;
    color: #241a25;
    text-align: center;
    box-sizing: border-box;
}
.mm-login-page .barbet-guest-checkout-copy strong { display: block; font-weight: 750; font-size: 15px; }
.mm-login-page .barbet-guest-checkout-copy p { margin: 8px auto 0; max-width: 410px; font-size: 13px; line-height: 1.65; color: #6a5b65; }
.mm-login-page .barbet-guest-checkout-link {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 48px; padding: 11px 15px;
    border: 1px solid #b42664; border-radius: 12px;
    background: #fff; color: #a61b59; text-decoration: none;
    font-weight: 750; font-size: 14px; line-height: 1.3; box-sizing: border-box;
    transition: background .2s, color .2s, border-color .2s;
}
.mm-login-page .barbet-guest-checkout-link:hover,
.mm-login-page .barbet-guest-checkout-link:focus-visible { background: #b42664; color: white; border-color: #b42664; }
.mm-login-page .barbet-guest-checkout-hint { color: #75636b; font-size: 12px; line-height: 1.5; }
.mm-login-page .barbet-guest-checkout-hint a { color: #a61b59; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 540px) {
    .mm-login-page .barbet-guest-checkout { padding: 16px; border-radius: 14px; margin-top: 18px; }
    .mm-login-page .barbet-guest-checkout-link { min-height: 46px; }
}
