.auth-shell {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top left,
            color-mix(in srgb, var(--swem-primary, #2b1d18) 8%, transparent),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            var(--swem-bg, #fffaf7) 0%,
            #ffffff 100%
        );
}

.auth-topbar {
    padding: 1.25rem 0 0.75rem;
}

.auth-topbar-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.auth-brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 16px;
}

.auth-brand-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--swem-primary, #2b1d18);
    color: var(--swem-on-primary, #ffffff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
}

.auth-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}

.auth-brand-text strong {
    color: var(--swem-text, #2b1d18);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.4px;
}

.auth-brand-text small {
    color: var(--swem-muted, #7a675f);
    font-size: 0.82rem;
    font-weight: 700;
}

.auth-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: var(--swem-primary, #2b1d18);
    font-weight: 800;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--swem-border, #e8dcd6);
    background: color-mix(in srgb, var(--swem-surface, #ffffff) 94%, #ffffff);
    transition: all 0.2s ease;
}

.auth-back-home:hover {
    background: var(--swem-primary, #2b1d18);
    border-color: var(--swem-primary, #2b1d18);
    color: var(--swem-on-primary, #ffffff);
}

.auth-banner {
    padding: 0.5rem 0 1rem;
}

.auth-banner-card {
    position: relative;
    min-height: 240px;
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid var(--swem-border, #e8dcd6);
    box-shadow: 0 24px 70px rgba(45, 30, 20, 0.10);
    background:
        linear-gradient(
            135deg,
            var(--swem-primary, #2b1d18),
            var(--swem-secondary, #7a3c32)
        );
}

.auth-banner-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.30;
}

.auth-banner-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(20, 14, 10, 0.74) 0%,
            rgba(20, 14, 10, 0.42) 45%,
            rgba(20, 14, 10, 0.18) 100%
        );
}

.auth-banner-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    padding: 2.2rem;
}

.auth-banner-label,
.section-label {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.42rem 0.85rem;
    background: color-mix(in srgb, #ffffff 18%, transparent);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 900;
    margin-bottom: 1rem;
    backdrop-filter: blur(8px);
}

.auth-banner-content h1 {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 0.8rem;
}

.auth-banner-content p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.auth-main-section {
    padding: 0.5rem 0 3rem;
}

.auth-card {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    background: color-mix(in srgb, var(--swem-surface, #ffffff) 96%, #ffffff);
    border: 1px solid var(--swem-border, #e8dcd6);
    border-radius: 34px;
    padding: 2.2rem;
    box-shadow: 0 24px 70px rgba(45, 30, 20, 0.10);
}

.auth-card.auth-card-lg {
    max-width: 1100px;
}

.auth-header {
    margin-bottom: 1.6rem;
}

.auth-header .section-label {
    background: var(--swem-primary-soft, #fff1ed);
    color: var(--swem-secondary, #7a3c32);
    margin-bottom: 0.95rem;
}

.auth-header h1 {
    color: var(--swem-text, #2b1d18);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 0.75rem;
}

.auth-header p {
    color: var(--swem-muted, #7a675f);
    line-height: 1.75;
    margin: 0;
    max-width: 760px;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--swem-muted, #7a675f);
    text-decoration: none;
    font-weight: 800;
    margin-bottom: 1.15rem;
}

.auth-back-link:hover {
    color: var(--swem-primary, #2b1d18);
}

.auth-card .form-label {
    color: var(--swem-text, #2b1d18);
    font-weight: 800;
    font-size: 0.9rem;
}

.auth-input,
.auth-card input,
.auth-card select,
.auth-card textarea {
    border-radius: 18px;
    padding: 0.85rem 1rem;
    border: 1px solid var(--swem-border, #e8dcd6);
    background: var(--swem-surface, #ffffff);
    color: var(--swem-text, #2b1d18);
    box-shadow: none;
}

.auth-card textarea {
    border-radius: 20px;
    min-height: 120px;
}

.auth-input:focus,
.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
    border-color: var(--swem-primary, #2b1d18);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--swem-primary, #2b1d18) 16%, transparent);
}

.auth-submit-btn {
    border-radius: 999px;
    padding: 0.9rem 1.3rem;
    font-weight: 900;
    background: var(--swem-primary, #2b1d18);
    border-color: var(--swem-primary, #2b1d18);
    color: var(--swem-on-primary, #ffffff);
}

.auth-submit-btn:hover {
    background: var(--swem-secondary, #7a3c32);
    border-color: var(--swem-secondary, #7a3c32);
    color: var(--swem-on-primary, #ffffff);
}

.auth-cancel-btn {
    border-radius: 999px;
    padding: 0.9rem 1.3rem;
    font-weight: 900;
    color: var(--swem-primary, #2b1d18);
    border-color: var(--swem-border, #e8dcd6);
}

.auth-cancel-btn:hover {
    background: var(--swem-primary, #2b1d18);
    border-color: var(--swem-primary, #2b1d18);
    color: var(--swem-on-primary, #ffffff);
}

.auth-footer {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--swem-border, #e8dcd6);
    text-align: center;
}

.auth-footer p {
    color: var(--swem-muted, #7a675f);
    margin: 0;
}

.auth-footer a {
    color: var(--swem-primary, #2b1d18);
    font-weight: 900;
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--swem-secondary, #7a3c32);
}

.auth-check {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.auth-check input {
    margin-top: 0.2rem;
}

.auth-check label {
    color: var(--swem-muted, #7a675f);
    font-size: 0.92rem;
    line-height: 1.5;
}

.alert {
    border-radius: 18px;
}

/* Minha conta */
.account-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1rem;
}

.account-info-card {
    padding: 1.25rem;
    border-radius: 26px;
    background: var(--swem-bg, #fffaf7);
    border: 1px solid var(--swem-border, #e8dcd6);
}

.account-info-header {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.account-info-header > span {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: var(--swem-primary-soft, #fff1ed);
    color: var(--swem-secondary, #7a3c32);
    border: 1px solid var(--swem-border, #e8dcd6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-info-header h2 {
    color: var(--swem-text, #2b1d18);
    font-size: 1.12rem;
    font-weight: 900;
    margin: 0 0 0.2rem;
}

.account-info-header p {
    color: var(--swem-muted, #7a675f);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.55;
}

.account-info-list {
    display: grid;
    gap: 0.7rem;
}

.account-info-list div {
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--swem-border, #e8dcd6);
}

.account-info-list div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.account-info-list strong {
    display: block;
    color: var(--swem-text, #2b1d18);
    font-size: 0.82rem;
    font-weight: 900;
    margin-bottom: 0.12rem;
}

.account-info-list span {
    color: var(--swem-muted, #7a675f);
    font-size: 0.94rem;
    line-height: 1.5;
}

.account-address-list {
    display: grid;
    gap: 0.85rem;
}

.account-address-item {
    padding: 1rem;
    border-radius: 20px;
    background: var(--swem-surface, #ffffff);
    border: 1px solid var(--swem-border, #e8dcd6);
}

.account-address-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.55rem;
}

.account-address-top strong {
    color: var(--swem-text, #2b1d18);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
}

.account-address-top span {
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    background: var(--swem-primary-soft, #fff1ed);
    color: var(--swem-secondary, #7a3c32);
    font-size: 0.7rem;
    font-weight: 900;
    white-space: nowrap;
}

.account-address-item p {
    color: var(--swem-muted, #7a675f);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

.account-empty-text {
    color: var(--swem-muted, #7a675f);
    margin: 0;
}

.account-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.account-actions-row form {
    margin: 0;
}

.edit-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (max-width: 991px) {
    .auth-banner-card {
        min-height: 210px;
    }

    .auth-banner-content {
        padding: 1.6rem;
    }

    .auth-card {
        padding: 1.6rem;
    }

    .account-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .auth-topbar {
        padding-top: 1rem;
    }

    .auth-brand img,
    .auth-brand-placeholder {
        width: 46px;
        height: 46px;
    }

    .auth-brand-text strong {
        font-size: 1.05rem;
    }

    .auth-back-home {
        width: 100%;
        justify-content: center;
    }

    .auth-banner-card {
        min-height: 190px;
        border-radius: 24px;
    }

    .auth-banner-content {
        padding: 1.2rem;
    }

    .auth-banner-content h1 {
        letter-spacing: -1px;
    }

    .auth-main-section {
        padding-bottom: 2rem;
    }

    .auth-card,
    .auth-card.auth-card-lg {
        padding: 1.25rem;
        border-radius: 24px;
    }

    .account-actions-row,
    .edit-profile-actions {
        flex-direction: column;
    }

    .account-actions-row .btn,
    .account-actions-row form,
    .account-actions-row button,
    .edit-profile-actions .btn {
        width: 100%;
    }

    .account-address-top {
        align-items: flex-start;
        flex-direction: column;
    }
}

.auth-form-section {
    padding: 1.25rem;
    border-radius: 26px;
    background: var(--swem-bg, #fffaf7);
    border: 1px solid var(--swem-border, #e8dcd6);
    margin-bottom: 1rem;
}

.auth-form-section-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.auth-form-section-header > span {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: var(--swem-primary-soft, #fff1ed);
    color: var(--swem-secondary, #7a3c32);
    border: 1px solid var(--swem-border, #e8dcd6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-form-section-header h2 {
    color: var(--swem-text, #2b1d18);
    font-size: 1.15rem;
    font-weight: 900;
    margin: 0 0 0.25rem;
}

.auth-form-section-header p {
    color: var(--swem-muted, #7a675f);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 575px) {
    .auth-form-section {
        padding: 1rem;
        border-radius: 22px;
    }

    .auth-form-section-header {
        gap: 0.7rem;
    }

    .auth-form-section-header > span {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }
}

.account-address-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.account-address-actions form {
    margin: 0;
}

.address-action-btn {
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 900;
    color: var(--swem-primary, #2b1d18);
    background: var(--swem-surface, #ffffff);
    border: 1px solid var(--swem-border, #e8dcd6);
}

.address-action-btn:hover {
    color: var(--swem-on-primary, #ffffff);
    background: var(--swem-primary, #2b1d18);
    border-color: var(--swem-primary, #2b1d18);
}

.address-action-btn.danger {
    color: #9b2c2c;
}

.address-action-btn.danger:hover {
    color: #ffffff;
    background: #9b2c2c;
    border-color: #9b2c2c;
}

@media (max-width: 575px) {
    .account-address-actions {
        flex-direction: column;
    }

    .account-address-actions .btn,
    .account-address-actions form {
        width: 100%;
    }
}

.auth-input.is-loading {
    background-image: linear-gradient(
        90deg,
        transparent,
        color-mix(in srgb, var(--swem-primary, #2b1d18) 10%, transparent),
        transparent
    );
    background-size: 200% 100%;
    animation: cepLoading 1s linear infinite;
}

@keyframes cepLoading {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

.auth-input.is-invalid {
    border-color: #dc3545;
}

.auth-banner-card-no-image {
    min-height: 280px;
    background:
        radial-gradient(
            circle at top left,
            color-mix(in srgb, var(--swem-primary, #2b1d18) 18%, transparent),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            var(--swem-primary, #2b1d18),
            var(--swem-secondary, #7a3c32)
        );
}