/* =====================================================
   SAVE+ AUTH
===================================================== */

:root {
    --save-auth-green: #19d36b;
    --save-auth-green-soft: #dff7e8;
    --save-auth-green-deep: #0d9f4f;

    --save-auth-yellow: #f4c542;

    --save-auth-graphite: #17191c;
    --save-auth-graphite-2: #202328;
    --save-auth-graphite-3: #2a2e34;

    --save-auth-white: #ffffff;
    --save-auth-text: #f4f5f6;
    --save-auth-muted: #9da4ad;

    --save-auth-border:
        rgba(
            255,
            255,
            255,
            0.08
        );
}


/* =====================================================
   CONTROLE DE CAMADAS
===================================================== */

.save-auth-screen {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 999999;

    overflow-y: auto;
    overscroll-behavior: contain;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


.save-auth-screen.is-active {
    display: block;
}


.save-auth-view {
    min-height: 100%;
}


.save-auth-view.is-hidden {
    display: none;
}


/* =====================================================
   LOGIN — FUNDO GRAFITE
===================================================== */

.save-auth-login-view {
    min-height: 100dvh;

background:
    radial-gradient(
        circle at 50% 0%,
        rgba(0, 200, 83, 0.055),
        transparent 36%
    ),
    linear-gradient(
        180deg,
        #151515 0%,
        #1d1d1d 42%,
        #1d1d1d 72%,
        #181818 100%
    );

    color:
        var(--save-auth-text);

    position: relative;
    overflow: hidden;
}


.save-auth-login-view::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    opacity: 0.22;

    background-image:
        radial-gradient(
            rgba(255, 255, 255, 0.12) 0.7px,
            transparent 0.7px
        );

    background-size:
        7px 7px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 78%
        );
}


/* =====================================================
   CONTAINER
===================================================== */

.save-auth-shell {
    width: min(
        100%,
        430px
    );

    min-height: 100dvh;

    margin: 0 auto;

    padding:
        34px
        18px
        28px;

    box-sizing: border-box;

    position: relative;
    z-index: 1;
}


/* =====================================================
   HERO / MARCA
===================================================== */

.save-auth-hero {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 215px;

    margin-bottom: 12px;
}


.save-auth-brand {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}


.save-auth-logo {
    width: 138px;
    height: 138px;

    object-fit: contain;

    display: block;

    margin: 0 auto -8px;

    transform:
        translate(
            1px,
            15px
        );
}


.save-auth-brand-name {
    display: flex;
    align-items: baseline;

    font-size: 35px;
    line-height: 1;

    font-weight: 800;

    letter-spacing: -1.5px;

    margin-bottom: 13px;
}


.save-auth-brand-name span {
    color: var(--saveplus-brand-green);
}


.save-auth-brand-name strong {
    color:
        var(--save-auth-yellow);

    margin-left: 1px;
}


.save-auth-tagline {
    color:
        #f4f5f6;

    font-size: 17px;
    line-height: 1.35;

    font-weight: 500;
}


.save-auth-tagline strong {
    color:
        var(--save-auth-green);

    font-weight: 800;
}

/* =====================================================
   CIRCUITOS LATERAIS — LOGIN SAVE+
===================================================== */

.save-auth-circuit {
    position: absolute;

    top: 50%;

    width: 175px;
    height: auto;

    opacity: 0.88;

    transform: translateY(-50%);

    object-fit: contain;

    pointer-events: none;
    user-select: none;

    z-index: 0;
}


.save-auth-circuit-left {
    left: -8px;
}


.save-auth-circuit-right {
    right: -8px;
}

/* =====================================================
   CARD LOGIN
===================================================== */

.save-auth-card {
    background:
        linear-gradient(
            180deg,
            rgba(38, 41, 46, 0.98),
            rgba(28, 31, 35, 0.98)
        );

    border:
        1px solid
        var(--save-auth-border);

    border-radius:
        24px;

    padding:
        22px
        18px
        20px;

    box-shadow:
        0
        18px
        45px
        rgba(0, 0, 0, 0.34);
}


/* =====================================================
   CABEÇALHO CARD
===================================================== */

.save-auth-card-header {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 21px;
}


.save-auth-user-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(25, 211, 107, 0.14);

    color:
        var(--save-auth-green);

    font-size: 20px;
}

.save-auth-user-icon svg {
    width: 22px;
    height: 22px;

    fill: none;

    stroke:
        var(--save-auth-green);

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.save-auth-field-icon {
    width: 21px;
    height: 21px;

    flex: 0 0 21px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--save-auth-green);
}


.save-auth-field-icon svg {
    width: 20px;
    height: 20px;

    fill: none;

    stroke:
        var(--save-auth-green);

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.save-auth-title {
    color:
        #ffffff;

    font-size: 18px;
    line-height: 1.2;

    font-weight: 750;

    margin-bottom: 4px;
}


.save-auth-subtitle {
    color:
        var(--save-auth-muted);

    font-size: 12px;
    line-height: 1.35;
}


/* =====================================================
   CAMPOS
===================================================== */

.save-auth-field {
    height: 52px;

    display: flex;
    align-items: center;

    gap: 11px;

    box-sizing: border-box;

    padding:
        0
        13px;

    margin-bottom: 12px;

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    border-radius:
        13px;

    background:
        rgba(12, 14, 16, 0.42);

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}


.save-auth-field:focus-within {
    border-color:
        rgba(25, 211, 107, 0.75);

    box-shadow:
        0
        0
        0
        3px
        rgba(25, 211, 107, 0.08);

    background:
        rgba(12, 14, 16, 0.62);
}



.save-auth-field input {
    flex: 1;

    min-width: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color:
        var(--save-auth-white);

    font-size: 14px;

    font-family: inherit;
}


.save-auth-field input::placeholder {
    color:
        #7f8791;
}


/* =====================================================
   SENHA
===================================================== */

.save-auth-password-toggle {
    width: 34px;
    height: 52px;

    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    align-self: center;

    border: 0;
    background: transparent;

    cursor: pointer;

    margin: 0;
    padding: 0;
}


.save-auth-password-toggle svg {
    width: 21px;
    height: 21px;

    fill: none;

    stroke: #a6adb5;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.save-auth-primary-button {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;
}


.save-auth-primary-button svg {
    width: 18px;
    height: 18px;

    fill: none;

    stroke: #ffffff;
    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.save-register-password-wrap button {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
}

.save-register-password-wrap button svg {
    width: 20px;
    height: 20px;

    display: block;

    fill: none;
    stroke: #69736d;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =====================================================
   ESQUECEU SENHA
===================================================== */

.save-auth-forgot {
    display: block;

    margin:
        2px
        0
        15px
        auto;

    padding: 0;

    border: 0;

    background: transparent;

    color:
        var(--save-auth-green);

    font-size: 11px;
    font-weight: 650;

    cursor: pointer;
}


/* =====================================================
   MENSAGEM
===================================================== */

.save-auth-message {
    min-height: 16px;

    margin-bottom: 7px;

    font-size: 11px;
    line-height: 1.35;

    text-align: center;
}


/* =====================================================
   BOTÃO PRINCIPAL
===================================================== */

.save-auth-primary-button {
    width: 100%;
    height: 49px;

    border: 0;
    border-radius: 13px;

    background:
        linear-gradient(
            180deg,
            #21df78,
            #13bc5c
        );

    color:
        #ffffff;
    font-size: 15px;
    font-weight: 650;

    cursor: pointer;

    box-shadow:
        0
        7px
        18px
        rgba(20, 190, 92, 0.20);

    transition:
        transform 0.12s ease,
        filter 0.12s ease;
}


.save-auth-primary-button:active {
    transform:
        scale(0.985);
}


/* =====================================================
   DIVISOR
===================================================== */

.save-auth-divider {
    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

    gap: 10px;

    margin:
        18px
        0;
}


.save-auth-divider span {
    height: 1px;

    background:
        rgba(255, 255, 255, 0.09);
}


.save-auth-divider div {
    color:
        #777f88;

    font-size: 11px;
}


/* =====================================================
   GOOGLE
===================================================== */

.save-auth-google-button {
    width: 100%;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    border:
        1px solid
        rgba(25, 211, 107, 0.45);

    border-radius:
        13px;

    background:
        rgba(255, 255, 255, 0.025);

    color:
        #e8eaec;

    font-size: 13px;
    font-weight: 650;

    cursor: pointer;
}


.save-auth-google-icon {
    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;
}


.save-auth-google-icon svg {
    width: 21px;
    height: 21px;
}


/* =====================================================
   TROCAR PARA CADASTRO
===================================================== */

.save-auth-switch {
    margin-top: 17px;

    text-align: center;

    color:
        #9299a1;

    font-size: 11px;
}


.save-auth-switch button {
    border: 0;

    background: transparent;

    color:
        var(--save-auth-green);

    font-size: inherit;
    font-weight: 750;

    cursor: pointer;

    padding:
        0
        0
        0
        3px;
}


/* =====================================================
   BENEFÍCIOS
===================================================== */

.save-auth-benefits {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            1fr
        );

    gap: 0;

    margin-top: 24px;

    padding:
        0
        4px;
}


.save-auth-benefit {
    min-width: 0;

    padding:
        0
        10px;

    text-align: center;

    position: relative;
}


.save-auth-benefit +
.save-auth-benefit::before {
    content: "";

    position: absolute;

    left: 0;
    top: 10px;
    bottom: 8px;

    width: 1px;

    background:
        rgba(255, 255, 255, 0.07);
}


.save-auth-benefit-icon {
    width: 52px;
    height: 52px;

    margin:
        0
        auto
        7px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}


.save-auth-benefit-icon img {
    display: block;

    width: 46px;
    height: 46px;

    object-fit: contain;

    user-select: none;
    pointer-events: none;
}


.save-auth-benefit strong {
    display: block;

    color:
        var(--save-auth-green);

    font-size: 10px;
    line-height: 1.2;

    margin-bottom: 4px;
}


.save-auth-benefit span {
    display: block;

    color:
        #7f8790;

    font-size: 8.5px;
    line-height: 1.3;
}


/* =====================================================
   CADASTRO — PADRÃO LISTA / HISTÓRICO SAVE+
===================================================== */

.save-auth-register-view {
    min-height: 100dvh;

    background:
        #f5faf6;

    color:
        #202020;
}


.save-register-shell {
    width: min(
        100%,
        430px
    );

    min-height: 100dvh;

    margin: 0 auto;

    padding: 0;

    box-sizing: border-box;

    background:
        #f5faf6;
}


/* =====================================================
   CABEÇALHO
===================================================== */

.save-register-header {
    min-height: 67px;

    padding:
        10px
        16px
        9px;

    display: flex;
    align-items: center;

    flex-shrink: 0;

    box-sizing: border-box;

    background:
        linear-gradient(
            to bottom,

            #ffffff 0%,
            #ffffff 48%,

            rgba(253, 254, 253, 1) 60%,
            rgba(250, 253, 251, 1) 72%,
            rgba(247, 251, 248, 1) 84%,

            #f5faf6 100%
        );

    border-bottom: 0;
}


.save-register-header-left {
    display: flex;
    align-items: center;

    gap: 8px;
}


.save-register-back {
    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color:
        #222222;

    line-height: 1;

    cursor: pointer;
}


.save-register-back:active {
    background:
        #edf6ef;
}


.save-register-title {
    margin: 0;

    font-size: 16px;
    font-weight: 750;
    line-height: 1.2;

    color:
        #202020;
}


/* =====================================================
   CONTEÚDO
===================================================== */

.save-register-content {
    width: 100%;

    padding:
        8px
        16px
        24px;

    box-sizing: border-box;
}

/* =====================================================
   BLOCOS
===================================================== */

.save-register-group {
    width: 100%;

    margin-bottom: 8px;

    padding:
        12px
        12px
        2px;

    box-sizing: border-box;

    border:
        1px solid
        #e3e9e4;

    border-radius:
        14px;

    background:
        #ffffff;

    box-shadow:
        0
        1px
        3px
        rgba(
            0,
            0,
            0,
            0.025
        );
}


/* =====================================================
   CAMPOS
===================================================== */

.save-register-field {
    display: block;

    margin-bottom: 10px;
}


.save-register-field > span {
    display: block;

    margin:
        0
        0
        5px
        2px;

    color:
        #333333;

    font-size: 10.5px;
    font-weight: 650;
}


.save-register-field > span small {
    color:
        #8c928e;

    font-size: 9px;
    font-weight: 500;
}


.save-register-field input {
    width: 100%;
    height: 42px;

    box-sizing: border-box;

    margin: 0;

    padding:
        0
        12px;

    border:
        1px solid
        #e3e9e4;

    border-radius:
        10px;

    outline: 0;

    background:
        #fdfefd;

    color:
        #202020;

    font-size: 12.5px;

    font-family: inherit;

    box-shadow:
        none;
}


.save-register-field input::placeholder {
    color:
        #a1a6a2;
}


.save-register-field input:focus {
    border-color:
        rgba(
            20,
            148,
            71,
            0.42
        );

    box-shadow:
        0
        0
        0
        3px
        rgba(
            20,
            148,
            71,
            0.06
        );
}


/* =====================================================
   LOCALIZAÇÃO
===================================================== */

.save-register-location-help {
    margin:
        -2px
        0
        10px
        2px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 4px;

    color:
        #707771;

    font-size: 9.5px;
}


.save-register-location-help button {
    margin: 0;
    padding: 0;

    border: 0;

    background: transparent;

    color:
        #148b43;

    font-family: inherit;

    font-size: 9.5px;
    font-weight: 750;

    cursor: pointer;
}


/* =====================================================
   NÚMERO + COMPLEMENTO
===================================================== */

.save-register-address-row {
    display: grid;

    grid-template-columns:
        0.72fr
        1.28fr;

    gap: 8px;
}


/* =====================================================
   SENHAS
===================================================== */

.save-register-password-wrap {
    position: relative;
}


.save-register-password-wrap input {
    padding-right:
        44px;
}


.save-register-password-wrap button {
    position: absolute;

    top: 50%;
    right: 6px;

    width: 32px;
    height: 32px;

    margin: 0;
    padding: 0;

    transform:
        translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    background: transparent;

    cursor: pointer;
}


.save-register-password-wrap button svg {
    width: 19px;
    height: 19px;

    display: block;

    fill: none;

    stroke:
        #69736d;

    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =====================================================
   MENSAGEM
===================================================== */

.save-register-message {
    min-height: 14px;

    margin:
        -2px
        0
        7px;

    color:
        #555555;

    font-size: 10px;
    text-align: center;
}


/* =====================================================
   AÇÕES
===================================================== */

.save-register-actions {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 11px;

    padding-top: 2px;
}

/* Espaço entre uma ação e o próximo card */
.save-register-actions + .save-register-group {
    margin-top: 10px;
}

.save-register-submit {
    min-width: 128px;
    height: 38px;

    margin: 0;
    padding:
        0
        16px;

    border: 0;
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #19a84b 0%,
            #11863d 58%,
            #0d7334 100%
        );

    color:
        #ffffff;

    font-family: inherit;

    font-size: 12px;
    font-weight: 750;

    cursor: pointer;

    box-shadow: none;
}


.save-register-submit:active {
    transform:
        scale(0.96);
}


.save-register-login-link {
    margin: 0;

    color:
        #6f756f;

    font-size: 10px;

    text-align: center;
}


.save-register-login-link button {
    margin: 0;
    padding:
        0
        0
        0
        3px;

    border: 0;

    background: transparent;

    color:
        #148b43;

    font-family: inherit;

    font-size: inherit;
    font-weight: 750;

    cursor: pointer;
}


/* =====================================================
   CELULARES ESTREITOS
===================================================== */

@media (
    max-width: 360px
) {

    .save-register-content {
        padding-left: 10px;
        padding-right: 10px;
    }


    .save-register-header {
        padding-left: 10px;
        padding-right: 10px;
    }


    .save-register-group {
        padding-left: 10px;
        padding-right: 10px;
    }


    .save-register-address-row {
        grid-template-columns:
            0.78fr
            1.22fr;
    }

}

/* =============================================
   MODAL — SAIR DA CONTA
============================================= */

.logout-modal-text {
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================
   MODAL — EXCLUIR CONTA
============================================= */

.delete-account-confirm {
    background: #e53935;
    border-color: #e53935;
    color: #ffffff;
}

.delete-account-confirm:hover {
    background: #d32f2f;
    border-color: #d32f2f;
}

.delete-account-confirm:active {
    background: #c62828;
    border-color: #c62828;
}

/* Save+ password recovery dialogs */
.save-auth-flow-overlay{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:20px;background:rgba(10,18,14,.62);backdrop-filter:blur(3px)}
.save-auth-flow-card{position:relative;width:min(100%,460px);padding:28px;border-radius:22px;background:#fff;color:#252a27;box-shadow:0 20px 70px rgba(0,0,0,.28)}
.save-auth-flow-card h2{margin:0 42px 10px 0;font-size:22px;font-weight:750}
.save-auth-flow-description{margin:0 0 18px;color:#5c625e;line-height:1.5}
.save-auth-flow-close{position:absolute;top:16px;right:16px;width:36px;height:36px;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#4b514d;font-size:25px;line-height:1;cursor:pointer;display:grid;place-items:center}
.save-auth-flow-close:hover{background:transparent;box-shadow:none}
.save-auth-flow-close:focus-visible{outline:2px solid #77c122;outline-offset:2px}
.save-auth-flow-form{display:grid;gap:14px}
.save-auth-flow-field{display:grid;gap:7px;font-size:14px;font-weight:650;color:#3b423d}
.save-auth-flow-field input{box-sizing:border-box;width:100%;min-height:48px;padding:11px 13px;border:1px solid #cfd6d0;border-radius:12px;font:inherit;color:#222;background:#fff}
.save-auth-flow-field input:focus{outline:2px solid #77c122;outline-offset:1px}
.save-auth-flow-submit{min-height:48px;border:0;border-radius:12px;background:#0a9f49;color:white;font-size:16px;font-weight:700;cursor:pointer}
.save-auth-flow-submit:disabled{opacity:.65;cursor:wait}
.save-auth-flow-message{min-height:0;margin-top:10px;color:#b42318;font-size:14px;line-height:1.4}
@media(max-width:480px){.save-auth-flow-card{padding:24px 20px;border-radius:18px}}
