/* 全局登录入口 - 对齐 wow-mythic GlobalLoginEntry.vue */

.index-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    gap: 12px;
    padding: 0 2vw;
    max-width: 100%;
}

.index-header-main .index-header-menu {
    flex: 1;
    min-width: 0;
    width: auto;
    padding-left: 0;
}

.header-login-entry {
    flex-shrink: 0;
    position: relative;
    z-index: 10000000001;
    display: flex;
    align-items: center;
    height: 50px;
    line-height: normal;
}

.global-login-entry {
    display: inline-flex;
    align-items: center;
    height: 34px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s;
    user-select: none;
    border: none;
    background: transparent;
    font-family: inherit;
}

.global-login-entry-btn {
    padding: 0 16px;
    border: 1px solid rgba(255, 192, 69, 0.45);
    background: rgba(42, 28, 27, 0.9);
    color: #ffc045;
    gap: 6px;
    text-decoration: none;
    box-sizing: border-box;
}

.global-login-entry-btn:hover:not(:disabled) {
    border-color: #ffc045;
    background: rgba(255, 192, 69, 0.12);
}

.global-login-entry-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.global-login-entry-user {
    padding: 0 10px 0 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(34, 20, 19, 0.85);
    color: #efe6d8;
    gap: 8px;
}

.global-login-entry-user:hover {
    border-color: rgba(255, 192, 69, 0.55);
    background: rgba(42, 28, 27, 0.95);
}

.global-login-entry-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 192, 69, 0.35);
}

.global-login-entry-avatar-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #3a2625;
    color: #ffc045;
    font-size: 14px;
}

.global-login-entry-nickname {
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: #f5e6c8;
}

.global-login-entry-arrow {
    font-size: 10px;
    color: #aaa;
    margin-left: 2px;
}

.global-login-entry-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* 下拉菜单（对齐主站 UserAccountMenu） */
.global-login-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    background: #1a110f;
    border: 1px solid #3a2625;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    border-radius: 4px;
    padding: 6px 0;
    z-index: 10000000002;
}

.global-login-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 16px;
    color: #efe6d8;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
    line-height: 1.4;
}

.global-login-menu-item:hover {
    background: rgba(255, 192, 69, 0.1);
    color: #ffc045;
}

.global-login-menu-item:hover .global-login-menu-icon {
    fill: #ffc045;
}

.global-login-menu-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    fill: #efe6d8;
}

.global-login-menu-item .menu-label {
    margin-left: 8px;
}

.global-login-menu-divider {
    height: 1px;
    background: #2a1c1b;
    margin: 4px 0;
}

@media (max-width: 768px) {
    .index-header-main {
        padding: 0 12px;
    }

    .global-login-entry-nickname {
        max-width: 64px;
    }
}
