/*
 * VERDE_BRASIL_LOJA_AUTH_GATE_V1
 * Login e troca obrigatória de senha.
 *
 * Não contém regra de autenticação.
 * Segurança real permanece no Portal Auth.
 */

html,
body {
    min-height: 100%;
}

body.vb-auth-mode {
    margin: 0;
    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(211, 183, 114, .15),
            transparent 28rem
        ),
        radial-gradient(
            circle at 90% 85%,
            rgba(34, 83, 59, .18),
            transparent 30rem
        ),
        linear-gradient(
            145deg,
            #f7f4ec 0%,
            #f1eee5 45%,
            #e9efe8 100%
        );
}

.vb-auth-shell {
    min-height: 100vh;
    box-sizing: border-box;
    display: grid;
    grid-template-columns:
        minmax(320px, 1fr)
        minmax(430px, 520px);
    align-items: stretch;
    font-family:
        "Outfit",
        system-ui,
        sans-serif;
    color: #183627;
}

.vb-auth-brand {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 56px clamp(34px, 6vw, 96px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(
            145deg,
            rgba(17, 56, 39, .97),
            rgba(29, 78, 55, .94)
        );
    color: #fff;
}

.vb-auth-brand::before,
.vb-auth-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.vb-auth-brand::before {
    width: 440px;
    height: 440px;
    top: -220px;
    right: -150px;
    border: 1px solid rgba(220, 193, 122, .20);
}

.vb-auth-brand::after {
    width: 560px;
    height: 560px;
    bottom: -340px;
    left: -240px;
    border: 1px solid rgba(220, 193, 122, .16);
}

.vb-auth-logo {
    position: relative;
    z-index: 2;
    width: min(270px, 72%);
    height: auto;
    filter: brightness(0) invert(1);
}

.vb-auth-brand-copy {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin: auto 0;
    padding: 70px 0;
}

.vb-auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: #dcc27f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.vb-auth-brand-copy h1 {
    margin: 0;
    max-width: 720px;
    font-family:
        "Cormorant Garamond",
        serif;
    font-size: clamp(48px, 6vw, 78px);
    line-height: .95;
    font-weight: 600;
    letter-spacing: -.03em;
}

.vb-auth-brand-copy p {
    max-width: 560px;
    margin: 25px 0 0;
    color: rgba(255,255,255,.78);
    font-size: 17px;
    line-height: 1.7;
}

.vb-auth-brand-footer {
    position: relative;
    z-index: 2;
    color: rgba(255,255,255,.58);
    font-size: 12px;
    letter-spacing: .05em;
}

.vb-auth-panel-wrap {
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 46px clamp(28px, 5vw, 72px);
}

.vb-auth-panel {
    width: 100%;
    max-width: 440px;
}

.vb-auth-mobile-logo {
    display: none;
    width: 190px;
    margin: 0 auto 32px;
}

.vb-auth-lock {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    background: #e8eee9;
    color: #1d563b;
    font-size: 22px;
}

.vb-auth-panel h2 {
    margin: 0;
    font-family:
        "Cormorant Garamond",
        serif;
    color: #173929;
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
}

.vb-auth-subtitle {
    margin: 14px 0 30px;
    color: #6c786f;
    font-size: 15px;
    line-height: 1.6;
}

.vb-auth-form {
    display: grid;
    gap: 18px;
}

.vb-auth-field {
    display: grid;
    gap: 8px;
}

.vb-auth-field label {
    color: #263e31;
    font-size: 13px;
    font-weight: 700;
}

.vb-auth-field input {
    width: 100%;
    height: 52px;
    box-sizing: border-box;
    border: 1px solid #d7ddd8;
    border-radius: 13px;
    padding: 0 15px;
    outline: none;
    background: rgba(255,255,255,.86);
    color: #183627;
    font: inherit;
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.vb-auth-field input:focus {
    border-color: #397254;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(54,111,79,.10);
}

.vb-auth-submit {
    min-height: 54px;
    border: 0;
    border-radius: 14px;
    margin-top: 4px;
    padding: 0 22px;
    background:
        linear-gradient(
            135deg,
            #194c34,
            #286745
        );
    color: white;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    box-shadow:
        0 14px 28px rgba(28, 82, 56, .18);
}

.vb-auth-submit:hover {
    transform: translateY(-1px);
}

.vb-auth-submit:disabled {
    opacity: .62;
    cursor: wait;
    transform: none;
}

.vb-auth-message {
    min-height: 20px;
    margin-top: 16px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.vb-auth-message.is-error {
    padding: 11px 13px;
    background: #fff0ed;
    color: #9b372b;
}

.vb-auth-message.is-success {
    padding: 11px 13px;
    background: #eaf5ed;
    color: #24623c;
}

.vb-auth-help {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #dde2de;
    color: #78827b;
    font-size: 13px;
    line-height: 1.6;
}

.vb-auth-help a {
    color: #285d42;
    font-weight: 700;
    text-decoration: none;
}

.vb-auth-loading {
    display: grid;
    justify-items: center;
    gap: 17px;
    padding: 48px 0;
    color: #657269;
    text-align: center;
}

.vb-auth-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #d8dfda;
    border-top-color: #245c40;
    border-radius: 50%;
    animation: vb-auth-spin .75s linear infinite;
}

@keyframes vb-auth-spin {
    to {
        transform: rotate(360deg);
    }
}

.vb-auth-view[hidden] {
    display: none !important;
}

.vb-store-loading[hidden] {
    display: none !important;
}

.vb-auth-logout {
    min-height: 38px;
    border: 1px solid #d9dfda;
    border-radius: 10px;
    padding: 0 14px;
    background: #fff;
    color: #2a4938;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
}

.vb-auth-logout:hover {
    background: #f3f6f3;
}

@media (max-width: 900px) {

    .vb-auth-shell {
        display: block;
    }

    .vb-auth-brand {
        display: none;
    }

    .vb-auth-panel-wrap {
        min-height: 100vh;
        padding:
            38px
            24px
            52px;
    }

    .vb-auth-mobile-logo {
        display: block;
    }

    .vb-auth-panel h2 {
        font-size: 37px;
    }
}

@media (max-width: 480px) {

    .vb-auth-panel-wrap {
        padding-left: 19px;
        padding-right: 19px;
    }

    .vb-auth-panel h2 {
        font-size: 34px;
    }
}


/* ================================================================
   VERDE_BRASIL_LOGIN_VISUAL_V4_1_BRAND_EMPHASIS_LEFT_MOTION

   Ajuste fino:
   - destaque para "Verde Brasil"
   - motion visível, porém sutil, no lado esquerdo
   - lado direito preservado
   ================================================================ */


/* ------------------------------------------------
   LOGO MENOR, MAS MAIS PRESENTE
   ------------------------------------------------ */

.vb-auth-logo {
    width: min(216px, 72%);
    filter:
        brightness(0)
        invert(1)
        drop-shadow(0 8px 18px rgba(0,0,0,.08));
}


/* ------------------------------------------------
   TÍTULO ESQUERDO — mesma linha da V4
   ------------------------------------------------ */

.vb-auth-brand-copy h1 {
    max-width: 620px;

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 56px;
    line-height: 1.02;
    font-weight: 600;
    letter-spacing: -.02em;
}

.vb-auth-brand-copy {
    max-width: 650px;
    position: relative;
    z-index: 3;
}

.vb-auth-brand-copy p {
    max-width: 570px;
    position: relative;
    z-index: 3;
}

.vb-auth-brand-footer,
.vb-auth-logo {
    position: relative;
    z-index: 3;
}


/* ------------------------------------------------
   DESTAQUE DO NOME VERDE BRASIL
   ------------------------------------------------ */

.vb-auth-brand-accent {
    color: #e2c77e;
    font-weight: 700;
    text-shadow: 0 0 14px rgba(226, 199, 126, .08);
}


/* ------------------------------------------------
   ANIMAÇÃO NO LADO ESQUERDO
   ------------------------------------------------ */

.vb-auth-brand {
    isolation: isolate;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 28% 78%,
            rgba(95, 154, 112, .10),
            transparent 20rem
        ),
        linear-gradient(
            145deg,
            #123b2a 0%,
            #174a34 58%,
            #1c553b 100%
        );
}

/* círculo superior: movimento suave */
.vb-auth-brand::before {
    border-color: rgba(220, 193, 122, .16);

    animation:
        vb-v41-circle-drift
        15s
        ease-in-out
        infinite
        alternate;
}

/* halo animado no canto inferior esquerdo */
.vb-auth-brand::after {
    width: 640px;
    height: 640px;

    left: -300px;
    bottom: -390px;

    border:
        1px solid
        rgba(220, 193, 122, .10);

    box-shadow:
        150px -110px 150px
        rgba(90, 150, 108, .10);

    animation:
        vb-v41-aurora-left
        14s
        ease-in-out
        infinite
        alternate;
}


/* entrada discreta do conteúdo */
.vb-auth-logo {
    animation:
        vb-v41-enter
        .65s
        ease-out
        both;
}

.vb-auth-brand-copy {
    animation:
        vb-v41-enter
        .72s
        .08s
        ease-out
        both;
}


@keyframes vb-v41-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes vb-v41-circle-drift {
    from {
        transform:
            translate3d(0, 0, 0);
    }

    to {
        transform:
            translate3d(-14px, 14px, 0);
    }
}

@keyframes vb-v41-aurora-left {
    from {
        transform:
            translate3d(0, 26px, 0)
            scale(1);
        opacity: .92;
    }

    to {
        transform:
            translate3d(26px, -24px, 0)
            scale(1.04);
        opacity: 1;
    }
}


/* ------------------------------------------------
   RESPONSIVO
   ------------------------------------------------ */

@media (max-width: 1200px) {
    .vb-auth-brand-copy h1 {
        font-size: 52px;
    }
}

@media (max-width: 900px) {
    .vb-auth-brand-copy h1 {
        font-size: 48px;
    }
}


/* ------------------------------------------------
   ACESSIBILIDADE
   ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    .vb-auth-logo,
    .vb-auth-brand-copy,
    .vb-auth-brand::before,
    .vb-auth-brand::after {
        animation: none !important;
    }
}


/* ================================================================
   VERDE_BRASIL_VOLTA_PORTAL_REVENDA_V1
   Link discreto de retorno ao portal institucional.
   ================================================================ */

.vb-auth-back-portal {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-top: 17px;

    color: #557060;

    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;

    text-decoration: none;

    transition:
        color .18s ease;
}


.vb-auth-back-arrow {
    display: inline-block;

    font-size: 15px;
    line-height: 1;

    transition:
        transform .18s ease;
}


.vb-auth-back-portal:hover {
    color: #285d42;
}


.vb-auth-back-portal:hover .vb-auth-back-arrow {
    transform:
        translateX(-3px);
}


.vb-auth-back-portal:focus-visible {
    outline:
        2px solid
        rgba(40, 93, 66, .35);

    outline-offset: 4px;

    border-radius: 3px;
}


@media (prefers-reduced-motion: reduce) {

    .vb-auth-back-portal,
    .vb-auth-back-arrow {
        transition: none;
    }
}
