/* Login/Registro Theme 2 – visual 827win (fundo escuro, roxo) */

/*
 * O backdrop-filter do overlay NÃO acompanha o fade de fechamento:
 * o modal some e o fundo continua embaçado até o leave (~0.3s) terminar.
 * Mantém o blur enquanto o cadastro/login está aberto; tira na hora do close.
 */
.ui-overlay.isShowFrostedGlassEffect.ui-overlay__animate-fade-leave-active,
.ui-overlay.isShowFrostedGlassEffect.ui-overlay__animate-fade-leave-to {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.ui-overlay.wg-fixed-no-desktop:has([class*="_loginRegisterDialog_"]).ui-overlay__animate-fade-leave-active,
.ui-overlay.wg-fixed-no-desktop:has([class*="_loginRegisterDialog_"]).ui-overlay__animate-fade-leave-to {
    --animate-duration: 0s;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background-color: transparent !important;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    pointer-events: none !important;
}

/* Overlay centralizado + abertura suave */
.ui-overlay.wg-fixed-no-desktop:has([class*="_loginRegisterDialog_"]) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.3rem 0 0.6rem;
    overflow: auto;
}

.ui-overlay.wg-fixed-no-desktop:has([class*="_loginRegisterDialog_"]) [class*="_loginRegisterDialog_"] {
    animation: phillyps-lr-dialog-in var(--animate-duration, 0.3s) ease-out both;
    will-change: transform, opacity;
}

@keyframes phillyps-lr-dialog-in {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(0.06rem);
    }

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

/* Fundo escuro no modal (827win usa --skin__bg_2, não gradiente do header) */
[class*="_loginRegisterDialog_"][data-theme="2"] .ui-dialog__main {
    background: var(--skin__bg_2, #161616) !important;
    border-radius: 0.2rem;
    overflow: visible;
}

[class*="_loginRegisterDialog_"][data-theme="2"] .loginRegisterFragment {
    background: transparent;
    color: var(--skin__lead, #fff);
}

/* Slogan abaixo da logo (Theme 2) */
[class*="_loginRegisterDialog_"] .login-register-slogan-text-wrap,
[class*="_loginRegisterDialog_"] [class*="_sloganTextWrap_"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0.2rem;
    width: 100%;
}

[class*="_loginRegisterDialog_"] [class*="_sloganTextWrap_"] [class*="_lrSpace_"] {
    width: 100%;
    padding: 0 var(--left-right-space, 0.32rem);
    box-sizing: border-box;
}

[class*="_loginRegisterDialog_"] [class*="_slogan_"] {
    font-size: 0.22rem;
    line-height: 1.5;
    text-align: center;
    word-break: break-word;
    color: #ffffff;
}

[class*="_loginRegisterDialog_"] [class*="_slogan_"] p {
    margin: 0.04rem 0;
    line-height: 1.5;
}

[class*="_loginRegisterDialog_"] [class*="_slogan_"] span {
    color: #ffffff !important;
}

/* Telefone embutido no campo de conta (sem campo separado +55) */
[class*="_loginRegisterDialog_"] .lobby-form-item--phone,
[class*="_loginRegisterDialog_"] .lobby-form-item[name="phone"],
[class*="_loginRegisterDialog_"] [class*="lobby-form-item"][class*="--phone"]:not(.lobby-form-item--account) {
    display: none !important;
}

/* Cadastro de senha / Cadastro com código (switch subtype) */
[class*="_loginRegisterDialog_"] .account-switch-sub-type,
[class*="_loginRegisterDialog_"] [class*="_switchSubtype_"] {
    margin: 0.1rem 0 0.14rem;
}

[class*="_loginRegisterDialog_"] .account-switch-sub-type [class*="_list_"],
[class*="_loginRegisterDialog_"] [class*="_switchSubtype_"] [class*="_list_"] {
    display: flex;
    align-items: flex-start;
    list-style: none;
    margin: 0 0 0.2rem;
    padding: 0;
    min-height: 0.26rem;
    color: var(--skin__lead, #fff);
    font-size: 0.22rem;
}

[class*="_loginRegisterDialog_"] .account-switch-sub-type [class*="_item_"],
[class*="_loginRegisterDialog_"] [class*="_switchSubtype_"] [class*="_item_"] {
    display: flex;
    flex: 1;
    align-items: center;
    margin-right: 0.2rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.65);
}

[class*="_loginRegisterDialog_"] .account-switch-sub-type [class*="_item_"]:last-child,
[class*="_loginRegisterDialog_"] [class*="_switchSubtype_"] [class*="_item_"]:last-child {
    margin-right: 0;
}

[class*="_loginRegisterDialog_"] .account-switch-sub-type [class*="_checked_"],
[class*="_loginRegisterDialog_"] .account-switch-sub-type .account-sub-type-checked,
[class*="_loginRegisterDialog_"] [class*="_switchSubtype_"] [class*="_checked_"],
[class*="_loginRegisterDialog_"] [class*="_switchSubtype_"] .account-sub-type-checked {
    color: #fff !important;
}

[class*="_loginRegisterDialog_"] .account-switch-sub-type [class*="_switchInner_"],
[class*="_loginRegisterDialog_"] [class*="_switchSubtype_"] [class*="_switchInner_"] {
    display: flex;
    align-items: center;
    gap: 0.08rem;
    line-height: 0.3rem;
    white-space: nowrap;
}

[class*="_loginRegisterDialog_"] .account-switch-sub-type [class*="_icon_"],
[class*="_loginRegisterDialog_"] .account-switch-sub-type .account-sub-type-icon,
[class*="_loginRegisterDialog_"] [class*="_switchSubtype_"] [class*="_icon_"],
[class*="_loginRegisterDialog_"] [class*="_switchSubtype_"] .account-sub-type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.3rem;
    height: 0.3rem;
    font-size: 0.3rem;
    line-height: 1;
    color: var(--skin__neutral_2, #9069E6);
    background-color: var(--skin__bg_2, #161616);
    border: var(--lobby__px, 1px) solid var(--skin__border, #6E3ED6);
    border-radius: 9999.99rem;
    flex-shrink: 0;
}

[class*="_loginRegisterDialog_"] .account-switch-sub-type [class*="_item_"]:first-child [class*="_icon_"],
[class*="_loginRegisterDialog_"] .account-switch-sub-type [class*="_item_"]:first-child .account-sub-type-icon,
[class*="_loginRegisterDialog_"] [class*="_switchSubtype_"] [class*="_item_"]:first-child [class*="_icon_"],
[class*="_loginRegisterDialog_"] [class*="_switchSubtype_"] [class*="_item_"]:first-child .account-sub-type-icon {
    margin-left: 5%;
}

[class*="_loginRegisterDialog_"] .account-switch-sub-type [class*="_icon_"] svg,
[class*="_loginRegisterDialog_"] .account-switch-sub-type .account-sub-type-icon svg,
[class*="_loginRegisterDialog_"] [class*="_switchSubtype_"] [class*="_icon_"] svg,
[class*="_loginRegisterDialog_"] [class*="_switchSubtype_"] .account-sub-type-icon svg {
    width: 1em;
    height: 1em;
}

[class*="_loginRegisterDialog_"] .account-switch-sub-type [class*="_checked_"] [class*="_icon_"],
[class*="_loginRegisterDialog_"] .account-switch-sub-type .account-sub-type-checked [class*="_icon_"],
[class*="_loginRegisterDialog_"] .account-switch-sub-type [class*="_checked_"] .account-sub-type-icon,
[class*="_loginRegisterDialog_"] .account-switch-sub-type .account-sub-type-checked .account-sub-type-icon,
[class*="_loginRegisterDialog_"] [class*="_switchSubtype_"] [class*="_checked_"] [class*="_icon_"],
[class*="_loginRegisterDialog_"] [class*="_switchSubtype_"] .account-sub-type-checked [class*="_icon_"],
[class*="_loginRegisterDialog_"] [class*="_switchSubtype_"] [class*="_checked_"] .account-sub-type-icon,
[class*="_loginRegisterDialog_"] [class*="_switchSubtype_"] .account-sub-type-checked .account-sub-type-icon {
    color: var(--skin__text_primary, #FFFFFF);
    background-color: var(--skin__primary, #78E02C);
    border: 0 none;
}

/* Cadastro com código – manutenção (campo borrado) */
[class*="_loginRegisterDialog_"] .lobby-form-item--account.phillyps-code-register-maintenance .ui-input__input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    background: transparent;
}

[class*="_loginRegisterDialog_"] .lobby-form-item--account.phillyps-code-register-maintenance .ui-input__input-container,
[class*="_loginRegisterDialog_"] .lobby-form-item--account.phillyps-code-register-maintenance .ui-input__input {
    filter: blur(3px);
    pointer-events: none;
    user-select: none;
}

[class*="_loginRegisterDialog_"] .lobby-form-item--account.phillyps-code-register-maintenance .ui-input__star-sign {
    color: var(--skin__accent_2, #ff6b6b);
    opacity: 0.65;
}

[class*="_loginRegisterDialog_"] .phillyps-code-register-overlay {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.12rem;
    pointer-events: none;
    box-sizing: border-box;
    background: transparent;
    border-radius: inherit;
}

[class*="_loginRegisterDialog_"] .phillyps-code-register-overlay span {
    color: var(--skin__lead, #fff);
    font-size: 0.2rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

/* Botão Registro/Login – mesma largura dos inputs; pulse mantido pelo Vue */
[class*="_loginRegisterDialog_"] .login-register-fragment-submit,
[class*="_loginRegisterDialog_"] [class*="_submits_"] {
    width: calc(100% + var(--left-right-space) - var(--form-right-space));
}

[class*="_loginRegisterDialog_"] .login-register-fragment-submit .ui-badge__wrapper,
[class*="_loginRegisterDialog_"] [class*="_submits_"] .ui-badge__wrapper {
    display: block;
    width: 100%;
}

[class*="_loginRegisterDialog_"] .login-register-fragment-submit .ui-badge__wrapper button,
[class*="_loginRegisterDialog_"] [class*="_submits_"] button {
    width: 100% !important;
    margin: 0 !important;
}

/* Links Login: Suporte | Esqueceu senha */
[class*="_loginRegisterDialog_"] .login-register-quickentry:has(> [class*="_item_"]:nth-child(2)) {
    display: flex;
    justify-content: space-between;
}

/* Registro vinculativo / Login Rápido */
[class*="_loginRegisterDialog_"] .login-register-thirdparty,
[class*="_loginRegisterDialog_"] [class*="_thirdParty_"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 0.2rem;
}

[class*="_loginRegisterDialog_"] [class*="_titleCenter_"],
[class*="_loginRegisterDialog_"] .third-party-title-center {
    margin-bottom: 0.2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

[class*="_loginRegisterDialog_"] [class*="_titleWing_"],
[class*="_loginRegisterDialog_"] .third-party-title-wing {
    position: relative;
    padding: 0 0.9rem;
    color: var(--skin__neutral_2);
    font-size: 0.22rem;
    white-space: nowrap;
}

[class*="_loginRegisterDialog_"] [class*="_titleWing_"]::before,
[class*="_loginRegisterDialog_"] [class*="_titleWing_"]::after,
[class*="_loginRegisterDialog_"] .third-party-title-wing::before,
[class*="_loginRegisterDialog_"] .third-party-title-wing::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 0.7rem;
    height: 0.01rem;
    background-color: var(--skin__border);
    transform: translateY(-50%);
}

[class*="_loginRegisterDialog_"] [class*="_titleWing_"]::before,
[class*="_loginRegisterDialog_"] .third-party-title-wing::before {
    left: 0;
}

[class*="_loginRegisterDialog_"] [class*="_titleWing_"]::after,
[class*="_loginRegisterDialog_"] .third-party-title-wing::after {
    right: 0;
}

[class*="_loginRegisterDialog_"] [class*="_bottomEntrance_"] {
    width: 100%;
    display: flex;
    justify-content: center;
}

[class*="_loginRegisterDialog_"] .third-party-list,
[class*="_loginRegisterDialog_"] [class*="_list_"][data-align="center"] {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: -0.05rem auto -0.12rem;
    padding: 0.05rem 0 0.12rem;
}

[class*="_loginRegisterDialog_"] .third-party-list [class*="_item_"],
[class*="_loginRegisterDialog_"] [class*="_list_"][data-align="center"] [class*="_item_"] {
    flex-shrink: 0;
    cursor: pointer;
}

[class*="_loginRegisterDialog_"] .lobby-third-party-button__image {
    width: 0.7rem;
    height: 0.7rem;
    object-fit: contain;
    display: block;
    border-radius: 100%;
    transform: scale(1.02);
    box-shadow: 0 0.03rem 0.07rem 0 var(--skin__web_left_bg_shadow);
}

[class*="_loginRegisterDialog_"] .login-register-quickentry {
    text-align: center;
    margin-bottom: 0.04rem;
}

[class*="_loginRegisterDialog_"] .login-register-quickentry [class*="_inner_"] {
    font-size: 0.22rem;
    color: var(--skin__primary);
    cursor: pointer;
}
