/* Login institucional Meu Palcco — estrutura comercial + acesso seguro */
.guest-body.auth-experience {
    --auth-deep: #1b0e26;
    --auth-deep-soft: #1d132f;
    --auth-purple: #6d28d9;
    --auth-purple-dark: #4c1d95;
    --auth-purple-light: #efe8ff;
    --auth-orange: #f97316;
    --auth-orange-soft: #fed7aa;
    --auth-ink: #261535;
    --auth-muted: #786d84;
    --auth-line: #d8cde4;
    min-width: 320px;
    width: 100%;
    min-height: 100vh;
    display: block;
    place-items: initial;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: var(--auth-ink);
    background:
        linear-gradient(76deg, transparent 0 68%, rgba(249,115,22,.11) 69%, transparent 78%),
        linear-gradient(103deg, rgba(109,40,217,.16) 0, transparent 34%),
        linear-gradient(110deg, var(--auth-deep), var(--auth-deep-soft) 52%, var(--auth-purple-dark));
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.guest-body.auth-experience *,
.guest-body.auth-experience *::before,
.guest-body.auth-experience *::after {
    box-sizing: border-box;
}

.auth-shell {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.auth-product {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    margin: 0;
    padding: clamp(52px, 7vw, 104px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    color: #fff;
    background: transparent;
}

/*
 * Identidade visual musical do login.
 * Substitui os anéis/orbitas genéricos por um equalizador de áudio discreto,
 * construído em CSS e sem interferir na interação do formulário.
 */
.auth-product::after {
    content: none;
}

.auth-music-visual {
    position: absolute;
    right: clamp(24px, 4vw, 68px);
    bottom: clamp(28px, 7vh, 72px);
    z-index: 0;
    width: min(43%, 470px);
    height: min(31vh, 236px);
    min-height: 148px;
    pointer-events: none;
    opacity: .62;
    mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 100%);
}

.auth-music-visual::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 14px;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.24) 20%, rgba(249,115,22,.5) 72%, transparent);
}

.auth-music-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to top,
        transparent 0,
        transparent 31px,
        rgba(255,255,255,.035) 32px,
        rgba(255,255,255,.035) 33px
    );
}

.auth-equalizer {
    position: absolute;
    inset: 0 0 15px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: clamp(5px, .7vw, 9px);
}

.auth-equalizer span {
    position: relative;
    z-index: 1;
    width: clamp(4px, .48vw, 7px);
    height: calc(var(--level) * 1%);
    min-height: 24px;
    flex: 0 0 auto;
    border-radius: 999px 999px 3px 3px;
    transform: scaleY(.56);
    transform-origin: 50% 100%;
    background: linear-gradient(to top, rgba(249,115,22,.92), rgba(254,215,170,.72) 48%, rgba(255,255,255,.28));
    box-shadow: 0 0 18px rgba(249,115,22,.09);
    animation: auth-equalizer-pulse var(--speed) ease-in-out var(--delay) infinite alternate;
}


.auth-equalizer span:nth-child(1)  { --level: 34; --delay: -.15s; --speed: 2.6s; }
.auth-equalizer span:nth-child(2)  { --level: 58; --delay: -.90s; --speed: 2.2s; }
.auth-equalizer span:nth-child(3)  { --level: 76; --delay: -.35s; --speed: 2.9s; }
.auth-equalizer span:nth-child(4)  { --level: 48; --delay: -1.20s; --speed: 2.4s; }
.auth-equalizer span:nth-child(5)  { --level: 88; --delay: -.55s; --speed: 2.7s; }
.auth-equalizer span:nth-child(6)  { --level: 64; --delay: -1.50s; --speed: 3s; }
.auth-equalizer span:nth-child(7)  { --level: 42; --delay: -.75s; --speed: 2.3s; }
.auth-equalizer span:nth-child(8)  { --level: 72; --delay: -1.05s; --speed: 2.8s; }
.auth-equalizer span:nth-child(9)  { --level: 96; --delay: -.25s; --speed: 2.5s; }
.auth-equalizer span:nth-child(10) { --level: 60; --delay: -1.35s; --speed: 3.1s; }
.auth-equalizer span:nth-child(11) { --level: 82; --delay: -.65s; --speed: 2.6s; }
.auth-equalizer span:nth-child(12) { --level: 52; --delay: -1.70s; --speed: 2.9s; }
.auth-equalizer span:nth-child(13) { --level: 70; --delay: -.45s; --speed: 2.4s; }
.auth-equalizer span:nth-child(14) { --level: 92; --delay: -1.10s; --speed: 2.8s; }
.auth-equalizer span:nth-child(15) { --level: 56; --delay: -.85s; --speed: 3s; }
.auth-equalizer span:nth-child(16) { --level: 78; --delay: -1.40s; --speed: 2.5s; }
.auth-equalizer span:nth-child(17) { --level: 46; --delay: -.30s; --speed: 2.7s; }
.auth-equalizer span:nth-child(18) { --level: 68; --delay: -1.60s; --speed: 2.3s; }
.auth-equalizer span:nth-child(19) { --level: 86; --delay: -.70s; --speed: 2.9s; }
.auth-equalizer span:nth-child(20) { --level: 40; --delay: -1.25s; --speed: 2.6s; }

.auth-equalizer span:nth-child(3n) {
    background: linear-gradient(to top, rgba(109,40,217,.94), rgba(196,181,253,.68) 52%, rgba(255,255,255,.24));
    box-shadow: 0 0 18px rgba(109,40,217,.10);
}

.auth-equalizer span:nth-child(5n) {
    background: linear-gradient(to top, rgba(249,115,22,.9), rgba(216,180,254,.62) 58%, rgba(255,255,255,.22));
}

@keyframes auth-equalizer-pulse {
    0% {
        transform: scaleY(.38);
        opacity: .45;
    }
    46% {
        transform: scaleY(.78);
        opacity: .78;
    }
    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.auth-product__content {
    position: relative;
    z-index: 1;
    width: min(630px, 100%);
    font-family: "Raleway", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-product__brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: clamp(44px, 7vh, 76px);
    color: #fff;
    text-decoration: none;
}

.auth-product__mark {
    width: 50px;
    height: 50px;
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(17, 8, 29, .22);
}

.auth-product__name,
.auth-product__brand small {
    display: block;
}

.auth-product__name {
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: -.025em;
}

.auth-product__name strong {
    font-weight: 700;
}

.auth-product__brand small {
    margin-top: 2px;
    color: rgba(255,255,255,.68);
    font-size: .76rem;
}

.auth-product__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--auth-orange-soft);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.auth-product__eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 99px;
    background: var(--auth-orange);
}

.auth-product h1 {
    max-width: 650px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.65rem, 4.2vw, 4.15rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.052em;
}

.auth-title-mobile {
    display: none;
}

.auth-product__lead {
    max-width: 590px;
    margin: 25px 0 34px;
    color: rgba(255,255,255,.74);
    font-size: clamp(1.02rem, 1.35vw, 1.22rem);
    line-height: 1.62;
}

.auth-benefits {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-benefits li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    margin: 0;
    padding: 13px 14px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 17px;
    background: rgba(255,255,255,.055);
}

.auth-benefits__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--auth-orange-soft);
    background: rgba(249,115,22,.14);
}

.auth-benefits__icon svg {
    width: 22px;
    height: 22px;
}

.auth-benefits strong,
.auth-benefits small {
    display: block;
}

.auth-benefits strong {
    color: #fff;
    font-size: .94rem;
}

.auth-benefits small {
    margin-top: 4px;
    color: rgba(255,255,255,.62);
    font-size: .8rem;
    line-height: 1.45;
}

.auth-product__trust {
    margin: 30px 0 0;
    color: rgba(255,255,255,.47);
    font-size: .72rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.auth-access {
    position: relative;
    width: 100%;
    max-width: none;
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 32px clamp(42px, 6vw, 92px) 25px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    background:
        radial-gradient(circle at 92% 92%, rgba(109,40,217,.15), transparent 18rem),
        linear-gradient(145deg, #fff7f0, #eee8f4 58%, #ddd4ed);
}

.auth-language {
    display: flex;
    justify-content: flex-end;
    justify-self: end;
    align-self: start;
    gap: 7px;
    width: fit-content;
    max-width: max-content;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.auth-language a {
    width: 43px;
    min-width: 43px;
    height: 36px;
    min-height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    background: rgba(255,255,255,.70);
}

.auth-language a.is-active {
    border-color: rgba(255,255,255,.86);
    background: linear-gradient(145deg, var(--auth-orange), var(--auth-purple));
    box-shadow: 0 7px 16px rgba(109,40,217,.19);
}

.auth-language .locale-flag {
    display: block;
    width: 24px;
    height: 17px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(38,21,53,.08);
}

.auth-access__content {
    width: min(430px, 100%);
    margin: auto;
    padding: 50px 0 56px;
}

.auth-form-heading {
    margin-bottom: 28px;
}

.auth-form-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--auth-orange);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.auth-form-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--auth-orange);
    box-shadow: 0 0 0 6px rgba(249,115,22,.11);
}

.auth-form-heading h2,
.auth-access__content > h2 {
    margin: 13px 0 0;
    color: var(--auth-ink);
    font-size: clamp(2rem, 3vw, 2.45rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.04em;
}

.auth-form-heading p,
.auth-access__content > .muted {
    margin: 11px 0 0;
    color: var(--auth-muted);
    font-size: .94rem;
    line-height: 1.55;
}

.auth-login-form,
.auth-form {
    gap: 18px;
}

.auth-input-group label,
.auth-form label {
    color: #352640;
    font-size: .88rem;
    font-weight: 700;
}

.auth-input-group input,
.auth-form input {
    min-height: 56px;
    border: 1px solid #cdbde2;
    border-radius: 14px;
    color: var(--auth-ink);
    background: var(--auth-purple-light);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-input-group input:hover,
.auth-form input:hover {
    border-color: rgba(249,115,22,.48);
    background: #f4edff;
}

.auth-input-group input:focus,
.auth-form input:focus {
    border-color: var(--auth-orange);
    background: #f5efff;
    box-shadow: 0 0 0 4px rgba(249,115,22,.13), 0 12px 28px rgba(38,21,53,.08);
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.auth-link,
.auth-access a {
    color: var(--auth-orange);
}

.auth-link:hover,
.auth-link:focus,
.auth-access a:hover,
.auth-access a:focus {
    color: #c4510d;
}

.auth-demo-back {
    display: block;
    width: fit-content;
    margin: 2px auto 0;
    text-align: center;
}

.auth-password-field .password-toggle {
    width: 42px;
    height: 42px;
    right: 7px;
    border-radius: 11px;
}

.password-toggle {
    color: #71627e;
}

.password-toggle:hover,
.password-toggle:focus {
    color: var(--auth-orange);
    background: rgba(249,115,22,.09);
}

.password-toggle .icon-eye-off { display: none; }
.password-toggle.is-visible .icon-eye { display: none; }
.password-toggle.is-visible .icon-eye-off { display: block; }

.auth-submit {
    min-height: 58px;
    margin-top: 7px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(100deg, var(--auth-orange), var(--auth-purple));
    box-shadow: 0 16px 34px rgba(109,40,217,.22);
    font-weight: 700;
}

.auth-submit:hover,
.auth-submit:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 19px 40px rgba(109,40,217,.28);
}

.auth-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 18px 0 0;
    color: #887b93;
    font-size: .74rem;
    text-align: center;
}

.auth-security-note svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--auth-orange);
}

.auth-access .alert {
    margin-bottom: 18px;
    border-radius: 14px;
}

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #95899e;
    font-size: .72rem;
}

.auth-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
}

.auth-footer a {
    color: inherit;
    text-decoration: none;
}

.auth-footer a:hover,
.auth-footer a:focus {
    color: var(--auth-orange);
    text-decoration: underline;
}

/* Tablet: apresentação e acesso ocupam duas linhas completas. */
@media (min-width: 641px) and (max-width: 1100px) {
    .auth-shell {
        display: block;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .auth-product {
        min-height: auto;
        align-items: flex-start;
        padding: clamp(42px, 6vw, 64px);
        background:
            linear-gradient(73deg, transparent 0 72%, rgba(249,115,22,.12) 73%, transparent 83%),
            linear-gradient(105deg, rgba(109,40,217,.15), transparent 38%),
            linear-gradient(145deg, var(--auth-deep), var(--auth-deep-soft) 55%, var(--auth-purple-dark));
    }

    .auth-product__content {
        width: min(920px, 100%);
        margin: 0 auto;
    }

    .auth-product__brand {
        margin-bottom: 34px;
    }

    .auth-product h1 {
        max-width: 780px;
        font-size: clamp(2.7rem, 6vw, 3.75rem);
    }

    .auth-product__lead {
        max-width: 760px;
        margin: 21px 0 28px;
    }

    .auth-benefits {
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
        gap: 12px;
    }

    .auth-benefits li {
        min-height: 94px;
        padding: 11px 12px;
    }

    .auth-product__trust {
        margin-top: 24px;
    }

    .auth-access {
        min-height: 650px;
        padding: 30px clamp(42px, 8vw, 86px) 24px;
    }

    .auth-access__content {
        margin: 0 auto;
        padding: 42px 0 54px;
    }
}


@media (min-width: 641px) and (max-width: 1100px) {
    .auth-music-visual {
        top: 50%;
        right: clamp(20px, 4vw, 46px);
        bottom: auto;
        width: min(31vw, 300px);
        height: min(18vh, 128px);
        min-height: 82px;
        transform: translateY(-50%);
        opacity: .38;
    }

    .auth-equalizer span {
        width: clamp(4px, .62vw, 6px);
    }

}

/* Mobile: topo roxo integrado e painel de acesso com cantos arredondados. */
@media (max-width: 640px) {
    .guest-body.auth-experience {
        overflow-y: auto;
    }

    .auth-shell {
        display: block;
        width: 100%;
        max-width: none;
        min-height: 100vh;
        min-height: 100dvh;
        margin: 0;
        padding: 0;
    }

    .auth-product {
        width: 100%;
        min-height: 216px;
        align-items: flex-start;
        padding: 22px 22px 26px;
        background:
            linear-gradient(72deg, transparent 0 70%, rgba(249,115,22,.13) 71%, transparent 84%),
            linear-gradient(145deg, var(--auth-deep), var(--auth-purple-dark));
    }

    .auth-product__eyebrow,
    .auth-benefits,
    .auth-product__trust {
        display: none;
    }

    .auth-music-visual {
        top: 12px;
        right: 10px;
        bottom: auto;
        width: min(38vw, 150px);
        height: 88px;
        min-height: 0;
        opacity: .42;
        mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 100%);
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 100%);
    }

    .auth-music-visual::before {
        bottom: 8px;
    }

    .auth-music-visual::after {
        background: repeating-linear-gradient(
            to top,
            transparent 0,
            transparent 20px,
            rgba(255,255,255,.03) 21px,
            rgba(255,255,255,.03) 22px
        );
    }

    .auth-equalizer {
        inset: 0 0 9px;
        gap: 4px;
    }

    .auth-equalizer span {
        width: 4px;
        min-height: 10px;
    }

    .auth-equalizer span:nth-child(n+14) {
        display: none;
    }

    .auth-product__content {
        width: 100%;
    }

    .auth-product__brand {
        margin-bottom: 24px;
    }

    .auth-product__mark {
        width: 42px;
        height: 42px;
        border-radius: 13px;
        font-size: .88rem;
    }

    .auth-product__name {
        font-size: 1.18rem;
    }

    .auth-product__brand small {
        font-size: .68rem;
    }

    .auth-product h1 {
        max-width: 370px;
        font-size: clamp(1.85rem, 8vw, 2.15rem);
        line-height: 1.06;
    }

    .auth-title-desktop {
        display: none;
    }

    .auth-title-mobile {
        display: inline;
    }

    .auth-product__lead {
        max-width: 390px;
        margin: 12px 0 0;
        font-size: .88rem;
        line-height: 1.5;
    }

    .auth-access {
        width: 100%;
        min-height: calc(100vh - 216px);
        min-height: calc(100dvh - 216px);
        margin: 0;
        padding: 20px 22px 22px;
        border-radius: 28px 28px 0 0;
        overflow: hidden;
    }

    .auth-language {
        width: fit-content;
        max-width: max-content;
        margin-left: auto;
        margin-bottom: 4px;
    }

    .auth-access__content {
        margin: 0 auto;
        padding: 28px 0 42px;
    }

    .auth-form-heading {
        margin-bottom: 24px;
    }

    .auth-form-heading h2,
    .auth-access__content > h2 {
        font-size: 1.9rem;
    }

    .auth-input-group input,
    .auth-form input {
        min-height: 54px;
        font-size: 16px;
    }

    .auth-footer {
        align-items: center;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .auth-footer nav {
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .auth-product {
        padding-inline: 18px;
    }

    .auth-access {
        padding-inline: 16px;
        border-radius: 24px 24px 0 0;
    }

    .auth-footer nav {
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-input-group input,
    .auth-form input,
    .auth-submit {
        transition: none;
    }
}


/* Movimento decorativo nunca deve competir com a leitura ou acessibilidade. */
@media (prefers-reduced-motion: reduce) {
    .auth-equalizer span {
        animation: none;
        transform: scaleY(.72);
        opacity: .7;
    }
}

@media (max-width: 640px) and (max-height: 560px) {
    .auth-music-visual {
        width: min(32vw, 104px);
        height: 58px;
        opacity: .28;
    }

    .auth-equalizer span:nth-child(n+10) {
        display: none;
    }
}

.auth-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #8a7d98;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.auth-login-divider::before,
.auth-login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e8e1f2;
}

.auth-google-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    text-decoration: none;
}

.auth-google-button svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}
