@charset "utf-8";
/* ==========================================================================
   auth.css  -  Log In / Create Account
   Design: Login-PC/SP, Register-PC (retail) / Register-SP (wholesale)
   SP + tablet : form only (max 520px, centered on tablet)
   PC 1280px-  : dark brand panel 5 cols / form cols 7-11
   Form parts come from module.css (c-form, c-field, c-input ...)
   ========================================================================== */
.auth {
    padding: .2rem 0 .56rem;
}
.auth_aside { display: none; }
.auth_main {
    width: 100%;
    max-width: 5.2rem;
    margin: 0 auto;
}
.auth_head {
    display: flex;
    flex-direction: column;
    gap: .06rem;
}
.auth_title {
    font-size: .26rem;          /* spec: SP 26/34, PC 32/42 */
    line-height: .34rem;
    font-weight: 700;
    text-transform: uppercase;
}
.auth_sub {
    font-size: .14rem;
    line-height: .2rem;
    color: var(--c-ink-muted);
}
.auth_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .12rem;
    margin-top: -.04rem;
}
.auth_row .c-check { min-height: .44rem; }
.auth_forgot {
    display: flex;
    align-items: center;
    min-height: .44rem;
    font-size: .14rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: .03rem;
}
.auth_switch {
    margin-top: .04rem;
    font-size: .14rem;
    line-height: .2rem;
    text-align: center;
    color: var(--c-ink-muted);
}
.auth_note {
    margin-top: -.12rem;
    font-size: .13rem;
    line-height: .18rem;
    text-align: center;
    color: var(--c-ink-muted);
}
.auth_agree {
    align-items: flex-start;
    font-size: .14rem;
    line-height: .2rem;
}
.auth_agree .c-check_box { margin-top: 1px; }
.auth_agree a {
    text-decoration: underline;
    text-underline-offset: .03rem;
}
.auth_agree.is-invalid .c-check_box { border-color: #B3403A; }

/* wholesale business details */
.auth_biz {
    display: flex;
    flex-direction: column;
    gap: .16rem;
    min-width: 0;
    margin: 0;
    padding: .16rem;
    border: 1px solid var(--c-line);
    border-radius: .08rem;
    animation: auth-in .35s var(--ease);
}
.auth_biz-title {
    float: left;                 /* keeps legend inside the box */
    width: 100%;
    font-size: .13rem;
    line-height: .18rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-sage-dark);
}
.auth_biz-note {
    padding: .12rem .14rem;
    border-radius: .06rem;
    background: var(--c-warm);
    font-size: .13rem;
    line-height: .2rem;
}
@keyframes auth-in {
    from { opacity: 0; transform: translateY(-.06rem); }
    to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   Forgot password flow   Design: ForgotPassword, ForgotPasswordSent, ResetPassword
   ========================================================================== */
.auth_back {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: .06rem;
    min-height: .44rem;
    margin-bottom: -.08rem;
    font-size: .14rem;
    font-weight: 500;
}
.auth_back .icon { width: .16rem; height: .16rem; transition: transform var(--dur) var(--ease); }
.auth_back:hover .icon { transform: translateX(-.03rem); }
.auth_sub strong { font-weight: 700; color: var(--c-ink); }
.auth_icon {
    display: grid;
    place-items: center;
    width: .64rem;
    height: .64rem;
    border-radius: 50%;
    background: #EEF2EC;
    color: var(--c-sage-dark);
}
.auth_icon .icon { width: .3rem; height: .3rem; stroke-width: 1.5; }
.auth_fbnote {
    display: flex;
    align-items: flex-start;
    gap: .1rem;
    padding: .12rem .14rem;
    border-radius: .08rem;
    background: var(--c-warm);
    font-size: .13rem;
    line-height: .19rem;
}
.auth_fbnote_icon {
    flex-shrink: 0;
    font-size: .18rem;
    line-height: .19rem;
    color: #1877F2;
}
.auth_fbnote strong { font-weight: 700; }
.auth_fbnote a { text-decoration: underline; text-underline-offset: .02rem; }
.auth_help {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .06rem;
    font-size: .13rem;
    color: var(--c-ink-muted);
}
.auth_help .icon { width: .16rem; height: .16rem; color: var(--c-ink); }
/* "Didn't get the email?" */
.auth_didnt {
    padding-top: .16rem;
    border-top: 1px solid var(--c-line);
    font-size: .14rem;
    line-height: .21rem;
    color: var(--c-ink-muted);
}
.auth_didnt_title {
    margin-bottom: .06rem;
    font-weight: 700;
    color: var(--c-ink);
}
.auth_didnt ul { display: flex; flex-direction: column; gap: .06rem; }
.auth_didnt li { position: relative; padding-left: .12rem; }
.auth_didnt li::before { content: "•"; position: absolute; left: 0; }
.auth_didnt a {
    font-weight: 700;
    color: var(--c-ink);
    text-decoration: underline;
    text-underline-offset: .03rem;
}
.auth_resend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .1rem;
}
.auth_resend_btn {
    height: .32rem;
    padding: 0 .12rem;
    border: 1px solid var(--c-line);
    border-radius: .04rem;
    background: var(--c-white);
    font-size: .13rem;
    font-weight: 600;
    color: var(--c-ink);
    transition: border-color .2s;
}
.auth_resend_btn:not(:disabled):hover { border-color: var(--c-ink); }
.auth_resend_btn:disabled { color: #8A847D; cursor: default; }
.auth_resend_note { font-size: .13rem; font-variant-numeric: tabular-nums; }
/* live password rules */
.auth_rules {
    display: flex;
    flex-direction: column;
    gap: .02rem;
    margin-top: .04rem;
    font-size: .13rem;
    line-height: .18rem;
    color: var(--c-ink-muted);
}
.auth_rules li { display: flex; align-items: center; gap: .06rem; }
.auth_rules_mark {
    display: grid;
    place-items: center;
    width: .14rem;
    height: .14rem;
}
.auth_rules_mark::before { content: "•"; }
.auth_rules li.is-ok { color: var(--c-ink); }
.auth_rules li.is-ok .auth_rules_mark::before {
    content: "";
    width: .1rem;
    height: .055rem;
    margin-top: -.03rem;
    border: solid var(--c-sage-dark);
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
}
.auth_rules li.is-bad { color: #B3403A; }
.c-input.is-good { border-color: var(--c-sage-dark); }
.auth_match {
    display: flex;
    align-items: center;
    gap: .06rem;
    margin-top: .04rem;
    font-size: .13rem;
    color: var(--c-sage-dark);
}
.auth_match .icon { width: .14rem; height: .14rem; stroke-width: 2.4; }
/* status banner on Log In (after a reset) */
.auth_status {
    border: 1px solid #C9D6C6;
    background: #EEF2EC;
}
.c-msg a { font-weight: 700; text-decoration: underline; }

@media (min-width: 768px) {
    .auth_sub { font-size: .16rem; line-height: .24rem; }
}

/* ==========================================================================
   Tablet  768px -
   ========================================================================== */
@media (min-width: 768px) {
    .auth { padding: .56rem 0 .8rem; }
    .auth_title {
        font-size: .32rem;
        line-height: .42rem;
    }
    .auth_sub {
        font-size: .16rem;
        line-height: .24rem;
    }
}

/* ==========================================================================
   PC  1280px -
   ========================================================================== */
@media (min-width: 1280px) {
    .auth_layout {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        column-gap: .24rem;
        align-items: stretch;
    }
    .auth_aside {
        grid-column: span 5;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: .24rem;
        padding: .56rem .48rem;
        border-radius: .12rem;
        background: var(--c-ink);
        color: var(--c-on-ink);
    }
    .auth_logo { width: 1.8rem; }
    .auth_lead {
        font-size: .22rem;
        line-height: .32rem;
        font-weight: 500;
        color: var(--c-white);
    }
    .auth_points {
        display: flex;
        flex-direction: column;
        gap: .12rem;
        font-size: .15rem;
        line-height: .22rem;
    }
    .auth_points li {
        display: flex;
        align-items: center;
        gap: .1rem;
    }
    .auth_points .icon {
        width: .18rem;
        height: .18rem;
        stroke-width: 2.2;
        color: var(--c-gold);
    }
    .auth_main {
        grid-column: 7 / span 5;
        max-width: none;
        margin: 0;
        padding: .24rem 0;
    }
}
