/* PC 登录界面专用样式 */

/* 预加载 hover 状态图片，避免首次悬停闪烁 */
#loginGuest_btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    z-index: -1;
    background-image: url(https://jackpot-cdn.akamaized.net/static/pc_login/btn_guest2_over.png);
}

/* 去除背景元素边框 */
html, body, #game_page, #login_screen {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

html, body {
    background: #000 !important;
    overflow: hidden !important;
    width: 100vw !important;
    height: 100vh !important;
}

#game_page {
    background: #000 !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden !important;
}

/* 隐藏顶部栏（仅在登录状态） */
body:has(#login_screen[style*="block"]) .top_bar,
body:has(#loginPanel[style*="flex"]) .top_bar {
    display: none !important;
}

/* 登录界面背景 - 覆盖整个屏幕 */
#login_screen {
    width: 100vw !important;
    height: calc(100vh - 4rem) !important;
    background: #000000 !important;
    background-image: url(https://jackpot-cdn.akamaized.net/static/pc_login/BG.png) !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 9990 !important;
    border: none !important;
    outline: none !important;
}

/* 登录面板容器 */
#panel {
    height: calc(100vh - 4rem) !important;
    width: 100vw !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    pointer-events: none;
    z-index: 9995 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#loginPanel {
    pointer-events: all !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* 左侧 Logo 容器 */
.login-logo {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo 图片，最大 400x400px */
.login-logo::before {
    content: '';
    width: 400px;
    height: 400px;
    max-width: 80%;
    max-height: 80%;
    background-image: url(https://jackpot-cdn.akamaized.net/static/pc_login/fts_loading_logo.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 右侧登录区域 */
.login-right {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 标题 */
.login-title {
    width: 40rem;
    height: 8rem;
    background-image: url('https://jackpot-cdn.akamaized.net/static/pc_login/LOG IN WITH YOUR FANTASY ACCOUNT.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 1.5rem;
}

/* 副标题 */
.login-subtitle {
    font-size: 2rem;
    color: #e06cca;
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
}

/* 登录按钮通用样式 */
.login-btn {
    width: 40rem;
    height: 5.5rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    margin-bottom: 2.2rem;
}

.login-btn:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* Facebook 按钮 */
.login-btn-fb,
#loginFB_btn {
    background-image: url(https://jackpot-cdn.akamaized.net/static/pc_login/btn_fb2_over.png) !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Email 按钮 */
.login-btn-email,
#loginEmail_btn {
    background-image: url(https://jackpot-cdn.akamaized.net/static/pc_login/btn_email2_over.png) !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* OR 分隔线 */
.login-or {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40rem;
    height: 2rem;
    margin: 2.5rem 0;
    background-image: url(https://jackpot-cdn.akamaized.net/static/pc_login/LINE.png);
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

.login-or-line {
    display: none;
}

.login-or-text {
    width: 3rem;
    height: 3rem;
    background-image: url(https://jackpot-cdn.akamaized.net/static/pc_login/OR.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Guest 按钮 */
.login-btn-guest,
#loginGuest_btn {
    background-image: url(https://jackpot-cdn.akamaized.net/static/pc_login/btn_guest2.png) !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    margin-bottom: 2rem;
}

.login-btn-guest:hover,
#loginGuest_btn:hover {
    background-image: url(https://jackpot-cdn.akamaized.net/static/pc_login/btn_guest2_over.png) !important;
}

/* Already have account */
.login-have-account {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff69b4;
    text-align: center;
    margin-top: 0.5rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.login-have-account:hover {
    color: #ff99cc;
}

/* 响应式布局 - 中等屏幕适配 (1200px - 1500px) */
@media screen and (max-width: 1500px) and (min-width: 1201px) {
    .login-logo {
        width: 50%;
    }

    .login-right {
        width: 50%;
    }

    .login-title {
        width: 30rem;
        height: 6rem;
    }

    .login-subtitle {
        font-size: 1.3rem;
    }

    .login-btn {
        width: 30rem;
        height: 4.2rem;
    }

    .login-or {
        width: 30rem;
        height: 1.8rem;
    }

    .login-or-text {
        width: 3.5rem;
        height: 1.8rem;
    }

    .login-have-account {
        font-size: 1.2rem;
    }
}

/* 响应式布局 - 小屏幕适配 */
@media screen and (max-width: 1200px) {
    #panel {
        align-items: center !important;
        padding: 2rem 1rem !important;
        box-sizing: border-box !important;
    }

    #loginPanel {
        flex-direction: column !important;
        gap: 2rem !important;
        padding: 1rem !important;
        max-height: none !important;
        overflow-y: visible !important;
    }

    .login-logo {
        width: 100%;
        height: auto;
        padding: 2rem 0;
    }

    .login-logo::before {
        width: 300px;
        height: 300px;
    }

    .login-right {
        width: auto;
        height: auto;
    }

    .login-title {
        width: 26rem;
        height: 5.5rem;
    }

    .login-btn {
        width: 24rem;
        height: 4.2rem;
    }

    .login-or {
        width: 24rem;
        height: 1.8rem;
    }

    .login-or-text {
        width: 3.5rem;
        height: 1.8rem;
    }

    .login-subtitle {
        font-size: 1.2rem;
    }

    .login-have-account {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 768px) {
    .login-logo {
        width: 18rem;
        height: 16rem;
    }

    .login-title {
        width: 22rem;
        height: 4.5rem;
    }

    .login-subtitle {
        font-size: 1rem;
    }

    .login-btn {
        width: 20rem;
        height: 3.5rem;
    }

    .login-or {
        width: 20rem;
        height: 1.6rem;
    }

    .login-or-text {
        width: 3rem;
        height: 1.6rem;
    }

    .login-have-account {
        font-size: 1.1rem;
    }
}

/* 底部栏样式 */
.bottom_bar {
    width: 100%;
    height: 4rem;
    background-image: url(https://jackpot-cdn.akamaized.net/static/dialog/img/bar_bottom.png);
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 9999;
    transition: all 0.3s ease;
}

.bottom_bar .ftr-menu {
    position: relative;
    color: #fff;
    z-index: 10;
    overflow: hidden;
    height: 4rem;
}

.bottom_bar .ftr-menu > ul {
    margin: 0 auto;
    width: fit-content;
    overflow: hidden;
    margin-top: 1rem;
    padding: 0;
}

.bottom_bar .ftr-menu > ul > li {
    padding-left: 1rem;
    padding-right: 1rem;
    color: #fff;
    float: left;
    list-style: none;
}

.bottom_bar .ftr-menu > ul > li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
}

.bottom_bar .ftr-menu > ul > li a:hover {
    color: #ff69b4;
}

.bottom_bar #btn_helpshift {
    position: absolute !important;
    width: 3rem !important;
    height: 3rem !important;
    top: 0.5rem !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    padding: 0.75rem 0.16rem 0.5rem 0.5rem !important;
    border: none !important;
    outline-offset: -4px !important;
    outline: rgba(0, 103, 244, 0.4) solid 0px !important;
    background: rgb(255, 255, 255);
    right: 4rem;
}

#footer_line {
    z-index: 9990;
}
