.customer-auth {
    --auth-navy: #0b1f33;
    --auth-blue: #167db5;
    --auth-red: #d5323a;
    --auth-line: #dce5ed;
    --auth-muted: #687789;
    padding: clamp(2rem, 5vw, 4.5rem) var(--container-gutter);
    background:
        radial-gradient(ellipse at 82% 12%, rgb(22 135 201 / 8%), transparent 29rem),
        #f5f8fb;
}

.customer-auth__layout {
    width: min(100%, 70rem);
    min-height: 38rem;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(18rem, 0.88fr) minmax(24rem, 1.12fr);
    overflow: hidden;
    border: 1px solid rgb(11 31 51 / 7%);
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 24px 70px rgb(11 31 51 / 10%);
}

.customer-auth__story {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100%;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3.5rem);
    color: #fff;
    background: linear-gradient(148deg, #102e49 0%, #0c2238 58%, #0a1b2d 100%);
}

.customer-auth__brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: fit-content;
    padding: 0.7rem 0.9rem;
    border-radius: 0.85rem;
    background: #fff;
}

.customer-auth__brand img {
    display: block;
    width: min(12rem, 100%);
    height: auto;
    object-fit: contain;
}

.customer-auth__story-copy {
    position: relative;
    z-index: 1;
    max-width: 25rem;
    padding-block: 5rem 2.5rem;
}

.customer-auth__eyebrow {
    display: inline-block;
    margin-bottom: 0.7rem;
    color: var(--auth-blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.customer-auth__story .customer-auth__eyebrow {
    color: #76c7f1;
}

.customer-auth__story h2 {
    max-width: 11ch;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 3.1vw, 3.1rem);
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.customer-auth__story p {
    max-width: 29rem;
    margin: 1.2rem 0 0;
    color: rgb(255 255 255 / 76%);
    font-size: 1rem;
}

.customer-auth__watermark {
    position: absolute;
    right: -5rem;
    bottom: -10rem;
    width: 25rem;
    height: 25rem;
    border: 1px solid rgb(113 200 242 / 17%);
    border-radius: 45% 55% 52% 48%;
    box-shadow: 0 0 0 2rem rgb(113 200 242 / 4%), 0 0 0 4rem rgb(113 200 242 / 3%);
    transform: rotate(-22deg);
}

.customer-auth__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(1.5rem, 4vw, 3.75rem);
}

.customer-auth__card {
    width: min(100%, 31rem);
    margin-inline: auto;
}

.customer-auth h1 {
    margin: 0;
    color: var(--auth-navy);
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.customer-auth__intro {
    margin: 0.65rem 0 1.5rem;
    color: var(--auth-muted);
    font-size: 0.95rem;
}

.customer-auth__message {
    margin-bottom: 1.15rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 0.7rem;
    font-size: 0.9rem;
}

.customer-auth__message--error {
    border-color: #f1c5c6;
    color: #9c252a;
    background: #fff3f3;
}

.customer-auth__message--success {
    border-color: #b9e3c8;
    color: #176b39;
    background: #f0fbf3;
}

.customer-auth__form {
    display: grid;
    gap: 0.6rem;
}

.customer-auth__form label {
    margin-top: 0.45rem;
    color: #24364a;
    font-size: 0.86rem;
    font-weight: 650;
}

.customer-auth__form input,
.customer-auth__form select {
    width: 100%;
    min-width: 0;
    min-height: 2.9rem;
    padding: 0.72rem 0.85rem;
    border: 1px solid var(--auth-line);
    border-radius: 0.65rem;
    outline: none;
    color: var(--auth-navy);
    background: #fff;
    font: inherit;
    font-size: 0.94rem;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.customer-auth__form select {
    padding-right: 2.5rem;
}

.customer-auth__form input:focus,
.customer-auth__form select:focus {
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 3px rgb(22 125 181 / 17%);
}

.customer-auth__form select:disabled {
    color: #687789;
    background-color: #f4f7fa;
    cursor: not-allowed;
}

.customer-auth__form [data-location-status] {
    margin-top: -0.2rem;
    color: var(--auth-muted);
    font-size: 0.78rem;
}

.customer-auth__phone-input {
    display: flex;
    align-items: center;
    min-width: 0;
    border: 1px solid var(--auth-line);
    border-radius: 0.65rem;
    background: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.customer-auth__phone-input:focus-within {
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 3px rgb(22 125 181 / 17%);
}

.customer-auth__phone-prefix {
    flex: 0 0 auto;
    padding: 0 0 0 0.85rem;
    color: var(--auth-muted);
    font-size: 0.94rem;
    font-weight: 650;
}

.customer-auth__phone-input input,
.customer-auth__form .customer-auth__phone-input input:focus {
    min-width: 0;
    border: 0;
    box-shadow: none;
    outline: none;
}

.customer-auth__phone-input input {
    flex: 1 1 auto;
    background: transparent;
}

.customer-auth__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.35rem;
}

.customer-auth__label-row label {
    margin: 0;
}

.customer-auth__label-row a,
.customer-auth__switch a,
.customer-auth__footer a {
    color: var(--auth-blue);
    font-size: 0.86rem;
    font-weight: 650;
    text-decoration: none;
}

.customer-auth__label-row a:hover,
.customer-auth__switch a:hover,
.customer-auth__footer a:hover {
    color: var(--auth-red);
    text-decoration: underline;
}

.customer-auth__password {
    position: relative;
    display: flex;
    align-items: center;
}

.customer-auth__password input {
    padding-right: 4.3rem;
}

.customer-auth__password-toggle {
    position: absolute;
    right: 0.65rem;
    padding: 0.35rem;
    border: 0;
    color: var(--auth-blue);
    background: transparent;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.customer-auth__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    margin-top: 0.75rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--auth-blue);
    border-radius: 0.7rem;
    color: #fff;
    background: var(--auth-blue);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

.customer-auth__submit:hover:not(:disabled) {
    background: #0c679b;
    transform: translateY(-1px);
}

.customer-auth__submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

.customer-auth__loading,
.is-processing .customer-auth__submit > span:first-child {
    display: none;
}

.is-processing .customer-auth__loading {
    display: inline;
}

.customer-auth__provider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
    min-height: 2.9rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--auth-line);
    border-radius: 0.7rem;
    color: var(--auth-navy);
    background: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
}

.customer-auth__provider:hover {
    border-color: #9bb8ca;
    background: #f8fbfd;
}

.customer-auth__provider svg {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 auto;
}

.customer-auth__divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.1rem 0;
    color: #8290a0;
    font-size: 0.74rem;
}

.customer-auth__divider::before,
.customer-auth__divider::after {
    height: 1px;
    flex: 1;
    background: #e6ebf0;
    content: "";
}

.customer-auth__switch {
    margin: 1.2rem 0 0;
    color: var(--auth-muted);
    text-align: center;
    font-size: 0.87rem;
}

.customer-auth__strength {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    margin: 0.05rem 0 0.2rem;
}

.customer-auth__strength > span {
    display: block;
    width: 0;
    height: 0.25rem;
    border-radius: 99px;
    background: #e2a33e;
    transition: width 180ms ease, background 180ms ease;
}

.customer-auth__strength > span[data-strength="weak"] { background: #db5555; }
.customer-auth__strength > span[data-strength="fair"] { background: #e2a33e; }
.customer-auth__strength > span[data-strength="strong"] { background: #29945a; }
.customer-auth__strength small { color: var(--auth-muted); font-size: 0.75rem; }

.customer-auth__profile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1.2rem 0 1.5rem;
    padding: 1rem;
    border: 1px solid #e6edf2;
    border-radius: 0.9rem;
    background: #fbfdfe;
}

.customer-auth__avatar,
.customer-auth__identity-icon {
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #0e6492;
    background: #e5f4fb;
    font-weight: 750;
}

.customer-auth__profile > div,
.customer-auth__identity-list li > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 0.1rem;
}

.customer-auth__profile strong,
.customer-auth__identity-list strong {
    overflow-wrap: anywhere;
    color: var(--auth-navy);
    font-size: 0.9rem;
}

.customer-auth__profile span:not(.customer-auth__avatar),
.customer-auth__identity-list small {
    overflow-wrap: anywhere;
    color: var(--auth-muted);
    font-size: 0.78rem;
}

.customer-auth__security {
    padding-top: 0.5rem;
}

.customer-auth__security h2 {
    margin: 0;
    color: var(--auth-navy);
    font-size: 1.15rem;
}

.customer-auth__security > p {
    margin: 0.3rem 0 1rem;
    color: var(--auth-muted);
    font-size: 0.83rem;
}

.customer-auth__identity-list {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.customer-auth__identity-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 4rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid #e7edf2;
    border-radius: 0.75rem;
}

.customer-auth__identity-icon {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 0.8rem;
}

.customer-auth__identity-list li > span:nth-child(2) {
    flex: 1 1 auto;
}

.customer-auth__small-button {
    padding: 0.45rem 0.6rem;
    border: 1px solid #c9dce8;
    border-radius: 0.55rem;
    color: var(--auth-blue);
    background: #fff;
    font: inherit;
    font-size: 0.73rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.customer-auth__small-button:hover {
    border-color: var(--auth-blue);
    background: #f3faff;
}

.customer-auth__logout {
    margin-top: 1.2rem;
}

.customer-auth__submit--quiet {
    width: 100%;
    border-color: var(--auth-line);
    color: var(--auth-navy);
    background: #fff;
}

.customer-auth__submit--quiet:hover:not(:disabled) {
    border-color: #b6c6d2;
    background: #f8fafc;
}

.customer-auth__footer {
    margin: 1.2rem auto 0;
    text-align: center;
}

.customer-auth__footer a { font-size: 0.8rem; }

.customer-auth__activity {
    margin-top: 0.45rem;
    border: 1px solid #e1e9ef;
    border-radius: 0.7rem;
    background: #fff;
}

.customer-auth__activity > summary {
    display: flex;
    min-height: 2.65rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.55rem 0.75rem;
    color: var(--auth-navy);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    list-style-position: inside;
}

.customer-auth__activity > summary span {
    display: inline-grid;
    min-width: 1.5rem;
    min-height: 1.5rem;
    place-items: center;
    border-radius: 99px;
    color: #0e6492;
    background: #e5f4fb;
    font-size: 0.74rem;
}

.customer-auth__activity-empty {
    margin: 0;
    padding: 0 0.75rem 0.65rem;
    color: var(--auth-muted);
    font-size: 0.8rem;
}

.customer-auth__order-list,
.customer-auth__saved-list {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0 0.65rem 0.65rem;
    list-style: none;
}

.customer-auth__order {
    padding: 0.6rem 0.65rem;
    border: 1px solid #e6edf2;
    border-radius: 0.6rem;
}

.customer-auth__order header,
.customer-auth__order > p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.7rem;
}

.customer-auth__order header strong,
.customer-auth__order > p strong {
    color: var(--auth-navy);
    font-size: 0.78rem;
}

.customer-auth__order header span,
.customer-auth__order > p span {
    color: var(--auth-muted);
    font-size: 0.72rem;
}

.customer-auth__order > p {
    margin: 0.3rem 0;
}

.customer-auth__order ul {
    display: grid;
    gap: 0.2rem;
    margin: 0.35rem 0 0;
    padding: 0.35rem 0 0;
    border-top: 1px solid #edf1f4;
    list-style: none;
}

.customer-auth__order li {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    color: var(--auth-muted);
    font-size: 0.75rem;
}

.customer-auth__order li a,
.customer-auth__saved-list a,
.customer-auth__activity-link {
    color: var(--auth-blue);
    font-weight: 650;
    text-decoration: none;
}

.customer-auth__order li a,
.customer-auth__saved-list a {
    overflow-wrap: anywhere;
}

.customer-auth__saved-list li {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem;
    border: 1px solid #e6edf2;
    border-radius: 0.6rem;
}

.customer-auth__saved-list img {
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    border-radius: 0.45rem;
    object-fit: cover;
}

.customer-auth__saved-list a {
    flex: 1 1 auto;
    font-size: 0.78rem;
}

.customer-auth__saved-list li > span {
    flex: 0 0 auto;
    color: var(--auth-muted);
    font-size: 0.72rem;
}

.customer-auth__activity-link {
    display: inline-block;
    margin: 0 0.75rem 0.7rem;
    font-size: 0.78rem;
}

:root[data-theme="dark"] .customer-auth__activity {
    border-color: #344758;
    background: #142536;
}

:root[data-theme="dark"] .customer-auth__activity > summary,
:root[data-theme="dark"] .customer-auth__order header strong,
:root[data-theme="dark"] .customer-auth__order > p strong {
    color: #e7f0f7;
}

:root[data-theme="dark"] .customer-auth__activity > summary span {
    color: #a8ddf7;
    background: #1d4158;
}

:root[data-theme="dark"] .customer-auth__order,
:root[data-theme="dark"] .customer-auth__saved-list li {
    border-color: #344758;
}

:root[data-theme="dark"] .customer-auth__order ul {
    border-color: #344758;
}

.customer-auth :focus-visible {
    outline: 3px solid rgb(22 125 181 / 38%);
    outline-offset: 2px;
}

@media (min-width: 761px) {
    .customer-auth--account {
        padding-block: 0;
    }

    .customer-auth--account .customer-auth__layout {
        min-height: 0;
    }

    .customer-auth--account .customer-auth__story {
        min-height: 0;
        padding: clamp(1.4rem, 2.4vw, 2rem);
    }

    .customer-auth--account .customer-auth__story-copy {
        padding-block: clamp(2rem, 4vh, 3rem) 1rem;
    }

    .customer-auth--account .customer-auth__story h2 {
        font-size: clamp(1.75rem, 2.5vw, 2.55rem);
    }

    .customer-auth--account .customer-auth__content {
        padding: 0.35rem clamp(1.4rem, 2.4vw, 2rem);
    }

    .customer-auth--account .customer-auth__card {
        width: min(100%, 34rem);
    }

    .customer-auth--account h1 {
        font-size: clamp(1.7rem, 2.25vw, 2rem);
    }

    .customer-auth--account .customer-auth__eyebrow {
        margin-bottom: 0.3rem;
        font-size: 0.68rem;
    }

    .customer-auth--account .customer-auth__intro {
        margin: 0.2rem 0 0.45rem;
        font-size: 0.85rem;
    }

    .customer-auth--account .customer-auth__profile {
        gap: 0.45rem;
        margin: 0.3rem 0 0.4rem;
        padding: 0.35rem 0.55rem;
    }

    .customer-auth--account .customer-auth__avatar {
        width: 1.8rem;
        height: 1.8rem;
    }

    .customer-auth--account .customer-auth__profile > div {
        gap: 0;
    }

    .customer-auth--account .customer-auth__profile strong {
        font-size: 0.82rem;
    }

    .customer-auth--account .customer-auth__profile span:not(.customer-auth__avatar) {
        font-size: 0.7rem;
    }

    .customer-auth--account .customer-auth__security {
        padding-top: 0.2rem;
    }

    .customer-auth--account .customer-auth__security h2 {
        font-size: 1rem;
    }

    .customer-auth--account .customer-auth__security > p {
        margin: 0.1rem 0 0.3rem;
        font-size: 0.76rem;
    }

    .customer-auth--account .customer-auth__identity-list {
        gap: 0.2rem;
    }

    .customer-auth--account .customer-auth__identity-list li {
        min-height: 2.25rem;
        gap: 0.4rem;
        padding: 0.18rem 0.45rem;
    }

    .customer-auth--account .customer-auth__identity-icon {
        width: 1.55rem;
        height: 1.55rem;
    }

    .customer-auth--account .customer-auth__identity-list strong {
        font-size: 0.8rem;
    }

    .customer-auth--account .customer-auth__identity-list small {
        font-size: 0.68rem;
    }

    .customer-auth--account .customer-auth__logout {
        margin-top: 0.3rem;
    }

    .customer-auth--account .customer-auth__submit {
        min-height: 2.2rem;
        margin-top: 0.1rem;
        padding-block: 0.35rem;
    }

    .customer-auth--account .customer-auth__activity {
        margin-top: 0.25rem;
    }

    .customer-auth--account .customer-auth__activity > summary {
        min-height: 2.15rem;
        padding-block: 0.35rem;
    }

    .customer-auth--account .customer-auth__activity > summary span {
        min-width: 1.3rem;
        min-height: 1.3rem;
    }

    .customer-auth--account .customer-auth__footer {
        margin-top: 0.25rem;
    }

    .customer-auth--account .customer-auth__footer a {
        font-size: 0.75rem;
    }

    .customer-auth--signup {
        padding-block: clamp(0.25rem, 0.65vh, 0.4rem);
    }

    .customer-auth--signup .customer-auth__layout {
        min-height: 0;
    }

    .customer-auth--signup .customer-auth__story {
        min-height: 0;
        padding: clamp(1.4rem, 2.3vw, 2.1rem);
    }

    .customer-auth--signup .customer-auth__story-copy {
        padding-block: clamp(1.8rem, 4vh, 3rem) 1rem;
    }

    .customer-auth--signup .customer-auth__story h2 {
        font-size: clamp(1.7rem, 2.4vw, 2.45rem);
    }

    .customer-auth--signup .customer-auth__content {
        padding: 0.9rem clamp(1.1rem, 1.8vw, 1.8rem);
    }

    .customer-auth--signup .customer-auth__card {
        width: min(100%, 34rem);
    }

    .customer-auth--signup h1 {
        font-size: clamp(1.7rem, 2.2vw, 2rem);
    }

    .customer-auth--signup .customer-auth__intro {
        margin: 0.3rem 0 0.7rem;
        font-size: 0.84rem;
    }

    .customer-auth--signup .customer-auth__form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem 0.8rem;
    }

    .customer-auth--signup .customer-auth__field {
        display: grid;
        align-content: start;
        min-width: 0;
        gap: 0.25rem;
    }

    .customer-auth--signup .customer-auth__field--wide,
    .customer-auth--signup .customer-auth__submit {
        grid-column: 1 / -1;
    }

    .customer-auth--signup .customer-auth__form label {
        margin: 0;
        font-size: 0.76rem;
    }

    .customer-auth--signup .customer-auth__form input,
    .customer-auth--signup .customer-auth__form select {
        min-height: 2.45rem;
        padding: 0.48rem 0.7rem;
        font-size: 0.86rem;
    }

    .customer-auth--signup .customer-auth__phone-prefix {
        padding-left: 0.7rem;
        font-size: 0.86rem;
    }

    .customer-auth--signup .customer-auth__form [data-location-status] {
        font-size: 0.68rem;
    }

    .customer-auth--signup .customer-auth__strength {
        gap: 0.2rem;
        margin: 0;
    }

    .customer-auth--signup .customer-auth__strength > span {
        height: 0.18rem;
    }

    .customer-auth--signup .customer-auth__strength small {
        font-size: 0.68rem;
    }

    .customer-auth--signup .customer-auth__submit {
        min-height: 2.6rem;
        margin-top: 0.1rem;
        padding-block: 0.5rem;
    }

    .customer-auth--signup .customer-auth__provider {
        min-height: 2.5rem;
        margin-top: 0.55rem;
        padding-block: 0.45rem;
    }

    .customer-auth--signup .customer-auth__switch {
        margin-top: 0.55rem;
    }
}

@media (max-width: 760px) {
    .customer-auth { padding-inline: 1rem; }
    .customer-auth__layout {
        grid-template-columns: 1fr;
        max-width: 34rem;
        border-radius: 1.1rem;
    }
    .customer-auth__story {
        min-height: 12rem;
        padding: 1.3rem 1.5rem;
    }
    .customer-auth__brand img { width: 10rem; }
    .customer-auth__story-copy { padding: 1.4rem 0 0.2rem; }
    .customer-auth__story h2 { max-width: 20ch; font-size: 1.5rem; }
    .customer-auth__story p { margin-top: 0.45rem; font-size: 0.82rem; }
    .customer-auth__content { padding: 1.5rem; }
}

@media (max-width: 420px) {
    .customer-auth { padding: 1rem 0.65rem; }
    .customer-auth__content { padding: 1.2rem 0.95rem; }
    .customer-auth__identity-list li { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    .customer-auth *,
    .customer-auth *::before,
    .customer-auth *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
