.auth-page--lojas,
.auth-page--admin {
    padding: 0;
    background: #fff;
}

.store-auth-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(480px, 1.08fr) minmax(460px, 0.92fr);
    align-items: stretch;
    gap: 0;
}

.store-auth-hero {
    position: relative;
    isolation: isolate;
    order: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    overflow: hidden;
    padding: clamp(32px, 4.4vw, 56px);
    border-left: 1px solid rgba(25, 53, 43, 0.14);
    border-radius: 0;
    background: #101c18;
    color: #fff;
    box-shadow: 0 28px 70px rgba(16, 36, 29, 0.22);
}

.store-auth-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(110deg, rgba(6, 17, 14, 0.94) 1%, rgba(8, 25, 20, 0.8) 41%, rgba(7, 21, 17, 0.18) 72%),
        linear-gradient(0deg, rgba(6, 15, 12, 0.72), transparent 42%);
    content: '';
}

.store-auth-hero__media {
    position: absolute;
    z-index: -2;
    inset: 0;
}

.store-auth-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.store-auth-hero__content {
    position: relative;
    max-width: 540px;
}

.store-auth-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    margin: 0 0 26px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #f8fbf7;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    box-shadow: none;
}

.store-auth-hero__eyebrow span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #9eea80;
    box-shadow: 0 0 0 5px rgba(158, 234, 128, 0.14);
}

.store-auth-hero h1 {
    max-width: 600px;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 3.4vw, 3.3rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.store-auth-hero p {
    max-width: 525px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.02rem;
    line-height: 1.65;
}

.store-auth-hero__badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 32px;
}

.store-auth-hero__badges span {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 54px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.25;
    backdrop-filter: blur(10px);
}

.store-auth-hero__badges svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #b8f79d;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.store-auth-hero__badges em {
    font-style: normal;
}

.store-auth-hero__signature {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 410px;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.store-auth-hero__signature > span {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #b8f79d;
    color: #153124;
    font-size: 0.84rem;
    font-weight: 900;
}

.store-auth-hero__signature p {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.82rem;
    line-height: 1.45;
}

.store-auth-hero__signature strong {
    display: block;
    color: #fff;
    font-size: 0.9rem;
}

.store-auth-card {
    position: relative;
    order: 1;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: clamp(44px, 7vw, 92px) clamp(28px, 8vw, 128px);
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.store-auth-card::before {
    display: none;
}

.store-auth-card > .store-auth-brand,
.store-auth-card > .store-auth-card__header,
.store-auth-card > .store-auth-tabs,
.store-auth-card > .auth-feedback,
.store-auth-card > .store-auth-form,
.store-auth-card > .store-selector-logout,
.store-auth-card > .store-auth-security {
    width: min(100%, 460px);
    margin-left: auto;
    margin-right: auto;
}

.store-auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.store-auth-brand__image {
    display: block;
    width: min(260px, 100%);
    height: auto;
    object-fit: contain;
}

.store-auth-card__header {
    margin-bottom: 24px;
}

.store-auth-card__header h2 {
    margin: 0 0 8px;
    color: #261d1f;
    font-size: 1.9rem;
    line-height: 1.15;
    letter-spacing: 0;
}

.store-auth-card__header p {
    margin: 0;
    color: #716866;
    font-size: 0.96rem;
    line-height: 1.55;
}

.store-auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    padding: 6px;
    border-radius: 18px;
    background: #f5efe7;
}

.store-auth-tabs--single {
    grid-template-columns: 1fr;
}

.store-auth-tab {
    min-height: 48px;
    border-radius: 14px;
    background: transparent;
    color: #7a5708;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.store-auth-tab:hover {
    background: rgba(255, 255, 255, 0.76);
}

.store-auth-tab.is-active {
    background: linear-gradient(135deg, #980000, #c79a18);
    color: #fff;
    box-shadow: 0 12px 26px rgba(152, 0, 0, 0.18);
}

.store-auth-form {
    display: none;
    margin-top: 22px;
    gap: 16px;
}

.store-auth-form.is-active {
    display: grid;
}

.store-auth-login-form {
    margin-top: 0;
}

.store-selector-logout {
    margin-top: 18px;
    text-align: center;
}

.store-selector-logout button {
    border: 0;
    background: transparent;
    color: #716866;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.store-registration-verification,
.store-registration-verified {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px solid #e7dfd5;
    border-radius: 18px;
    background: #fbf8f3;
}

.store-registration-verification__icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    background: #f1e5c7;
    color: #8b5f05;
}

.store-registration-verification__icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.store-registration-verification > div,
.store-registration-verified > div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.store-registration-verification strong,
.store-registration-verified strong {
    color: #2f2927;
    font-size: 0.96rem;
}

.store-registration-verification p {
    margin: 0;
    color: #716866;
    font-size: 0.86rem;
    line-height: 1.45;
}

.store-registration-verification--code {
    border-color: rgba(8, 134, 29, 0.2);
    background: #f5fbf5;
}

.store-registration-verification--code .store-registration-verification__icon {
    background: #ddf3df;
    color: #08761b;
}

.store-registration-verified {
    border-color: rgba(8, 134, 29, 0.22);
    background: #f3fbf4;
}

.store-registration-verified > span {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #07861d;
    color: #fff;
    font-weight: 900;
}

.store-registration-verified small {
    overflow: hidden;
    color: #55705a;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-registration-verified button,
.store-registration-change-email {
    padding: 0;
    border: 0;
    background: transparent;
    color: #8b5f05;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
}

.store-registration-verified button {
    margin-left: auto;
}

.store-registration-change-email {
    justify-self: center;
    text-align: center;
}

.store-auth-card .store-registration-code-input {
    text-align: center;
    letter-spacing: 0.24em;
    font-size: 1.08rem;
    font-weight: 900;
}

.store-auth-card .field-block input[readonly] {
    background: #f7f4ef;
    color: #665e5b;
}

.store-auth-card .customer-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.store-auth-card .field-block {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.store-auth-card .field-block--full {
    grid-column: 1 / -1;
}

.store-auth-card .field-block span {
    color: #3f3836;
    font-size: 0.9rem;
    font-weight: 800;
}

.store-auth-card .field-block input:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid #e7dfd5;
    border-radius: 16px;
    background: #fff;
    color: #2f2927;
    outline: 0;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.store-auth-card .field-block input:not([type="checkbox"]):not([type="radio"]):focus {
    border-color: rgba(199, 154, 24, 0.72);
    box-shadow: 0 0 0 4px rgba(199, 154, 24, 0.16);
}

.auth-legal-consent {
    gap: 12px;
    padding: 14px 15px;
    border: 1px solid #ece3d8;
    border-radius: 16px;
    background: #fbf8f3;
}

.auth-legal-consent__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #3f3836;
    font-size: 0.92rem;
    line-height: 1.5;
}

.auth-legal-consent__check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin-top: 2px;
    padding: 0;
    flex: 0 0 auto;
    accent-color: var(--brand-green);
}

.auth-legal-consent__check span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.auth-legal-consent__link {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0f6e20;
    font: inherit;
    font-weight: 800;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.auth-legal-consent__link:hover,
.auth-legal-consent__link:focus-visible {
    color: #084d15;
}

.auth-legal-details {
    display: grid;
    gap: 10px;
}

.auth-legal-details summary {
    cursor: pointer;
    color: #8b5f05;
    font-size: 0.9rem;
    font-weight: 800;
}

.auth-legal-details__content {
    max-height: 280px;
    overflow: auto;
    padding: 14px;
    border: 1px solid #eadfce;
    border-radius: 14px;
    background: #fff;
    color: #5f5553;
    font-size: 0.9rem;
    line-height: 1.6;
}

.auth-legal-details__content h3,
.auth-legal-details__content h4 {
    margin: 16px 0 8px;
    color: #2f2225;
    font-size: 0.98rem;
}

.auth-legal-details__content p,
.auth-legal-details__content ul {
    margin: 0 0 10px;
}

.auth-legal-details__content ul {
    padding-left: 18px;
}

.store-establishment-term {
    margin-bottom: 12px;
}

.auth-legal-details__content .legal-document__title {
    margin: 0 0 4px;
    color: #2f2225;
    font-size: 1rem;
    line-height: 1.35;
}

.auth-legal-details__content .legal-document__updated {
    color: #786d67;
    font-size: 0.82rem;
}

.store-auth-submit {
    width: 100%;
    margin-top: 4px;
    border-radius: 18px;
    background: linear-gradient(135deg, #07861d, #08a320);
    box-shadow: 0 16px 32px rgba(8, 163, 32, 0.2);
    transition: box-shadow 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.store-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 38px rgba(8, 163, 32, 0.26);
}

.store-auth-submit:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.store-auth-forgot-password {
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
    color: #0f6e20;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.store-auth-forgot-password:hover {
    text-decoration: underline;
}

.store-auth-shell--reset {
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 0.78fr);
}

.store-auth-hero--reset h1 {
    max-width: 520px;
    font-size: clamp(2.7rem, 5vw, 4.45rem);
}

.store-auth-hero--reset p {
    max-width: 440px;
}

.store-password-reset {
    max-width: 520px;
    justify-self: end;
}

.store-password-reset__back,
.store-password-reset__secondary,
.store-password-reset__support {
    color: #0f6e20;
    font-size: 0.88rem;
    font-weight: 750;
    text-decoration: none;
}

.store-password-reset__back {
    display: inline-flex;
    margin-bottom: 26px;
}

.store-password-reset__back:hover,
.store-password-reset__secondary:hover,
.store-password-reset__support:hover {
    text-decoration: underline;
}

.store-password-reset__progress {
    display: grid;
    grid-template-columns: 26px 1fr 26px 1fr 26px;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}

.store-password-reset__progress span {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 1px solid #dce5d9;
    border-radius: 50%;
    background: #fff;
    color: #81907d;
    font-size: 0.78rem;
    font-weight: 850;
}

.store-password-reset__progress span.is-active {
    border-color: #0f6e20;
    background: #0f6e20;
    color: #fff;
}

.store-password-reset__progress i {
    height: 2px;
    background: #dce5d9;
}

.store-password-reset__progress i.is-active {
    background: #0f6e20;
}

.store-password-reset__header {
    margin-bottom: 22px;
}

.store-password-reset__header p {
    margin-top: 8px;
}

.store-password-reset__eyebrow {
    margin: 0 0 8px !important;
    color: #0f6e20 !important;
    font-size: 0.76rem !important;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.store-password-reset__header strong {
    color: #3f3836;
    font-weight: 800;
}

.store-password-reset__form {
    display: grid;
    gap: 16px;
}

.store-password-reset__form .store-auth-submit,
.store-password-reset__login {
    margin-top: 4px;
}

.store-password-reset__login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    color: #fff;
    text-decoration: none;
}

.store-password-reset__hint {
    margin: 16px 0 0;
    color: #7a7270;
    font-size: 0.84rem;
    text-align: center;
}

.store-password-reset__secondary,
.store-password-reset__support {
    display: block;
    margin-top: 14px;
    text-align: center;
}

.store-password-reset__support {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #edf0ea;
    color: #756b67;
}

.store-auth-support-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
    padding: 0 18px;
    border: 1px solid rgba(8, 163, 32, 0.22);
    border-radius: 18px;
    background: rgba(8, 163, 32, 0.07);
    color: #0f6e20;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.store-auth-support-link:hover {
    background: rgba(8, 163, 32, 0.12);
    border-color: rgba(8, 163, 32, 0.32);
    transform: translateY(-1px);
}

.store-auth-support {
    margin-top: 4px;
    border: 1px solid #e1e9de;
    border-radius: 20px;
    background: linear-gradient(145deg, #fbfdf9, #f5faf1);
    overflow: hidden;
}

.store-auth-support summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    color: #0f6e20;
    cursor: pointer;
    list-style: none;
}

.store-auth-support summary > span:last-child {
    display: grid;
    gap: 2px;
}

.store-auth-support summary strong {
    color: #245125;
    font-size: 0.95rem;
}

.store-auth-support summary small {
    color: #71806e;
    font-size: 0.78rem;
    font-weight: 650;
}

.store-auth-support__summary-icon,
.store-auth-support__step-number {
    display: inline-grid;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #0f6e20;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 900;
}

.store-auth-support summary::-webkit-details-marker {
    display: none;
}

.store-auth-support__body {
    display: grid;
    gap: 14px;
    padding: 0 18px 18px;
    border-top: 1px solid rgba(15, 110, 32, 0.1);
}

.store-auth-support__intro {
    margin: 2px 0 0;
    color: #716866;
    font-size: 0.88rem;
    line-height: 1.45;
}

.store-auth-support__step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-top: 2px;
}

.store-auth-support__step-number {
    width: 24px;
    height: 24px;
    margin-top: 1px;
    background: #e8f3e5;
    color: #0f6e20;
}

.store-auth-support__step div {
    display: grid;
    gap: 2px;
}

.store-auth-support__step strong {
    color: #3f3836;
    font-size: 0.88rem;
}

.store-auth-support__step small {
    color: #7a7270;
    font-size: 0.78rem;
    line-height: 1.4;
}

.store-auth-support__form {
    display: grid;
    gap: 11px;
}

.store-auth-support__form .store-auth-support-link {
    border-color: #0f6e20;
    background: #0f6e20;
    color: #fff;
    cursor: pointer;
}

.store-auth-support__form .store-auth-support-link:hover {
    background: #0b5b19;
    border-color: #0b5b19;
}

.store-auth-support__divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8b817e;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.store-auth-support__divider::before,
.store-auth-support__divider::after {
    width: 100%;
    height: 1px;
    background: #e4e9e1;
    content: '';
}

.store-auth-support__no-email {
    display: block;
    margin-top: 2px;
    color: #756b67;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
}

.store-auth-security {
    display: grid;
    gap: 3px;
    margin-top: 22px;
    padding: 14px 15px;
    border: 1px solid #edf0ea;
    border-radius: 16px;
    background: #fafbf8;
    color: #716866;
    font-size: 0.86rem;
    line-height: 1.45;
}

.store-auth-security strong {
    color: #3f3836;
}

.store-auth-security p {
    margin: 0;
}

.store-auth-security__link {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0f6e20;
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.store-auth-security__link:hover {
    color: #084d15;
}

.store-auth-security__details {
    margin-top: 6px;
}

@media (min-width: 961px) {
    .store-auth-card {
        justify-content: flex-start;
        padding-top: 8px;
        padding-bottom: 48px;
    }
}

@media (max-width: 960px) {
    .store-auth-shell {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }

    .store-auth-card {
        min-height: auto;
        max-width: none;
        justify-self: stretch;
        padding: 48px 28px 42px;
    }

    .store-auth-hero {
        min-height: 620px;
        padding: 46px;
        border-top: 1px solid rgba(25, 53, 43, 0.14);
        border-left: 0;
    }

    .store-auth-hero h1 {
        font-size: clamp(2rem, 7.2vw, 3.2rem);
    }

    .store-auth-hero p {
        font-size: 1rem;
    }

    .store-password-reset {
        max-width: none;
        justify-self: stretch;
    }
}

@media (max-width: 560px) {
    .store-auth-shell {
        width: 100%;
        padding: 0;
    }

    .store-auth-hero {
        min-height: 620px;
        padding: 30px 24px;
        border-radius: 24px;
    }

    .store-auth-hero::before {
        background:
            linear-gradient(125deg, rgba(6, 17, 14, 0.94) 2%, rgba(8, 25, 20, 0.74) 61%, rgba(7, 21, 17, 0.22)),
            linear-gradient(0deg, rgba(6, 15, 12, 0.78), transparent 46%);
    }

    .store-auth-hero h1 {
        font-size: clamp(1.85rem, 8.8vw, 2.55rem);
    }

    .store-auth-hero__badges {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 24px;
    }

    .store-auth-hero__badges span {
        min-height: 46px;
    }

    .store-auth-hero__signature {
        margin-top: 24px;
        padding-top: 16px;
    }

    .store-auth-card {
        padding: 36px 20px 30px;
    }

    .store-auth-card .customer-form__grid {
        grid-template-columns: 1fr;
    }

    .store-auth-card__header h2 {
        font-size: 1.6rem;
    }
}
